
The SECTIONS Directive
10-22
10.6 The SECTIONS Directive
You can convert specific sections of the COFF file by name with the
SECTIONS directive. You can also specify those sections you want the utility
to configure for loading from an on-chip boot loader, and those sections that
you want to locate in ROM at a different address than the
load address speci-
fied in the linker command file:
-
If you use a SECTIONS directive, the utility converts only the sections that
you list in the directive and ignores all other sections in the COFF file.
-
If you don’t use a SECTIONS directive, the utility converts all initialized
sections that fall within the configured memory. The TMS320C54x
compiler-generated initialized sections include: .text, .const, .cinit, and
.switch.
Uninitialized sections are
never converted, whether or not you specify them
in a SECTIONS directive.
Note:
Sections Generated by the C Compiler
The TMS320C54x C compiler automatically generates these sections:
-
Initialized sections: .text, .const, .cinit, and .switch.
-
Uninitialized sections: .bss, .stack, and .sysmem.
Use the SECTIONS directive in a command file. (For more information about
using a command file, see Section 10.3,
Command Files, on page 10-7.) The
general syntax for the SECTIONS directive is:
SECTIONS
{
sname: [paddr=value]
sname: [paddr=boot]
sname: [= boot ],
...
}
Содержание 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: ......