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]

bug: GOLD handling of Sparc PLTREL


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.


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