On 2011-08-03, aliko <[email protected]> wrote:
> To correct issue I've changed couple of lines in memory.x file as where
> suggested in one forum.
> from:
> KEEP(*(.init))
> *(.init0) /* Start here after reset. */
> *(.init1) /* User definable. */
> *(.init2) /* Initialize stack. */
> *(.init3) /* Initialize hardware, user definable. */
> *(.init4) /* Copy data to .data, clear bss. */
> *(.init5) /* User definable. */
> *(.init6) /* C++ constructors. */
> *(.init7) /* User definable. */
> *(.init8) /* User definable. */
> *(.init9) /* Call main(). */
>
> to:
>
> KEEP(*(.init))
> KEEP(*(.init0)) /* Start here after reset. */
> KEEP(*(.init1)) /* User definable. */
> KEEP(*(.init2)) /* Initialize stack. */
> KEEP(*(.init3)) /* Initialize hardware, user definable. */
> KEEP(*(.init4)) /* Copy data to .data, clear bss. */
> KEEP(*(.init5)) /* User definable. */
> KEEP(*(.init6)) /* C++ constructors. */
> KEEP(*(.init7)) /* User definable. */
> KEEP(*(.init8)) /* User definable. */
> KEEP(*(.init9)) /* Call main(). */
Yep, that's the solution.
> And now firmware works good. The size of firmware using gc-sections
> is 77% of that not using it and it does metter I think.
Of course it does.
--
Grant Edwards grant.b.edwards Yow! I'll eat ANYTHING
at that's BRIGHT BLUE!!
gmail.com
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users