https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109128
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> --- Close as FIXED. The solution was to extend the linker plugin API to be able to tell GCC's linker plugin whether a file is actually needed or is only passed to see whether it contains by chance LTO symbols. For the GCC patch that was applied to GCC mainline (GCC 14), see previous comment (comment 8). For the Binutils' patch, applied to mainline = Binutils 2.40.50, see https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=b21318bd2c29fcca8f99c1de7facdaa5cb2e66e2