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,...]
}
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......