User`s guide

ELF Linker and Command Language
Linker Command File Keyword Listing
306
Targeting MC56F83xx/DSP5685x Controllers
Example
SECTIONS {
.text : {
F_textSegmentStart = .;
footpad.c (.text)
. = ALIGN (0x10);
padfoot.c (.text)
F_textSegmentEnd = .;
} > TEXT
.data : { *(.data) } > DATA
.bss : { *(.bss) > BSS
*(COMMON)
}
}
SIZEOF
The SIZEOF function returns the size of the given segment or section. The return
value is the size in bytes.
Prototype
SIZEOF(sectionName | segmentName | symbol)
NOTE In order to use segmentName with this command, the segmentName
must start with the period character even though segmentNames are
not required to start with the period character by the linker, as is the
case with sectionName.