Specifiing the section type

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

 



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



[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