10.1.2 Allocating Memory
After all of the input files have been loaded, the linker allocates memory. This is accomplished by assigning each input section to an output section. The relation between input and output sections is defined by a section map in the linker script. An output section may or may not have the same name as an input section. Each output section is then assigned to a memory region in the target device.
Note: Input sections are derived from source code by the compiler or the assembler. Output sections are created by the linker.
If an input section is not explicitly assigned to an output section, the linker will allocate the unassigned section according to section attributes. For more information about linker allocation, see 10.2 Linker Allocation.