Question on tc_i386_fix_adjustable

Jie Zhang jzhang918@gmail.com
Wed Aug 22 10:47:00 GMT 2007


On 8/22/07, Alan Modra <amodra@bigpond.net.au> wrote:
> On Wed, Aug 22, 2007 at 08:11:31AM +0800, Jie Zhang wrote:
> > Does anyone know why the following three relocation types cannot be adjusted?
>
> It may be OK for GOTOFF.  The other two can't be adjusted to be
> against their section symbols, because that would place an entry for
> the section symbol in the PLT or GOT rather than a local symbol.  The
> problem is in the way the ABI defines the behaviour of "sym+off@got".
> This places an entry in GOT for sym, and resolves to that location in
> the GOT plus "off" which is totally useless as it points to some
> entirely unrelated GOT entry.  Similarly for @plt.
>
Is it OK for target specific ABI to do differently? For FDPIC ABI used
by FRV and bfin ports, a GOT entry is created for (sym+off)@got, such
that (sym@got + off) still points to a valid GOT entry.

Jie



More information about the Binutils mailing list