The question is in fact: what is a section for GCC? Is it just a way togroup functions together to improve memory cache efficiency; or is the GCC user authorised to use sections to forbid access to some functions at link time?
For user-declared ("attribute") sections, GCC just outputs the necessary assembler magic, and that's it. Anything else is handled by your binary format tools, if at all. Segher