bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gas: i386 leal _GLOBAL_OFFSET_TABLE_


From: Ian Lance Taylor
Subject: Re: gas: i386 leal _GLOBAL_OFFSET_TABLE_
Date: 07 May 2001 10:20:28 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Kevin Ryde <address@hidden> writes:

> In a debian packaged i386 gas 2.11.90.0.1, or I think in the current
> cvs, a file foo.s containing
> 
>         leal  _GLOBAL_OFFSET_TABLE_(%edi), %ebx
> 
> is assembled to (looking with objdump)
> 
>    0:   8d 9f 00 00 00 00       lea    0x0(%edi),%ebx
>                         2: R_386_GOTPC  _GLOBAL_OFFSET_TABLE_
> 
> I think the offset in that relocation should be 2 not 0, certainly
> that would make it match the basic "addl" usually used.

The question is whether it links correctly.  If the linker produces
the desired output, then the assembler output is most likely correct.

Ian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]