A.1.2 Typical Object File Structure
Figure A–2. COFF Object File
Figure A–2 shows a typical example of a COFF object file that contains the
three default sections, .text, .data, and .bss, and a named section (referred to
as <named>). By default, the tools place sections into the object file in the
following order: .text, .data, initialized named sections, .bss, and uninitialized
named sections. Although uninitialized sections have section headers, notice
that they have no raw data, relocation information, or line-number entries. This
is because the .bss and .usect directives simply reserve space for uninitialized
data; uninitialized sections contain no actual code.
file header
.text
section header
.data
section header
.bss
section header
<named> section
section header
.text
raw data
.data
raw data
<named> section
raw data
.text
relocation information
.data
relocation information
<named> section
relocation information
.text
line numbers
.data
line numbers
<named> section
line numbers
symbol table
string table
Common Object File Format
COFF File Structure
section headers
raw data
relocation
information
line-number
entries
A-3
Need help?
Do you have a question about the TMS320C54x and is the answer not in the manual?