Named sections.
Nick Palmer
nicholas@slackers.net
Wed Jan 31 20:37:00 GMT 2001
Is there an easy way with gcc to name the .data and .bss sections for a
particular file something else. I am working on a project where it is
required that we be able to do this so that we can separate some .data
sections and some .bss sections from others. The only solutions I have
found to date are the .section assembler directive and using a linker
script with all of the file names. Both are very hard to maintain. What I
am looking for is a command line option at compile time, or a #pragma that
would do this for us. I have worked with several other tool chains that
have this feature, and would be disappointed to learn that this feature has
not yet been implemented with gcc.
Thanks for your time,
Nick
More information about the Gcc-help
mailing list