With gcc-10: Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ - L=/home/dave/opt/test/hppa-unknown-linux-gnu/lib -L=/home/dave/opt/test/lib -L=/ usr/local/lib -L=/lib -L=/usr/lib -o tmpdir/pr19579 -L/home/dave/gnu/binutils/ src/ld/testsuite/ld-elf -pie -Wl,--no-as-needed,-z,text tmpdir/pr19579a.o tmpdir /libpr19579.so tmpdir/dummy.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] Running: tmpdir/pr19579 > tmpdir/pr19579.out diff tmpdir/pr19579.out /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pass.out 0a1 > PASS child process exited abnormally FAIL: Run pr19579 Similar fail: FAIL: Run pr19579 (-z now)
Created attachment 12164 [details] Proposed patch Hi John, Please can you try out the attached patch and let me know if it solves the problem ? Cheers Nick
On 2020-01-03 6:41 a.m., nickc at redhat dot com wrote: > Please can you try out the attached patch and let me know if it solves the > problem ? Yes, it resolves the failure. Happy New Year, Dave
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d2dbcb18c6a44595a2034aa73a1ad7b60df114d3 commit d2dbcb18c6a44595a2034aa73a1ad7b60df114d3 Author: Nick Clifton <nickc@redhat.com> Date: Mon Jan 6 14:00:34 2020 +0000 Fix test of the fix for PR19579 when compiling with gcc-10. PR 25326 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler command line when building pr19579 binaries.
Patch applied.