test results with the 2.35 branch for several architectures

Alan Modra amodra@gmail.com
Thu Jul 9 12:58:04 GMT 2020


On Thu, Jul 09, 2020 at 12:25:22PM +0200, Matthias Klose wrote:
> On 7/9/20 8:32 AM, Alan Modra wrote:
> > On Wed, Jul 08, 2020 at 04:34:51PM +0200, Matthias Klose wrote:
> >> powerpc:
> >> Running /<<PKGBUILDDIR>>/ld/testsuite/ld-gc/gc.exp ...
> >> FAIL: Check --gc-section
> >> FAIL: Check --gc-section/-q
> >> FAIL: Check --gc-section/-r/-e
> >> FAIL: Check --gc-section/-r/-u
> > 
> > I don't see these failures.  Can you show ld.log for these tests?
> 
> 10020008 D __bss_start
> 00000000 A __stack_chk_fail
> 10020008 D _edata
> 10020008 D _end
> 100000c0 T main
> 10020000 D unused_var
> 100000d0 T used_func
> 10020004 D used_var
> unused section still here

Thanks, that's another -fPIE induced fail.  -fPIC/-fPIE on powerpc
-m32 generates code that uses .got2, effectively allowing 64k of GOT
per object file (while -fpic/-fpie only allows 64k of GOT total).
The ppc32 linker doesn't garbage collect .got2 entries due to lack of
any relocs on code accessing .got2 entries.  Without relocs, garbage
collection would need to do code scanning, and I don't think that's a
good idea.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list