Re: Controlling the order of variables in the COMMON section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Z <cziom2523@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux