15.2.33 Unique_section Function Attribute

The unique_section attribute places the function in a uniquely named section, as if -ffunction-sections had been specified. If the function also has a section attribute, use that section name as the prefix for generating the unique section name. For example:
void __attribute__ ((section (".fred"), unique_section) foo (void) {return;}
will place the function fooin section .fred.foo.