Mail Archives: djgpp/2000/05/01/11:14:16
On Mon, 1 May 2000, Damian Yerrick wrote:
> What about moving all static constants to the _end_ of a code segment?
I'm guessing that the linker assigns addresses to objects in each
section in the order it sees them during linking. If so, the data
will be interspersed with code, as determined by the order of object
modules processed by the linker.
So gathering data at one place might be simply impossible without
changing the linker too much.
I'm further guessing that the ELF format doesn't have this problem, so it
probably doesn't bother Linux users ;-).
- Raw text -