This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bss section not getting zero-initialised vars


  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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]