![background image](http://html.mh-extra.com/html/texas-instruments/tms320c54x/tms320c54x_user-manual_1097113244.webp)
The SECTIONS Directive
7-32
7.8
The SECTIONS Directive
The SECTIONS directive:
-
Describes how input sections are combined into output sections
-
Defines output sections in the executable program
-
Specifies where output sections are placed in memory (in relation to each
other and to the entire memory space)
-
Permits renaming of output sections
Refer to Section 2.4,
How the Linker Handles Sections, on page 2-12 for
details on how the linker handles sections. Refer to Section 2.5,
Relocation,
on page 2-15 for information on the relocation of sections. Refer to subsection
2.3.4,
Subsections, on page 2-8 for information on defining subsections;
subsections allow you to manipulate sections with greater precision.
7.8.1
Default Configuration
If you do not specify a SECTIONS directive, the linker uses a default algorithm
for combining and allocating the sections. Section 7.12,
Default Allocation
Algorithm, on page 7-53 describes this algorithm in detail.
7.8.2
SECTIONS Directive Syntax
The SECTIONS directive is specified in a command file by the word
SECTIONS (uppercase), followed by a list of output section specifications
enclosed in braces.
The general syntax for the SECTIONS directive is:
SECTIONS
{
name : [property, property, property,...]
name : [property, property, property,...]
name : [property, property, property,...]
}
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......