https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93980
--- Comment #2 from Alexander Sergeyev <sergeev917 at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > Does -fno-use-linker-plugin help? It seems to work with fat lto objects, but I suspect that no actual lto is performed in this case. With -fno-fat-lto-objects -fno-use-linker-plugin: .bar.o: plugin needed to handle lto object .foo.a(.foo.o): plugin needed to handle lto object