Specifiing the section type

Rudy Koot rudykoot@hotmail.com
Fri Aug 15 19:46:00 GMT 2003


I created a new section called .text.init in my program using __attribute__ 
((section (.text.init))) on several functions. How do I specify that GCC 
should compile this as a TEXT section instead of a DATA sections. This is 
quite important because it generates wrong padding to align the code, which 
causes my program to crash. (It shoudl use NOPs in a TEXT section instead of 
simply inserting 0x00 bytes as it does in a DATA section).

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



More information about the Gcc-help mailing list