AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

RELOC (4) RELOC ( 4) R_ABS The reference is absolute, and no relocation is necessary. The entry will be ignored. R_DIR16 A direct, 16-bit reference to a symbol's virtual address. R_REL16 A "PC-relative," 16-bit reference to a symbol's virtual address. Relative references occur in instructions such as jumps and calls. The actual address used is obtained by adding a constant to the value of the program counter at the time the instruction is executed. R_IND16 An indirect, 16-bit reference through a transfer vector. The instruction contains the virtual address of the transfer vector, where the actual address of the referenced word is stored. R_ABS The reference is absolute, and no relocation is necessary. The entry will be ignored. R_Dffi24 A direct, 24-bit reference to a symbol's virtual address. R_REL24 A "PC-relative," 24-bit reference to a symbol's virtual address. Relative references occur in instructions such as jumps and calls. The actual address used is obtained by adding a constant to the value of the program counter at the time the instruction is executed. R_OPT16 An optimized, indirect, 16-bit reference through a transfer vector. The instruction contains the offset into the transfer vector table to the transfer vector where the actual address of the referenced word is stored. R_IND24 An indirect, 24-bit reference through a transfer vector. The instruction contains the virtual address of the transfer vector, where the actual address of the referenced word is stored. R_IND32 An ··indirect, 32-bit reference through a transfer vector. The instruction contains the virtual address of the transfer vector, where the actual address of the referenced word is stored. R_RELBYTE A direct 8 bit reference to a symbol's virtual address. R_RELWORD A direct 16 bit reference to a symbol's virtual address. R_RELLONG A direct 32 bit reference to a symbol's virtual address. R_.PCRBYTE A "PC-relative," 8 bit reference to a symbol's virtual address. R.YCRWORD A "PC-relative," 16 bit reference to a symbol's virtual address. - 2-

RELOC ( 4) RELOC ( 4) R_PCRLONG A "PC-relative," 32 bit reference to a symbol's virtual address. On the VAX processors relocation of a symbol index of -1 indicates that the relative difference between the current segment's start address and the program's load address is added to the relocatable address. Other relocation types will be defined as they are needed. Relocation entries are generated automatically by the assembler and automatically utilized by the link editor. A link editor option exists for removing the relocation entries from an object file. SEE ALSO ld(l), strip(l), a.out(4), syms(4). - 3-

RELOC ( 4) RELOC ( 4)<br />

R_PCRLONG A "PC-relative," 32 bit reference to a symbol's<br />

virtual address.<br />

On the VAX processors relocation of a symbol index of -1 indicates<br />

that the relative difference between the current segment's start<br />

address and the program's load address is added to the relocatable<br />

address.<br />

Other relocation types will be defined as they are needed.<br />

Relocation entries are generated automatically by the assembler<br />

and automatically utilized by the link editor. A link editor option<br />

exists for removing the relocation entries from an object file.<br />

SEE ALSO<br />

ld(l), strip(l), a.out(4), syms(4).<br />

- 3-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!