https://sourceware.org/bugzilla/show_bug.cgi?id=28138
--- Comment #2 from Sergei Trofimovich <slyfox at inbox dot ru> --- I used the following reproducer linker script for bisection. Fun fact: If I comment out all the -plugin/-plugin-opt= flags the link will succeed. $ cat repro.bash #!/bin/bash cmd=( # bisect /home/slyfox/dev/git/binutils-gdb-bisect/ld/ld-new #/usr/x86_64-pc-linux-gnu/binutils-bin/2.37/ld #works: #/usr/x86_64-pc-linux-gnu/binutils-bin/2.36.1/ld # somehow these are needed to trigger a bug: -plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -L /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/ -L /usr/lib64 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o mksnapshot /usr/lib64/Scrt1.o /usr/lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/crtbeginS.o -O1 --hash-style=gnu --defsym=__gentoo_check_ldflags__=0 --start-group /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_initializers.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-empty.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/embedded-file-writer.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-win.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/snapshot-empty.o /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_base_without_compiler.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_init.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_libbase.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_libplatform.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/icu/libicui18n.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/icu/libicuucx.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/icu/libicudata.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_libsampler.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_zlib.a /tmp/portage/net-libs/nodejs-14.17.3/work/node-v14.17.3/out/Release/obj.target/tools/v8_gypfiles/libv8_compiler.a -lz -luv -lbrotlidec -lbrotlienc -lcares -lnghttp2 -lcrypto -lssl -ldl -lrt --end-group -lstdc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/crtendS.o /usr/lib64/crtn.o ) "${cmd[@]}" "$@" -- You are receiving this mail because: You are on the CC list for the bug.