8.11.12 Section Variable Attribute

The section ("section-name") attribute places the variable into the named section.

For example,
unsigned int dan __attribute__ ((section (".quixote")))
will place the variable dan will be placed in section .quixote.

The -fdata-sections command line option has no effect on variables defined with a section attribute unless unique_section is also specified.