COFF File Types
2-2
2.1
COFF File Types
The following types of COFF files exist:
-
COFF0
-
COFF1
-
COFF2
Each COFF file type has a different header format. The data portions of the
COFF files are identical. For details about the COFF file structure, see
Appendix A,
Common Object File Format.
The TMS320C54x assembler and C compiler create COFF2 files. The linker
can read and write all types of COFF files. By default, the linker creates COFF2
files. Use the –v linker option to specify a different format. The linker supports
COFF0 and COFF1 files for older versions of the assembler and C compiler
only.
2.2
Sections
The smallest unit of an object file is called a
section. A section is a block of code
or data that will ultimately occupy contiguous space in the memory map. Each
section of an object file is separate and distinct. COFF object files always con-
tain three default sections:
.text section
usually contains executable code
.data section
usually contains initialized data
.bss section
usually reserves space for uninitialized variables
In addition, the assembler and linker allow you to create, name, and link
named
sections that are used like the .data, .text, and .bss sections.
There are two basic types of sections:
initialized sections
contain data or code. The .text and .data sections
are initialized; named sections created with the
.sect assembler directive are also initialized.
uninitialized sections
reserve space in the memory map for uninitialized
data. The .bss section is uninitialized; named
sections created with the .usect assembler direc-
tive are also uninitialized.
COFF File Types / Sections
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: ......