]> Git Repo - binutils.git/blob - include/reloc.h
Initial revision
[binutils.git] / include / reloc.h
1 /* Relocation types for a.out files using reloc_info_extended
2    (SPARC and AMD 29000). */
3
4 #ifndef _RELOC_H_READ_
5 #define _RELOC_H_READ_ 1
6
7 enum reloc_type
8 {
9     RELOC_8,        RELOC_16,        RELOC_32, /* simple relocations */
10     RELOC_DISP8,    RELOC_DISP16,    RELOC_DISP32, /* pc-rel displacement */
11     RELOC_WDISP30,  RELOC_WDISP22,
12     RELOC_HI22,     RELOC_22,
13     RELOC_13,       RELOC_LO10,
14     RELOC_SFA_BASE, RELOC_SFA_OFF13,
15     RELOC_BASE10,   RELOC_BASE13,    RELOC_BASE22, /* P.I.C. (base-relative) */
16     RELOC_PC10,     RELOC_PC22, /* for some sort of pc-rel P.I.C. (?) */
17     RELOC_JMP_TBL,              /* P.I.C. jump table */
18     RELOC_SEGOFF16,             /* reputedly for shared libraries somehow */
19     RELOC_GLOB_DAT,  RELOC_JMP_SLOT, RELOC_RELATIVE,
20
21 /* 29K relocation types */
22     RELOC_JUMPTARG, RELOC_CONST,     RELOC_CONSTH,
23
24     NO_RELOC
25 };
26
27 #define RELOC_TYPE_NAMES \
28 "8",            "16",           "32",           "DISP8",        \
29 "DISP16",       "DISP32",       "WDISP30",      "WDISP22",      \
30 "HI22",         "22",           "13",           "LO10",         \
31 "SFA_BASE",     "SFAOFF13",     "BASE10",       "BASE13",       \
32 "BASE22",       "PC10",         "PC22",         "JMP_TBL",      \
33 "SEGOFF16",     "GLOB_DAT",     "JMP_SLOT",     "RELATIVE",     \
34 "JUMPTARG",     "CONST",        "CONSTH",                       \
35 "NO_RELOC",                                                     \
36 "XXX_28", "XXX_29", "XXX_30", "XXX_31"
37
38 #endif /* _RELOC_H_READ_ */
This page took 0.024986 seconds and 4 git commands to generate.