bug: GOLD handling of Sparc PLTREL

David Miller davem@davemloft.net
Tue Feb 9 00:42:00 GMT 2010


Several test cases in GOLD fail on sparc because of how it lays out
the .rela.plt and .rela.dyn sections.

On Sparc, the .rela.dyn must include .rela.plt in it's range.  If this
is not followed, the dynamic linker will reference past the end of the
relocations.  This is true on 32-bit PowerPC and 32-bit S390 as well.

But GOLD isn't doing this, it makes the size of .rela.dyn only include
the .rela.dyn relocs, it doesn't include the  .rela.plt reloc size
too.



More information about the Binutils mailing list