1*fae548d3Szrj /* CRX ELF support for BFD. 2*fae548d3Szrj Copyright (C) 2004-2020 Free Software Foundation, Inc. 3*fae548d3Szrj Contributed by Tomer Levi, NSC, Israel. 4*fae548d3Szrj Originally written for GAS 2.12 by Tomer Levi, NSC, Israel. 5*fae548d3Szrj Updates, BFDizing, GNUifying and ELF support by Tomer Levi. 6*fae548d3Szrj 7*fae548d3Szrj This file is part of BFD, the Binary File Descriptor library. 8*fae548d3Szrj 9*fae548d3Szrj This program is free software; you can redistribute it and/or modify 10*fae548d3Szrj it under the terms of the GNU General Public License as published by 11*fae548d3Szrj the Free Software Foundation; either version 3 of the License, or 12*fae548d3Szrj (at your option) any later version. 13*fae548d3Szrj 14*fae548d3Szrj This program is distributed in the hope that it will be useful, 15*fae548d3Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 16*fae548d3Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*fae548d3Szrj GNU General Public License for more details. 18*fae548d3Szrj 19*fae548d3Szrj You should have received a copy of the GNU General Public License 20*fae548d3Szrj along with this program; if not, write to the Free Software Foundation, 21*fae548d3Szrj Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 22*fae548d3Szrj 23*fae548d3Szrj #ifndef _ELF_CRX_H 24*fae548d3Szrj #define _ELF_CRX_H 25*fae548d3Szrj 26*fae548d3Szrj #include "elf/reloc-macros.h" 27*fae548d3Szrj 28*fae548d3Szrj /* Creating indices for reloc_map_index array. */ 29*fae548d3Szrj START_RELOC_NUMBERS(elf_crx_reloc_type) 30*fae548d3Szrj RELOC_NUMBER (R_CRX_NONE, 0) 31*fae548d3Szrj RELOC_NUMBER (R_CRX_REL4, 1) 32*fae548d3Szrj RELOC_NUMBER (R_CRX_REL8, 2) 33*fae548d3Szrj RELOC_NUMBER (R_CRX_REL8_CMP, 3) 34*fae548d3Szrj RELOC_NUMBER (R_CRX_REL16, 4) 35*fae548d3Szrj RELOC_NUMBER (R_CRX_REL24, 5) 36*fae548d3Szrj RELOC_NUMBER (R_CRX_REL32, 6) 37*fae548d3Szrj RELOC_NUMBER (R_CRX_REGREL12, 7) 38*fae548d3Szrj RELOC_NUMBER (R_CRX_REGREL22, 8) 39*fae548d3Szrj RELOC_NUMBER (R_CRX_REGREL28, 9) 40*fae548d3Szrj RELOC_NUMBER (R_CRX_REGREL32, 10) 41*fae548d3Szrj RELOC_NUMBER (R_CRX_ABS16, 11) 42*fae548d3Szrj RELOC_NUMBER (R_CRX_ABS32, 12) 43*fae548d3Szrj RELOC_NUMBER (R_CRX_NUM8, 13) 44*fae548d3Szrj RELOC_NUMBER (R_CRX_NUM16, 14) 45*fae548d3Szrj RELOC_NUMBER (R_CRX_NUM32, 15) 46*fae548d3Szrj RELOC_NUMBER (R_CRX_IMM16, 16) 47*fae548d3Szrj RELOC_NUMBER (R_CRX_IMM32, 17) 48*fae548d3Szrj RELOC_NUMBER (R_CRX_SWITCH8, 18) 49*fae548d3Szrj RELOC_NUMBER (R_CRX_SWITCH16, 19) 50*fae548d3Szrj RELOC_NUMBER (R_CRX_SWITCH32, 20) 51*fae548d3Szrj END_RELOC_NUMBERS(R_CRX_MAX) 52*fae548d3Szrj 53*fae548d3Szrj #endif /* _ELF_CRX_H */ 54