On Mon, Jul 29, 2013 at 05:50:39PM -0500, Peter Bigot wrote:
> The extra word is probably the watchdog timer clear value, which is
> initialized on reset.  You can exclude it by using -mdisable-watchdog.
> mspgcc uses different sections than AVR, and for mspgcc .noinit is not
> merged with .bss.  With the default linker script .noinit is between the
> bottom of the stack and the top of .bss.
> 
> You can use msp430-objdump -x app.elf to see the list of sections available
> and what's in them (at what address).  That information can tell you what's
> going to be below the stack, hence the first thing that would get
> overwritten when it overruns.

Hrmm, so it appears then that when "size" says "bss" it actually means
the sum of sections which are marked ALLOC but not LOAD, rather than
literally the .bss section. Is that correct?

Cheers,
Daniel

-- 
Daniel Beer <dlb...@gmail.com>    www.dlbeer.co.nz
IRC: inittab (Freenode)    PGP key: 2048D/160A553B

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to