1 /* reloc.h -- Header file for relocation information.
2 Copyright (C) 1989,1990 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* Relocation types for a.out files using reloc_info_extended
21 (SPARC and AMD 29000). */
23 #ifndef _RELOC_H_READ_
24 #define _RELOC_H_READ_ 1
28 RELOC_8, RELOC_16, RELOC_32, /* simple relocations */
29 RELOC_DISP8, RELOC_DISP16, RELOC_DISP32, /* pc-rel displacement */
30 RELOC_WDISP30, RELOC_WDISP22,
33 RELOC_SFA_BASE, RELOC_SFA_OFF13,
34 RELOC_BASE10, RELOC_BASE13, RELOC_BASE22, /* P.I.C. (base-relative) */
35 RELOC_PC10, RELOC_PC22, /* for some sort of pc-rel P.I.C. (?) */
36 RELOC_JMP_TBL, /* P.I.C. jump table */
37 RELOC_SEGOFF16, /* reputedly for shared libraries somehow */
38 RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE,
45 /* 29K relocation types */
46 RELOC_JUMPTARG, RELOC_CONST, RELOC_CONSTH,
48 RELOC_WDISP14, RELOC_WDISP21,
53 #define RELOC_TYPE_NAMES \
54 "8", "16", "32", "DISP8", \
55 "DISP16", "DISP32", "WDISP30", "WDISP22", \
56 "HI22", "22", "13", "LO10", \
57 "SFA_BASE", "SFAOFF13", "BASE10", "BASE13", \
58 "BASE22", "PC10", "PC22", "JMP_TBL", \
59 "SEGOFF16", "GLOB_DAT", "JMP_SLOT", "RELATIVE", \
60 "11", "WDISP2_14", "WDISP19", \
61 "JUMPTARG", "CONST", "CONSTH", \
63 "XXX_28", "XXX_29", "XXX_30", "XXX_31"
65 #endif /* _RELOC_H_READ_ */