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



Hi Mark,

Why is it necessary to zero out the .bss? I can't use the CS3
framework because I'm not using one of the supported boards.
I'm trying to figure out the cause of the silent data corruption I'm seeing.

JJ

On Tue, Nov 3, 2009 at 11:16 AM, Mark Mitchell <mark@xxxxxxxxxxxxxxxx> wrote:
> 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
>