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