14.1.2.1 address (addr)

The address attribute specifies an absolute address for the function.

void __attribute__ ((address(0x100))) foo() {
...
}

Alternatively, you may define the address in the function prototype:

void foo() __attribute__ ((address(0x100)));