defining a new section for a C program

John Graham johngavingraham@googlemail.com
Sat Feb 5 12:47:00 GMT 2011


> Can i define a new input section with the name I want for a C code?

Yes, you can use gcc attributes (see
http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html#C-Extensions) for
variables or functions - specifically the "section" attribute.

John G



More information about the Gcc-help mailing list