17.2.24 Section Function Attribute

The section("name") attribute places the function into the named section. For example:
void __attribute__ ((section (".wilma"))) baz () {return;}
will place the function baz will be placed in section .wilma.

The -ffunction-sections command line option has no effect on functions defined with a section attribute.