1214571Sdim/* CR16 ELF support for BFD. 2214571Sdim Copyright 2007 Free Software Foundation, Inc. 3214571Sdim Contributed by M R Swami Reddy. 4214571Sdim 5214571Sdim This file is part of BFD, the Binary File Descriptor library. 6214571Sdim 7214571Sdim This program is free software; you can redistribute it and/or modify 8214571Sdim it under the terms of the GNU General Public License as published by 9214571Sdim the Free Software Foundation; either version 2 of the License, or 10214571Sdim (at your option) any later version. 11214571Sdim 12214571Sdim This program is distributed in the hope that it will be useful, 13214571Sdim but WITHOUT ANY WARRANTY; without even the implied warranty of 14214571Sdim MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15214571Sdim GNU General Public License for more details. 16214571Sdim 17214571Sdim You should have received a copy of the GNU General Public License 18214571Sdim along with this program; if not, write to the Free Software Foundation, 19214571Sdim Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 20214571Sdim 21214571Sdim#ifndef _ELF_CR16_H 22214571Sdim#define _ELF_CR16_H 23214571Sdim 24214571Sdim#include "elf/reloc-macros.h" 25214571Sdim 26214571Sdim/* Creating indices for reloc_map_index array. */ 27214571SdimSTART_RELOC_NUMBERS(elf_cr16_reloc_type) 28214571Sdim RELOC_NUMBER (R_CR16_NONE, 0) 29214571Sdim RELOC_NUMBER (R_CR16_NUM8, 1) 30214571Sdim RELOC_NUMBER (R_CR16_NUM16, 2) 31214571Sdim RELOC_NUMBER (R_CR16_NUM32, 3) 32214571Sdim RELOC_NUMBER (R_CR16_NUM32a, 4) 33214571Sdim RELOC_NUMBER (R_CR16_REGREL4, 5) 34214571Sdim RELOC_NUMBER (R_CR16_REGREL4a, 6) 35214571Sdim RELOC_NUMBER (R_CR16_REGREL14, 7) 36214571Sdim RELOC_NUMBER (R_CR16_REGREL14a, 8) 37214571Sdim RELOC_NUMBER (R_CR16_REGREL16, 9) 38214571Sdim RELOC_NUMBER (R_CR16_REGREL20, 10) 39214571Sdim RELOC_NUMBER (R_CR16_REGREL20a, 11) 40214571Sdim RELOC_NUMBER (R_CR16_ABS20, 12) 41214571Sdim RELOC_NUMBER (R_CR16_ABS24, 13) 42214571Sdim RELOC_NUMBER (R_CR16_IMM4, 14) 43214571Sdim RELOC_NUMBER (R_CR16_IMM8, 15) 44214571Sdim RELOC_NUMBER (R_CR16_IMM16, 16) 45214571Sdim RELOC_NUMBER (R_CR16_IMM20, 17) 46214571Sdim RELOC_NUMBER (R_CR16_IMM24, 18) 47214571Sdim RELOC_NUMBER (R_CR16_IMM32, 19) 48214571Sdim RELOC_NUMBER (R_CR16_IMM32a, 20) 49214571Sdim RELOC_NUMBER (R_CR16_DISP4, 21) 50214571Sdim RELOC_NUMBER (R_CR16_DISP8, 22) 51214571Sdim RELOC_NUMBER (R_CR16_DISP16, 23) 52214571Sdim RELOC_NUMBER (R_CR16_DISP24, 24) 53214571Sdim RELOC_NUMBER (R_CR16_DISP24a, 25) 54214571SdimEND_RELOC_NUMBERS(R_CR16_MAX) 55214571Sdim 56214571Sdim#endif /* _ELF_CR16_H */ 57