File Header Contents; File Header Flags (Bytes 18 And 19; A.2 File Header Structure - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

A.2 File Header Structure

Table A–1. File Header Contents
Table A–2. File Header Flags (Bytes 18 and 19)
The file header contains 22 bytes of information that describe the general
format of an object file. Table A–1 shows the structure of the COFF file header.
Byte
Number Type
0–1
Unsigned short integer
2–3
Unsigned short integer
4–7
Long integer
8–11
Long integer
12–15
Long integer
16–17
Unsigned short integer
18–19
Unsigned short integer
20–21
Unsigned short integer
Table A–2 lists the flags that can appear in bytes 18 and 19 of the file header.
Any number and combination of these flags can be set at the same time (for
example, if bytes 18 and 19 are set to 0003h, F_RELFLG and F_EXEC are
both set.)
Mnemonic
Flag
F_RELFLG
0001h
F_EXEC
0002h
F_LNNO
0004h
F_LSYMS
0010h
F_LENDIAN
0100h
F_SYMMERGE
1000h
Description
Version id; indicates version of COFF file
structure
Number of section headers
Time and date stamp; indicates when the file
was created
File pointer; contains the symbol table's
starting address
Number of entries in the symbol table
Number of bytes in the optional header. This
field is either 0 or 28; if it is 0, then there is no
optional file header
Flags (see Table A–2)
Target id; magic number indicates the file
can be executed in a TMS320C54x system
Description
Relocation information was stripped from the file.
The file is relocatable (it contains no unresolved
external references).
Line numbers were stripped from the file.
Local symbols were stripped from the file.
The file has the byte ordering used by 'C54x
devices (16 bits per word, least significant byte first)
Duplicate symbols were removed.
Common Object File Format
File Header Structure
A-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents