: It seems to me that the way to do it would be to have another segment
: for this. I *think* ELF can support more segments than .code and
: .data. Is there any way to get gas/gcc to use them, and if not, how
: hard would it be to hack them to support .initcode and .initdata
: segments?
I strongly urge people to think about Peter's suggestion. ELF is a fine
binary format and it can indeed support more than the segments that are
currently available. SGI made this thing called Dwarf (or maybe someone
else did, I dunno where it came from) when all they needed to do was to
add a few more segs to ELF. It was just hubris as far as I can tell.
Fix ELF to do what you want, it's a fine format.
----- Larry McVoy lm@sgi.com http://reality.sgi.com/lm (415) 933-1804 Copyright 1996, all rights reserved. Microsoft Network is prohibited from redistributing this work in any form, in whole or in part without license. License to distribute this work is available to Microsoft at $500. Transmission without permission constitutes an agreement to these terms.