Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reloc(4) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

as(1)

ld(1)

a.out(4)

syms(4)



     reloc(4)                   DG/UX 4.30                    reloc(4)



     NAME
          reloc - relocation information for a common object file

     SYNOPSIS
          #include  <reloc.h>

     DESCRIPTION
          Object 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      r_vaddr ;   /* (virtual) address of reference */
                   long      r_symndx ;  /* index into symbol table */
                   ushort    r_type ;    /* relocation type */
                   unsigned short r_offset;/* high 16 bits of expression*/
          } ;

          #define  R_ABS     0
          #define  R_PCR16L  128
          #define  R_PCR26L  129
          #define  R_VRT16   130
          #define  R_HVRT16  131
          #define  R_LVRT16  132
          #define  R_VRT32   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.

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

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

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

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

          R_HVRT16  Same as R_VRT16, except, only the high 16 bits are
                    used in the relocation.

          R_LVRT16  Same as R_VRT16, except, only the low 16 bits are
                    used in the relocation.

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




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





     reloc(4)                   DG/UX 4.30                    reloc(4)



          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.

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
















































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



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