On Fri, 2010-06-25 at 10:48 -0700, Richard Henderson 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.

gas 2.13.1 (the oldest supported version as required by documentation)
also handles the first form without problems.

Uros.


Reply via email to