https://sourceware.org/bugzilla/show_bug.cgi?id=23573
--- Comment #18 from Benjamin Redelings <benjamin.redelings at gmail dot com> --- Hi Nick, Thank you so much for looking into this. I reran the exact same command and now it works with the linker plugin just fine. I also check using /proc, and the linker process has about 30 open files. I have done some package upgrades, and it looks like a patch for Debug bug 928214 ("Configure LTO support correctly", https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928214) may be the one that fixed the problem. In any case, for the benefit of any future triggerers of this bug: 1. The problem is probably with GCC, not binutils. 2. I was not using native mingw binutils, I was using Debian's linux-native cross compiler. Referring to the bug report above, one possible explanation is that * the LTO plugin was misconfigured in autoconf * this caused gcc to fall back to the lto-wrapper helper and NOT use the linker plugin * the lto-wrapper help creates N open file descriptors for an archive containing N objects. * the actual lto-plugin works fine. This is somewhat speculative, but might hopefully give someone a path to explore if they run into this again. -- 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