This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Controlling the order of variables in the COMMON section


Chris Z <cziom2523@gmail.com> writes:

> So how do I group non initialized global variables in GCC so that they come
> out in the proper order? 

If you are using the GNU linker, use the --sort-common linker option.
When using gcc to link, use -Wl,--sort-common.

Ian


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