SLAU131V October 2004 – February 2020
MEMORY
{
MEM : origin = 0x0200, length = 0xFDFD
RESET : origin = 0xFFFE, length = 0x0002
}
SECTIONS
{
.text : {} > MEM
.const : {} > MEM
.data : {} > MEM
.bss : {} > MEM
.reset : > RESET
.cinit : {} > MEM ;cflag option only
.pinit : {} > MEM ;cflag option only
}
See Section 2.5.1 for information about default memory allocation.
All .text input sections are concatenated to form a .text output section in the executable output file, and all .data input sections are combined to form a .data output section.
If you use a SECTIONS directive, the linker performs no part of this default allocation. Instead, allocation is performed according to the rules specified by the SECTIONS directive and the general algorithm described next in Section 8.7.1.