https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63688
Bug ID: 63688 Summary: all_symbols_read_handler: Assertion `lto_wrapper_argv' failed. Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: james410 at cowgill dot org.uk When invoking ld manually, with the lto plugin, but without passing the lto_wrapper option, this assertion fails. I know it's stupid to do this, but it would be nice if a proper message is generated rather than aborting. To reproduce: > touch dummy.c > gcc -c -flto -o dummy.o dummy.c > ld --plugin=/usr/lib/gcc/mipsel-linux-gnu/4.9.1/liblto_plugin.so dummy.o Produces: > ld: ../../src/lto-plugin/lto-plugin.c:622: all_symbols_read_handler: > Assertion `lto_wrapper_argv' failed. > Aborted Using: gcc version 4.9.1 (Debian 4.9.1-16)