http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54628
Bug #: 54628 Summary: Problem using -flto and -static with Gold linker Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: rob.r...@ymail.com Running "a.out" after "g++ -flto -static a.cpp" with "ld" pointing to "ld.gold" produces "Aborted" (when file "a" does not exist). Pointing "ld" to "ld.bfd" or removing any of the flags above produces the expected behavior. gcc version 4.7.1 (Debian 4.7.1-7) GNU ld (GNU Binutils for Debian) 2.22 GNU gold (GNU Binutils for Debian 2.22) 1.11