Re: [arm-gnu] zeroing out the .bss area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] zeroing out the .bss area



JJ wrote:

> I'm developing an ELF to run on bare-metal. In my "_start", is it
> necessary to zero out the .bss area?

If you are not using the startup code that we provide, then, yes, you
will need to do this.  You might consider whether you could instead use
the CS3 framework, which provides hooks for board-specific
initialization code while still doing necessary startup actions, like
clearing the BSS.

-- 
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713