This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bss section not getting zero-initialised vars
- To: gcc at gcc dot gnu dot org
- Subject: bss section not getting zero-initialised vars
- From: Etienne LORRAIN <etienne_lorrain at yahoo dot fr>
- Date: Fri, 14 Jan 2000 18:19:59 +0100 (CET)
- Reply-To: etienne dot lorrain at ibm dot net
Hello,
I am probably not getting something obvious,
but in C (gcc-2.95.2 or more, did not test before) my zero
initialised variables are not set to the .bss section but
to the .data section (as seen in assembler file).
Looked at deja.com, found "-fconserve-space" on a
2 years + discussion on djgpp, it does not work here.
Does someone has a pointer to how to get
int my_variable = 0;
onto .bss section automatically, without using "int my_variable
__attribute__((section("bss"))) = 0;" ?
This is on i386 standart redhat, if it does matter.
Thanks,
Etienne.
___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr