Creating a Linker Command File
C2000 Microcontroller Workshop - Programming Development Environment 2 - 17
SECTIONS
{
.text:> FLASH PAGE 0
.ebss:> M0SARAM PAGE 1
.cinit:> FLASH PAGE 0
.stack:> M1SARAM PAGE 1
}
The linker will gather all the code sections from all the files being linked together. Similarly, it
will combine all ‘like’ sections.
Beginning with the first section listed, the linker will place it into the specified memory segment.
Summary: Linker Command File
The linker command file (.cmd) contains the inputs — commands — for the linker. This
information is summarized below:
Linker Command File Summary
Memory Map Description
Name
Location
Size
Sections Description
Directs software sections into named
memory regions
Allows per-file discrimination
Allows separate load/run locations