https://sourceware.org/bugzilla/show_bug.cgi?id=27442
Bug ID: 27442 Summary: FAIL: Local ifunc-using executable does not contain R_*_IRELATIVE relocation Product: binutils Version: 2.37 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: danglin at gcc dot gnu.org Target Milestone: --- gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/sr c/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fPIC -c /home/dave/gnu/binutils/sr c/ld/testsuite/ld-ifunc/prog.c -o tmpdir/shared_prog.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fPIC -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/prog.c -o tmpdir/shared_prog.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/sr c/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fno-PIE -c /home/dave/gnu/binutils /src/ld/testsuite/ld-ifunc/prog.c -o tmpdir/static_prog.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fno-PIE -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/prog.c -o tmpdir/static_pro g.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/sr c/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fPIC -DWITH_IFUNC -c /home/dave/gn u/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdir/shared_ifunc.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fPIC -DW ITH_IFUNC -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdir/s hared_ifunc.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/sr c/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fno-PIE -DWITH_IFUNC -c /home/dave /gnu/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdir/static_ifunc.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -fno-PIE -DWITH_IFUNC -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdi r/static_ifunc.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -DWITHOUT_IFUNC -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdir/static_noifunc.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -DWITHOUT_IFUNC -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/lib.c -o tmpdir/static_noifunc.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] /home/dave/gnu/binutils/objdir/ld/../gas/as-new -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -o tmpdir/empty.o /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/empty.s Executing on host: sh -c {/home/dave/gnu/binutils/objdir/ld/../gas/as-new -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -o tmpdir/empty.o /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/empty.s 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/test-1.c -o tmpdir/test-1.o Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -c -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/test-1.c -o tmpdir/test-1.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/ -I/home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc -g -O2 -fno-lto -fPIC -c -c /home/dave/gnu/binutils/src/ld/testsuite/ld-ifunc/test-2.c -o tmpdir/test-2.o spawn [open ...] ./ld-new -o tmpdir/libshared_ifunc.so -shared tmpdir/shared_ifunc.o Executing on host: sh -c {./ld-new -o tmpdir/libshared_ifunc.so -shared tmpdir/shared_ifunc.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] /home/dave/gnu/binutils/objdir/ld/../binutils/ar rc tmpdir/libifunc.a tmpdir/static_ifunc.o Executing on host: sh -c {/home/dave/gnu/binutils/objdir/ld/../binutils/ar rc tmpdir/libifunc.a tmpdir/static_ifunc.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] 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/dynamic_prog -Wl,--no-as-needed,-rpath=./tmpdir,-Bdynamic -Ltmpdir tmpdir/shared_prog.o -lshared_ifunc 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/dynamic_prog -Wl,--no-as-needed,-rpath=./tmpdir,-Bdynamic -Ltmpdir tmpdir/shared_prog.o -lshared_ifunc 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] 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/local_prog -no-pie -Wl,--no-as-needed,-rpath=./tmpdir -Ltmpdir tmpdir/static_prog.o -lifunc 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/local_prog -no-pie -Wl,--no-as-needed,-rpath=./tmpdir -Ltmpdir tmpdir/static_prog.o -lifunc 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] 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/static_prog -static -Ltmpdir tmpdir/static_prog.o -lifunc 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/static_prog -static -Ltmpdir tmpdir/static_prog.o -lifunc 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] ./ld-new -o tmpdir/static_nonifunc_prog -static tmpdir/empty.o Executing on host: sh -c {./ld-new -o tmpdir/static_nonifunc_prog -static tmpdir/empty.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] 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/test-1 -Wl,--no-as-needed,-rpath=./tmpdir tmpdir/test-1.o tmpdir/libshared_ifunc.so 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/test-1 -Wl,--no-as-needed,-rpath=./tmpdir tmpdir/test-1.o tmpdir/libshared_ifunc.so 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] ./ld-new -o tmpdir/libtest-2.so -shared tmpdir/test-2.o Executing on host: sh -c {./ld-new -o tmpdir/libtest-2.so -shared tmpdir/test-2.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] ./ld-new -o tmpdir/libtest-2-now.so -shared -z now tmpdir/test-2.o Executing on host: sh -c {./ld-new -o tmpdir/libtest-2-now.so -shared -z now tmpdir/test-2.o 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...] PASS: Building ifunc binaries FAIL: Local ifunc-using executable does not contain R_*_IRELATIVE relocation FAIL: Static ifunc-using executable does not contain R_*_IRELATIVE relocation -- You are receiving this mail because: You are on the CC list for the bug.