There should be no reason to use --gc-sections.  As you discovered, it's
likely to remove material that it thinks is unused because the current
linker scripts are lying to it.

At least some of the lies will be corrected in a couple hours when I finish
moving all the development branches to be based on gcc 4.6.0 and push the
changes I have queued up locally, but nonetheless I'm unaware of any reason
to use that flag with mspgcc.

Peter

On Wed, Aug 3, 2011 at 4:37 AM, aliko <ali.tli...@gmail.com> wrote:

> I've found another issue with this flag. The size of final linked image
> is reduced considerably but the resulting firmware becomes broken. :(
> If I remove this flag the image increases in size about 20% and works good.
>
>
> 03.08.2011 12:30, aliko пишет:
> > Hi!
> > I've got an error during linking trying to build project. The error
> > message from ld complains on invalid argument. As I removed
> > --gc-sections flag from linker command the error is gone.
> > I've tryed mspgcc20110716 (GCC 4.5) and MSPGCC4 (GCC 4.4) as well. My
> > platform is Windows if it does metter.
> >
> >
> >
> ------------------------------------------------------------------------------
> > BlackBerry&reg; 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
>
>
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; 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&reg; 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

Reply via email to