PATCH: PR ld/3958: ELF linker failed to handle relocation against ABS section

H. J. Lu hjl@lucon.org
Sun Feb 4 04:45:00 GMT 2007


On Sat, Feb 03, 2007 at 11:58:12AM -0800, H. J. Lu wrote:
> On Sat, Feb 03, 2007 at 08:45:18AM -0800, H. J. Lu wrote:
> > This patch should fix PR ld/3958. We shouldn't remove remove the
> > symbol reference from relocations against symbols from removed input
> > section.  Someone should fix elf32-arm.c and elf32-score.c. They
> > require adding section where r_symndx comes from.
> > 
> > I will try to add 2 testcases: one for PR ld/3958 and one for zeroing
> > relocations against symbols from removed input section.
> > 
> 
> Here is an updated patch with a testcase. There are already testcases
> in ld-discard for relocations against symbols from removed input
> sections.
> 

Unfortunately, the testcase failed on 32bit host due to the 32bit
address wrap around bug on 32bit host:

http://sourceware.org/bugzilla/show_bug.cgi?id=3966


H.J.



More information about the Binutils mailing list