Symbol Table Structure and Content
A-21
Common Object File Format
A.7.6 Section Number
Bytes 12–13 of a symbol table entry contain a number that indicates which
section the symbol was defined in. Table A–15 lists these numbers and the
sections they indicate.
Table A–15. Section Numbers
Mnemonic
Section
Number
Description
N_DEBUG
–2
Special symbolic debugging symbol
N_ABS
–1
Absolute symbol
N_UNDEF
0
Undefined external symbol
N_SCNUM
1
.text section (typical)
N_SCNUM
2
.data section (typical)
N_SCNUM
3
.bss section (typical)
N_SCNUM
4 –32,767
Section number of a named section, in the order in
which the named sections are encountered
If there were no .text, .data, or .bss sections, the numbering of named sections
would begin with 1.
If a symbol has a section number of 0, –1, or –2, it is not defined in a section.
A section number of –2 indicates a symbolic debugging symbol, which
includes structure, union, and enumeration tag names; type definitions; and
the filename. A section number of –1 indicates that the symbol has a value but
is not relocatable. A section number of 0 indicates a relocatable external
symbol that is not defined in the current file.
A.7.7 Type Entry
Bytes 14–15 of the symbol table entry define the symbol’s type. Each symbol
has one basic type and one to six derived types.
Following is the format for this 16-bit type entry:
Derived
Type
6
Derived
Type
5
Derived
Type
4
Derived
Type
3
Derived
Type
2
Derived
Type
1
Basic
Type
2
2
2
2
2
2
4
Size
(in bits):
Bits 0–3 of the type field indicate the basic type. Table A–16 lists valid basic
types.
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: ......