https://sourceware.org/bugzilla/show_bug.cgi?id=24873
--- Comment #9 from Alan Modra <amodra at gmail dot com> --- > At https://mail.aegee.org/dpa/ld24873/ Thanks, and nicely included your libcheck.a, which contains the LTO objects triggering this bug. After building myself a new gcc-8 (debugging LTO linker problems requires using the same compiler) I was able to reproduce the problem with current master binutils, and binutils-2.32. For future reference, this was the linker invocation I used: (prev-gcc because gcc was still bootstrapping!) COLLECT_GCC=/home/alan/build/gcc-8/prev-gcc/xgcc COLLECT_GCC_OPTIONS="'-B/home/alan/build/gcc-8/prev-gcc/' '-o' 'test-utils' '-O2' '-g' '-pthread' '-v' '-save-temps' '-mtune=generic' '-march=x86-64'" ~/build/gas/all/ld/ld-new -plugin ~/build/gcc-8/prev-gcc/liblto_plugin.so -plugin-opt=/home/alan/build/gcc-8/prev-gcc/lto-wrapper -plugin-opt=-fresolution=test-utils.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o test-utils /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/x86_64-linux-gnu -L/usr/lib -L/lib/x86_64-linux-gnu -L/lib --no-undefined --as-needed test-utils@exe/src_libinput-util.c.o test-utils@exe/test_test-utils.c.o --start-group libinput.so.10.13.0 liblibinput-util.a libquirks.a -lmtdev -ludev -levdev -lm -lrt -lwacom LIBS/libcheck.a -lsubunit -ldl --end-group -rpath $ORIGIN/ -rpath-link /home/alan/src/libinput-1.13.4/build-0.51/ -v -Map test-utils.map -lgcc --push-state --as-needed -lgcc_s --pop-state -lpthread -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/8/crtend.o /usr/lib/x86_64-linux-gnu/crtn.o Investigating.. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils