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