This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Fix linking of .gpdword on MIPS
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sourceware dot org, rsandifo at nildram dot co dot uk
- Date: Mon, 26 Feb 2007 17:32:35 -0800
- Subject: Re: Fix linking of .gpdword on MIPS
- References: <877iu4k03j.fsf@firetop.home>
On Mon, Feb 26, 2007 at 10:47:28PM +0000, Richard Sandiford wrote:
>
> The patch ignores the addend on a relocation against symbol 0,
> on the basis that:
>
> /* r_symndx will be zero only for relocs against symbols
> from removed linkonce sections, or sections discarded by
> a linker script. */
>
> But that isn't true on MIPS; r_symndx is also zero the second
> and subsequent entries in a composite relocation, when the addend
> is carried over from the result of the previous relocations.
>
It isn't true for x86 either. See
http://sourceware.org/bugzilla/show_bug.cgi?id=3958
H.J.