01.01.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

NAME<br />

reloc - relocation information for a common object file<br />

SYNOPSIS<br />

#include < reloc.h ><br />

DESCRIPTION<br />

Obj ect files have one relocation entry for each relocatable reference<br />

in the text or data. If relocation information is present, it<br />

will be in the following format.<br />

struct reloc<br />

{<br />

long r_vaddr ; I* (virtual) address of reference *I<br />

long r_symndx ; I* index into symbol table *I<br />

short r_type ; I* relocation type *I<br />

} ;<br />

I*<br />

* All generics<br />

* reloc. already performed to symbol in the same section<br />

*I<br />

#define R__ABS<br />

0<br />

I*<br />

* 3B generic<br />

* 24-bit direct reference<br />

* 24-bit "relative" reference<br />

*<br />

*<br />

*<br />

16-bit optimized "indirect" TV reference<br />

24-bit "indirect" TV reference<br />

32-bit "indirect" TV reference<br />

*I<br />

#define R_DIR24 04<br />

#define R_REL24 05<br />

#define R_OPT16 014<br />

#define R_IND24 015<br />

#define R_IND32 016<br />

I*<br />

* DEC Processors VAX. 111780 and VAX. 111750<br />

*<br />

*I<br />

#define R_RELBYTE 017<br />

#define R_RELWORD 020<br />

#define R_RELLONG 021<br />

#define RYCRBYTE 022<br />

#define RYCRWORD 023<br />

#define R_PCRLONG 024<br />

As the link editor reads each input section and performs relocation,<br />

the relocation entries are read. They direct how references<br />

found within the input section are treated.<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!