This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bss section not getting zero-initialised vars
- To: etienne dot lorrain at ibm dot net
- Subject: Re: bss section not getting zero-initialised vars
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 18 Jan 2000 22:18:45 -0800
- Cc: gcc at gcc dot gnu dot org
- References: <20000118104511.3571.qmail@web1604.mail.yahoo.com>
> Yes, this is true. gcc doesn't have the optimization where we move
> zero inited things into bss.
Yes, and there's a good reason historical for this. Providing an
initialization is a (reasonably portable) way to force the variable
into the data section, where it can then be edited in the binary.
r~