This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix linking of .gpdword on MIPS


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]