https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84995
Liviu Ionescu <ilg at livius dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ilg at livius dot net --- Comment #19 from Liviu Ionescu <ilg at livius dot net> --- I'm the maintainer of GNU MCU Eclipse ARM Embedded GCC, a distribution based on Arm Embedded GCC, and I confirm that I got bitten by this issue too. FYI, Eclipse uses arm-none-eabi-ar to build static Arm libraries, and when I tried to use LTO, the result was an error like 'plugin needed to handle lto object'. The workaround was to update my distribution build scripts to copy (on Windows) or link (on Linux and macOS) the LTO plugin to lib/bfd-plugins, a local folder present in the distribution. In my oppinion, the LTO plugin should be copied to bfd-plugins by the 'make install', and not be left at the discretion of the distribution.