[x86]: Allow @GOTOFF in non-memory context?
Richard Henderson
rth@redhat.com
Fri Jun 25 18:38:00 GMT 2010
On 06/03/2010 05:24 AM, Uros Bizjak wrote:
> ; Current assemblers are broken and do not allow @GOTOFF in
> ; ought but a memory context.
>
> Code, following this comment disables or special-cases "pic_symbolic_operands".
>
> I'm investigating, which "current assemblers" are broken, since my
> assembler from binutils-2.20 happily assembles:
>
> addl x@GOTOFF(%ebx), %eax
>
> in 32bit mode, as well as
>
> addq x@GOTPCREL(%rip), %rax
>
> in 64bit mode.
Note that this *is* a memory context. The problematic cases were
addl $x@GOTOFF, %eax
which needed to be written as
lea x@GOTOFF(%eax), %eax
to satisfy the memory context requirement of the broken assemblers.
r~
More information about the Gcc
mailing list