http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53570
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |ebotcazou at gcc dot | |gnu.org Resolution| |WORKSFORME --- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-06-09 16:49:59 UTC --- > Btw: I think "that's expected" is in the eye of the beholder. If all you've > ever done is VAX/GCC-style UNIX, then it's expected. If you've worked with > other toolchains, like AIX, CodeWarrior, Microsoft, etc, then you'd actually > expect function-level linking by default. Not sure what VAX/GCC-style UNIX means... it's the default ELF behavior. And what you call function-level linking is achieved by means of -ffunction-sections -fdata-sections -Wl,--gc-sections. -flto is something else.