http://sourceware.org/bugzilla/show_bug.cgi?id=13287
Bug #: 13287 Summary: g++ -Wl,--as-needed -flto doesn't work with the BFD linker, but with gold Product: binutils Version: 2.22 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: d...@debian.org Classification: Unclassified seen with the 2.22 branch (and the fix for pr13250 applied), works with gold, gcc is 4.6 from the branch. $ cat foo.cc int main() {} $ g++ -B/usr/lib/gold-ld/ -Wl,--as-needed -flto foo.cc ok $ $ gcc -Wl,--as-needed -flto foo.cc ok $ $ g++ -Wl,--as-needed -flto foo.cc /lib/i386-linux-gnu/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /lib/i386-linux-gnu/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1' /lib/i386-linux-gnu/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' /lib/i386-linux-gnu/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE' /lib/i386-linux-gnu/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3' /lib/i386-linux-gnu/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' collect2: ld returned 1 exit status -- 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