User`s guide

287Targeting MC56F83xx/DSP5685x Controllers
10
ELF Linker and Command
Language
The CodeWarrior™ Executable and Linking Format (ELF) Linker makes a program
file out of the object files of your project. The linker also allows you to manipulate
code in different ways. You can define variables during linking, control the link order
to the granularity of a single function, change the alignment, and even compress code
and data segments so that they occupy less space in the output file.
All of these functions are accessed through commands in the linker command file
(LCF). The linker command file has its own language complete with keywords,
directives, and expressions, that are used to create the specifications for your output
code. The syntax and structure of the linker command file is similar to that of a
programming language.
This chapter contains the following sections:
Structure of Linker Command Files
Linker Command File Syntax
Linker Command File Keyword Listing
DSP56800E Command-Line Tools
Structure of Linker Command Files
Linker command files contain three main segments:
Memory Segment
Closure Blocks
Sections Segment
A command file must contain a memory segment and a sections segment. Closure
segments are optional.