http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48005
Summary: program using libgloss fails to link when built with -flto Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: gr...@moxielogic.com All of the -flto tests are failing for the moxie-elf port because the linker fails to include the libgloss library (libsim.a, in this case). libsim.a is forced into the link by a linker script we pass to gcc (-Tsim.ld). It looks like it is probably identical or related to this: http://sourceware.org/ml/binutils/2011-01/msg00108.html