SLAU131Y October 2004 – June 2021
You can set the starting address for an output section by following the section name with an address:
.text: 0x00001000
This example specifies that the .text section must begin at location 0x1000. The binding address must be a 16-bit constant.
Output sections can be bound anywhere in configured memory (assuming there is enough space), but they cannot overlap. If there is not enough space to bind a section to a specified address, the linker issues an error message.
Binding is Incompatible With Alignment and Named Memory: You cannot bind a section to an address if you use alignment or named memory. If you try to do this, the linker issues an error message.