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]

Re: bss section not getting zero-initialised vars


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

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