http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55592
Bug #: 55592 Summary: linking with -flto always links in libgcc:s.so Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@gcc.gnu.org $ cat foo.c int main() { } $ gcc foo.c && ldd a.out |grep libgcc_s $ gcc -flto foo.c && ldd a.out |grep libgcc_s libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb214381000) gcc.c (pass_through_libs_spec_func) doesn't pass the --as-needed/--no-as-needed flags to the plugin. if these are passed, how should the plugin handle these?