This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
bug: GOLD handling of Sparc PLTREL
- From: David Miller <davem at davemloft dot net>
- To: iant at google dot com
- Cc: binutils at sourceware dot org
- Date: Mon, 08 Feb 2010 16:42:45 -0800 (PST)
- Subject: 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.