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: gcc at gcc dot gnu dot org
- Subject: Re: bss section not getting zero-initialised vars
- From: Etienne LORRAIN <etienne_lorrain at yahoo dot fr>
- Date: Wed, 19 Jan 2000 12:00:36 +0100 (CET)
- Reply-To: etienne dot lorrain at ibm dot net
Jamie wrote:
> Emacs has some very dubious things:
>
> /* Create a label to appear at the beginning of data space. */
> int data_start = 0;
IHMO it is quite dirty... Normally such a symbol is defined
in the linker command file, like "_etext" and "_end".
I begin to understand why there is only the linker option
"--sort-common" and not "--sort-data" or even "--sort-code",
which would save more and more space because alignment
requirement are getting bigger and bigger.
Also, emacs linker pass is order dependant for .o/.a files.
> Anyway, if Emacs says the above construct is portable (among unix
> systems) it probably is, and should only be broken with a flag like
> -fconserve-space.
I would just like the possibility to do it, having to add an
option is not a problem (I already have 15 options only for the
compiler - not counting preprocessor or linker options).
Etienne.
___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr