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 $...@gotoff, %eax

which needed to be written as

  lea x...@gotoff(%eax), %eax

to satisfy the memory context requirement of the broken assemblers.


r~

Reply via email to