Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reloc(4) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

as(1)

ld-coff(1)

a.out(4)

syms(4)



reloc(4)                         DG/UX 5.4.2                        reloc(4)


NAME
       reloc - relocation information for a common object file

SYNOPSIS
       #include  <reloc.h>

DESCRIPTION
       Common object (COFF) files have one relocation entry for each
       relocatable reference in the text or data.  If relocation information
       is present, it will be in the following format:

       struct   reloc
       {
                long      rvaddr ;   /* (virtual) address of reference */
                long      rsymndx ;  /* index into symbol table */
                ushort    rtype ;    /* relocation type */
                unsigned short roffset;/* high 16 bits of expression*/
       } ;

       #define  RABS     0
       #define  RPCR16L  128
       #define  RPCR26L  129
       #define  RVRT16   130
       #define  RHVRT16  131
       #define  RLVRT16  132
       #define  RVRT32   133

       As the link editor reads each input section and performs relocation,
       the relocation entries are read.  They direct how references found
       within the input section are treated.

       RABS     The reference is absolute and no relocation is necessary.
                 The entry will be ignored.

       RPCR16L  A "PC-relative" 16-bit reference to the symbol's virtual
                 address.

       RPCR26L  A "PC-relative" 26-bit reference to the symbol's virtual
                 address.

       RVRT16   Direct 16-bit reference to the symbol's virtual address.

       RHVRT16  Same as RVRT16, except, only the high 16 bits are used in
                 the relocation.

       RLVRT16  Same as RVRT16, except, only the low 16 bits are used in
                 the relocation.

       RVRT32   Direct 32-bit reference to the symbol's virtual address.

       Relocation entries are generated automatically by the assembler and
       automatically used by the link editor.  Link editor options exist for
       both preserving and removing the relocation entries from object
       files.



Licensed material--property of copyright holder(s)                         1




reloc(4)                         DG/UX 5.4.2                        reloc(4)


SEE ALSO
       as(1), ld-coff(1), a.out(4), syms(4).























































Licensed material--property of copyright holder(s)                         2


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026