[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] gcrt1.S and the __mcucr__
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] gcrt1.S and the __mcucr__ |
Date: |
Fri, 6 Sep 2002 11:18:55 +0200 (MET DST) |
Kang Tin LAI <address@hidden> wrote:
> Beside of MCRCR and WDTCR, I don't find any code for zeroing the
> bss, this is another causation makes my code die. Section bss is
> supposed to be zeroed by compiler according to language standard.
Well, .bss is zeroed inside section .init4. The function
__do_clear_bss is taken from libgcc.a, and it will only be linked into
this section if the compiler found that there's actual data in .bss.
This function clears anything from __bss_start through __bss_end, so
if you override these symbols from the linker command line, you should
be able to clear whatever you want.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org