The library archives are built so that unreferenced functions are not linked in. Furthermore, I believe gc-sections operates on whole sections, not functions, so unless you have code built with -ffunction-sections it would make no difference. Until the binutils update from half an hour ago, I have no reason to believe mspgcc supported -ffunction-sections correctly. (The linker changes will not be back-ported to the 4.5.3 LTS release.) The same should hold for -fdata-sections.
If you see a reduction in code size when you use --gc-sections, and what it removes really wasn't necessary, figure out why it got put in there in the first place and fix it there. Peter On Wed, Aug 3, 2011 at 5:21 AM, aliko <ali.tli...@gmail.com> wrote: > 03.08.2011 13:47, Peter Bigot пишет: >> There should be no reason to use --gc-sections. > > The reduction of code size is not a reason? I've believed that this > option removes unused functions from firmware. > > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos & much more. Register early & save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users