http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49017
Summary: [avr] -ffunction-sections causes linker to fail Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: stefan.hlad...@gmail.com I was compiling my code with -ffunction-sections for quite some time, so not sure why this problem now constantly appears when using this flag. I have a toolchain compiled with "crossdev -t avr" on gentoo, which means gcc-4.5.2 at the moment. When linking my object file with other files "__muldi3" from libgcc.a is linked incorrectly. Attaching pre-linking (nol*) & post-linking (obj*) object files. I'm not really sure about what to provide, so please let me know what you need. Stefan