133965Sjdp/* reloc.h -- Header file for relocation information. 278828Sobrien Copyright 1989, 1990, 1991 Free Software Foundation, Inc. 333965Sjdp 433965SjdpThis program is free software; you can redistribute it and/or modify 533965Sjdpit under the terms of the GNU General Public License as published by 633965Sjdpthe Free Software Foundation; either version 2 of the License, or 733965Sjdp(at your option) any later version. 833965Sjdp 933965SjdpThis program is distributed in the hope that it will be useful, 1033965Sjdpbut WITHOUT ANY WARRANTY; without even the implied warranty of 1133965SjdpMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1233965SjdpGNU General Public License for more details. 1333965Sjdp 1433965SjdpYou should have received a copy of the GNU General Public License 1533965Sjdpalong with this program; if not, write to the Free Software 16218822SdimFoundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 1733965Sjdp 1833965Sjdp/* Relocation types for a.out files using reloc_info_extended 1933965Sjdp (SPARC and AMD 29000). */ 2033965Sjdp 2133965Sjdp#ifndef _RELOC_H_READ_ 2233965Sjdp#define _RELOC_H_READ_ 1 2333965Sjdp 2433965Sjdpenum reloc_type 2533965Sjdp { 2633965Sjdp RELOC_8, RELOC_16, RELOC_32, /* simple relocations */ 2733965Sjdp RELOC_DISP8, RELOC_DISP16, RELOC_DISP32, /* pc-rel displacement */ 2833965Sjdp RELOC_WDISP30, RELOC_WDISP22, 2933965Sjdp RELOC_HI22, RELOC_22, 3033965Sjdp RELOC_13, RELOC_LO10, 3133965Sjdp RELOC_SFA_BASE, RELOC_SFA_OFF13, 3233965Sjdp RELOC_BASE10, RELOC_BASE13, RELOC_BASE22, /* P.I.C. (base-relative) */ 3333965Sjdp RELOC_PC10, RELOC_PC22, /* for some sort of pc-rel P.I.C. (?) */ 3433965Sjdp RELOC_JMP_TBL, /* P.I.C. jump table */ 3533965Sjdp RELOC_SEGOFF16, /* reputedly for shared libraries somehow */ 3633965Sjdp RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE, 3733965Sjdp RELOC_11, 3833965Sjdp RELOC_WDISP2_14, 3933965Sjdp RELOC_WDISP19, 4033965Sjdp RELOC_HHI22, 4133965Sjdp RELOC_HLO10, 4233965Sjdp 4333965Sjdp /* 29K relocation types */ 4433965Sjdp RELOC_JUMPTARG, RELOC_CONST, RELOC_CONSTH, 4533965Sjdp 4633965Sjdp RELOC_WDISP14, RELOC_WDISP21, 4733965Sjdp 4833965Sjdp NO_RELOC 4933965Sjdp }; 5033965Sjdp 5133965Sjdp#define RELOC_TYPE_NAMES \ 5233965Sjdp"8", "16", "32", "DISP8", \ 5333965Sjdp"DISP16", "DISP32", "WDISP30", "WDISP22", \ 5433965Sjdp"HI22", "22", "13", "LO10", \ 5533965Sjdp"SFA_BASE", "SFAOFF13", "BASE10", "BASE13", \ 5633965Sjdp"BASE22", "PC10", "PC22", "JMP_TBL", \ 5733965Sjdp"SEGOFF16", "GLOB_DAT", "JMP_SLOT", "RELATIVE", \ 5833965Sjdp"11", "WDISP2_14", "WDISP19", "HHI22", \ 5933965Sjdp"HLO10", \ 6033965Sjdp"JUMPTARG", "CONST", "CONSTH", "WDISP14", \ 6133965Sjdp"WDISP21", \ 6233965Sjdp"NO_RELOC" 6333965Sjdp 6433965Sjdp#endif /* _RELOC_H_READ_ */ 6533965Sjdp 6633965Sjdp/* end of reloc.h */ 67