Symbol Table Structure and Content
A-20
Table A–13. Special Symbols and Their Storage Classes
Special
Symbol
Restricted to This
Storage Class
Special
Symbol
Restricted to This
Storage Class
.file
C_FILE
.eos
C_EOS
.bb
C_BLOCK
.text
C_STAT
.eb
C_BLOCK
.data
C_STAT
.bf
C_FCN
.bss
C_STAT
.ef
C_FCN
A.7.5 Symbol Values
Bytes 8–11 of a symbol table entry indicate a symbol’s value. A symbol’s value
depends on the symbol’s storage class; Table A–14 summarizes the storage
classes and related values.
Table A–14. Symbol Values and Storage Classes
Storage Class
Value Description
Storage Class
Value Description
C_AUTO
Stack offset in bits
C_UNTAG
0
C_EXT
Relocatable address
C_TPDEF
0
C_STAT
Relocatable address
C_ENTAG
0
C_REG
Register number
C_MOE
Enumeration value
C_LABEL
Relocatable address
C_REGPARM
Register number
C_MOS
Offset in bits
C_FIELD
Bit displacement
C_ARG
Stack offset in bits
C_BLOCK
Relocatable address
C_STRTAG
0
C_FCN
Relocatable address
C_MOU
Offset in bits
C_FILE
0
If a symbol’s storage class is C_FILE, the symbol’s value is a pointer to the next
.file symbol. Thus, the .file symbols form a one-way linked list in the symbol
table. When there are no more .file symbols, the final .file symbol points back
to the first .file symbol in the symbol table.
The value of a relocatable symbol is its virtual address. When the linker
relocates a section, the value of a relocatable symbol changes accordingly.
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: ......