Structuring Relocation Information
A-11
Common Object File Format
If the symbol table index in a relocation entry is –1 (0FFFFh), this is called an
internal relocation. In this case, the relocation amount is simply the amount by
which the current section is being relocated.
The relocation type specifies the size of the field to be patched and describes
how to calculate the patched value. The type field depends on the addressing
mode that was used to generate the relocatable reference. In the preceding
example, the actual address of the referenced symbol (X) will be placed in a
16-bit field in the object code. This is a 16-bit direct relocation, so the relocation
type is R_RELWORD. Table A–8 lists the relocation types.
Table A–8. Relocation Types (Bytes 8 and 9)
Mnemonic
Flag
Relocation Type
R_ABS
0000h
No relocation
R_RELBYTE
000Fh
8-bit direct reference to symbol’s address
R_REL13
002Ah
13-bit direct reference
R_RELWORD
0010h
16-bit direct reference to symbol’s address
R_PARTLS7
0028h
7 LSBs of an address
R_PARTMS9
0029h
9 MSBs of an address
Содержание TMS320C54x
Страница 38: ......
Страница 39: ......
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 44: ......
Страница 45: ......
Страница 46: ......
Страница 47: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 56: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 60: ......
Страница 61: ......
Страница 62: ......
Страница 276: ......
Страница 277: ......
Страница 278: ......
Страница 279: ......
Страница 280: ......
Страница 281: ......
Страница 282: ......
Страница 283: ......
Страница 284: ......
Страница 285: ......
Страница 286: ......
Страница 287: ......
Страница 288: ......
Страница 289: ......
Страница 290: ......
Страница 291: ......
Страница 292: ......
Страница 293: ......
Страница 294: ......
Страница 295: ......
Страница 296: ......
Страница 297: ......
Страница 298: ......
Страница 299: ......
Страница 300: ......
Страница 301: ......
Страница 302: ......