HI team I think I found the root cause but the problem is I am not quite good in C++. Following the log as Alan suggest point me to the real source code of the test:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=ld/testsuite/ld-elf/dl5.cc;h=cc404553f93bf73e4fa209efcb9f378e7e38530a;hb=HEAD The problem is that pass is never == 4 , actually after printing the value I realize that it is 0. I was checking the new features of gcc5 and .. : https://gcc.gnu.org/gcc-5/changes.html still can find out which one of those changes did the trick . Hope it helps to find , I will keep debugging Regards Victor Rodriguez Intel Open Source Technology Center ________________________________________ From: Rodriguez Bahena, Victor Sent: Monday, May 25, 2015 10:40 AM To: Alan Modra Cc: bug-binutils@gnu.org Subject: Re: bug with binutils and gcc5 On Sat, 2015-05-23 at 12:27 +0930, Alan Modra wrote: > On Fri, May 22, 2015 at 08:43:16PM +0000, Rodriguez Bahena, Victor wrote: > > Hi team > > > > I am building binutils with gcc 5 ( also running the test suite ) and > > found an issue in these two tests: > > > > FAIL: Run with libnew1a.so > > FAIL: Run with libnew1b.so > > Look in ld.log to see why the failure is occurring. > Thanks for the direction, this is the ld.log of the failing tests: g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -I/builddir/build/BUILD/binutils-2.25 /ld/testsuite/ld-elf -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE =2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wl,-- copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynchronous-unwind-tables -Wp,- D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-inte rposition -malign-data=abi -c -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FOR TIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-secu rity -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynchronous-unwind-t ables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-se mantic-interposition -malign-data=abi -c /builddir/build/BUILD/binutils-2.25/ld/testsuite/ld- elf/dl5.cc -o tmpdir/dl5.o Executing on host: sh -c {g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -I/builddir /build/BUILD/binutils-2.25/ld/testsuite/ld-elf -O2 -g2 -feliminate-unused-debug-types -pipe - Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wforma t -Wformat-security -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynch ronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -W l,relro -fno-semantic-interposition -malign-data=abi -c -O2 -g2 -feliminate-unused-debug-typ es -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size =32 -Wformat -Wformat-security -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=nati ve -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,no w -Wl,-z -Wl,relro -fno-semantic-interposition -malign-data=abi -c /builddir/build/BUILD/binu tils-2.25/ld/testsuite/ld-elf/dl5.cc -o tmpdir/dl5.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -L/usr/x86_64-generic-linux/lib64 -L /usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/x86_64-generic-linux/lib -L/usr/local/lib -L/lib -L/usr/lib -o tmpdir/dl5a -L/builddir/build/BUILD/binutils-2.25/ld/testsuite/ld-elf tmpdir/l ibnew1a.so tmpdir/dl5.o Executing on host: sh -c {g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -L/usr/x86 _64-generic-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/x86_64-generic-linux/l ib -L/usr/local/lib -L/lib -L/usr/lib -o tmpdir/dl5a -L/builddir/build/BUILD/binutils-2.25/ld /testsuite/ld-elf tmpdir/libnew1a.so tmpdir/dl5.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] Running: tmpdir/dl5a > tmpdir/dl5a.out child process exited abnormally FAIL: Run with libnew1a.so g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -I/builddir/build/BUILD/binutils-2.25 /ld/testsuite/ld-elf -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE =2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wl,-- copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynchronous-unwind-tables -Wp,- D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-inte rposition -malign-data=abi -c -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FOR TIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-secu rity -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynchronous-unwind-t ables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-se mantic-interposition -malign-data=abi -c /builddir/build/BUILD/binutils-2.25/ld/testsuite/ld- elf/dl5.cc -o tmpdir/dl5.o Executing on host: sh -c {g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -I/builddir /build/BUILD/binutils-2.25/ld/testsuite/ld-elf -O2 -g2 -feliminate-unused-debug-types -pipe - Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wforma t -Wformat-security -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=native -fasynch ronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -W l,relro -fno-semantic-interposition -malign-data=abi -c -O2 -g2 -feliminate-unused-debug-typ es -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size =32 -Wformat -Wformat-security -Wl,--copy-dt-needed-entries -m64 -march=ivybridge -mtune=nati ve -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,no w -Wl,-z -Wl,relro -fno-semantic-interposition -malign-data=abi -c /builddir/build/BUILD/binu tils-2.25/ld/testsuite/ld-elf/dl5.cc -o tmpdir/dl5.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -L/usr/x86_64-generic-linux/lib64 -L /usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/x86_64-generic-linux/lib -L/usr/local/lib -L/lib -L/usr/lib -o tmpdir/dl5b -L/builddir/build/BUILD/binutils-2.25/ld/testsuite/ld-elf tmpdir/l ibnew1b.so tmpdir/dl5.o Executing on host: sh -c {g++ -B/builddir/build/BUILD/binutils-2.25/ld/tmpdir/ld/ -L/usr/x86 _64-generic-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/x86_64-generic-linux/l ib -L/usr/local/lib -L/lib -L/usr/lib -o tmpdir/dl5b -L/builddir/build/BUILD/binutils-2.25/ld /testsuite/ld-elf tmpdir/libnew1b.so tmpdir/dl5.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] Running: tmpdir/dl5b > tmpdir/dl5b.out child process exited abnormally FAIL: Run with libnew1b.so I will debug more, but if you could find the root cause I will appreciate a lot -- Victor Rodriguez Open Source Technology Center _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils