http://sourceware.org/bugzilla/show_bug.cgi?id=14918
Bug #: 14918 Summary: linking with -flto always links in libgcc:s.so Product: binutils Version: 2.23 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: d...@debian.org Classification: Unclassified checked with the 2.23 branch (and gcc-4.7), original report at http://gcc.gnu.org/PR55592 $ 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) works with gold: $ gcc -B /usr/lib/gold-ld -flto foo.c && ldd a.out |grep libgcc_s $ libgcc is linked as: -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- 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