User`s guide

ELF Linker and Command Language
Linker Command File Keyword Listing
302
Targeting MC56F83xx/DSP5685x Controllers
KEEP_SECTION
The KEEP_SECTION directive allows you to specify sections that you do not want
the linker to deadstrip. You must specify the section(s) you want to keep before you
use the SECTIONS
keyword.
Prototype
KEEP_SECTION{ sectionType[, sectionType] }
MEMORY
The MEMORY directive allows you to describe the location and size of memory
segment blocks in the target. This directive specifies the linker the memory areas to
avoid, and the memory areas into which it links the code and date.
The linker command file may only contain one MEMORY directive. However, within
the confines of the MEMORY directive, you may define as many memory segments as
you wish.
Prototype
MEMORY { memory_spec }
The memory_spec is:
segmentName (accessFlags) : ORIGIN = address, LENGTH = length, [COMPRESS]
[> fileName]
segmentName can include alphanumeric characters and underscore '_' characters.
accessFlags are passed into the output ELF file (Phdr.p_flags). The
accessFlags can be:
•R-read
W-write
X-executable (for P: memory placement)
ORIGIN address is one of the following: