175fd0b74Schristos /* i860 ELF support for BFD. 2*e992f068Schristos Copyright (C) 2000-2022 Free Software Foundation, Inc. 375fd0b74Schristos 475fd0b74Schristos Contributed by Jason Eckhardt <jle@cygnus.com>. 575fd0b74Schristos 675fd0b74Schristos This file is part of BFD, the Binary File Descriptor library. 775fd0b74Schristos 875fd0b74Schristos This program is free software; you can redistribute it and/or modify 975fd0b74Schristos it under the terms of the GNU General Public License as published by 1075fd0b74Schristos the Free Software Foundation; either version 3 of the License, or 1175fd0b74Schristos (at your option) any later version. 1275fd0b74Schristos 1375fd0b74Schristos This program is distributed in the hope that it will be useful, 1475fd0b74Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1575fd0b74Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1675fd0b74Schristos GNU General Public License for more details. 1775fd0b74Schristos 1875fd0b74Schristos You should have received a copy of the GNU General Public License 1975fd0b74Schristos along with this program; if not, write to the Free Software Foundation, 2075fd0b74Schristos Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2175fd0b74Schristos 2275fd0b74Schristos #ifndef _ELF_I860_H 2375fd0b74Schristos #define _ELF_I860_H 2475fd0b74Schristos 2575fd0b74Schristos /* Note: i860 ELF is defined to use only RELA relocations. */ 2675fd0b74Schristos 2775fd0b74Schristos #include "elf/reloc-macros.h" 2875fd0b74Schristos 2975fd0b74Schristos START_RELOC_NUMBERS (elf_i860_reloc_type) 3075fd0b74Schristos RELOC_NUMBER (R_860_NONE, 0x00) /* No reloc */ 3175fd0b74Schristos RELOC_NUMBER (R_860_32, 0x01) /* S+A */ 3275fd0b74Schristos RELOC_NUMBER (R_860_COPY, 0x02) /* No calculation */ 3375fd0b74Schristos RELOC_NUMBER (R_860_GLOB_DAT, 0x03) /* S, Create GOT entry */ 3475fd0b74Schristos RELOC_NUMBER (R_860_JUMP_SLOT, 0x04) /* S+A, Create PLT entry */ 3575fd0b74Schristos RELOC_NUMBER (R_860_RELATIVE, 0x05) /* B+A, Adj by program base */ 3675fd0b74Schristos RELOC_NUMBER (R_860_PC26, 0x30) /* (S+A-P) >> 2 */ 3775fd0b74Schristos RELOC_NUMBER (R_860_PLT26, 0x31) /* (L+A-P) >> 2 */ 3875fd0b74Schristos RELOC_NUMBER (R_860_PC16, 0x32) /* (S+A-P) >> 2 */ 3975fd0b74Schristos RELOC_NUMBER (R_860_LOW0, 0x40) /* S+A */ 4075fd0b74Schristos RELOC_NUMBER (R_860_SPLIT0, 0x42) /* S+A */ 4175fd0b74Schristos RELOC_NUMBER (R_860_LOW1, 0x44) /* S+A */ 4275fd0b74Schristos RELOC_NUMBER (R_860_SPLIT1, 0x46) /* S+A */ 4375fd0b74Schristos RELOC_NUMBER (R_860_LOW2, 0x48) /* S+A */ 4475fd0b74Schristos RELOC_NUMBER (R_860_SPLIT2, 0x4A) /* S+A */ 4575fd0b74Schristos RELOC_NUMBER (R_860_LOW3, 0x4C) /* S+A */ 4675fd0b74Schristos RELOC_NUMBER (R_860_LOGOT0, 0x50) /* G */ 4775fd0b74Schristos RELOC_NUMBER (R_860_SPGOT0, 0x52) /* G */ 4875fd0b74Schristos RELOC_NUMBER (R_860_LOGOT1, 0x54) /* G */ 4975fd0b74Schristos RELOC_NUMBER (R_860_SPGOT1, 0x56) /* G */ 5075fd0b74Schristos RELOC_NUMBER (R_860_LOGOTOFF0, 0x60) /* O */ 5175fd0b74Schristos RELOC_NUMBER (R_860_SPGOTOFF0, 0x62) /* O */ 5275fd0b74Schristos RELOC_NUMBER (R_860_LOGOTOFF1, 0x64) /* O */ 5375fd0b74Schristos RELOC_NUMBER (R_860_SPGOTOFF1, 0x66) /* O */ 5475fd0b74Schristos RELOC_NUMBER (R_860_LOGOTOFF2, 0x68) /* O */ 5575fd0b74Schristos RELOC_NUMBER (R_860_LOGOTOFF3, 0x6C) /* O */ 5675fd0b74Schristos RELOC_NUMBER (R_860_LOPC, 0x70) /* (S+A-P) >> 2 */ 5775fd0b74Schristos RELOC_NUMBER (R_860_HIGHADJ, 0x80) /* hiadj(S+A) */ 5875fd0b74Schristos RELOC_NUMBER (R_860_HAGOT, 0x90) /* hiadj(G) */ 5975fd0b74Schristos RELOC_NUMBER (R_860_HAGOTOFF, 0xA0) /* hiadj(O) */ 6075fd0b74Schristos RELOC_NUMBER (R_860_HAPC, 0xB0) /* hiadj((S+A-P) >> 2) */ 6175fd0b74Schristos RELOC_NUMBER (R_860_HIGH, 0xC0) /* (S+A) >> 16 */ 6275fd0b74Schristos RELOC_NUMBER (R_860_HIGOT, 0xD0) /* G >> 16 */ 6375fd0b74Schristos RELOC_NUMBER (R_860_HIGOTOFF, 0xE0) /* O */ 6475fd0b74Schristos END_RELOC_NUMBERS (R_860_max) 6575fd0b74Schristos 6675fd0b74Schristos #endif 67