xref: /netbsd-src/external/gpl3/binutils.old/dist/include/elf/crx.h (revision e992f068c547fd6e84b3f104dc2340adcc955732)
175fd0b74Schristos /* CRX ELF support for BFD.
2*e992f068Schristos    Copyright (C) 2004-2022 Free Software Foundation, Inc.
375fd0b74Schristos    Contributed by Tomer Levi, NSC, Israel.
475fd0b74Schristos    Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
575fd0b74Schristos    Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
675fd0b74Schristos 
775fd0b74Schristos    This file is part of BFD, the Binary File Descriptor library.
875fd0b74Schristos 
975fd0b74Schristos    This program is free software; you can redistribute it and/or modify
1075fd0b74Schristos    it under the terms of the GNU General Public License as published by
1175fd0b74Schristos    the Free Software Foundation; either version 3 of the License, or
1275fd0b74Schristos    (at your option) any later version.
1375fd0b74Schristos 
1475fd0b74Schristos    This program is distributed in the hope that it will be useful,
1575fd0b74Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1675fd0b74Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1775fd0b74Schristos    GNU General Public License for more details.
1875fd0b74Schristos 
1975fd0b74Schristos    You should have received a copy of the GNU General Public License
2075fd0b74Schristos    along with this program; if not, write to the Free Software Foundation,
2175fd0b74Schristos    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
2275fd0b74Schristos 
2375fd0b74Schristos #ifndef _ELF_CRX_H
2475fd0b74Schristos #define _ELF_CRX_H
2575fd0b74Schristos 
2675fd0b74Schristos #include "elf/reloc-macros.h"
2775fd0b74Schristos 
2875fd0b74Schristos /* Creating indices for reloc_map_index array.  */
2975fd0b74Schristos START_RELOC_NUMBERS(elf_crx_reloc_type)
3075fd0b74Schristos   RELOC_NUMBER (R_CRX_NONE,           0)
3175fd0b74Schristos   RELOC_NUMBER (R_CRX_REL4,           1)
3275fd0b74Schristos   RELOC_NUMBER (R_CRX_REL8,           2)
3375fd0b74Schristos   RELOC_NUMBER (R_CRX_REL8_CMP,       3)
3475fd0b74Schristos   RELOC_NUMBER (R_CRX_REL16,          4)
3575fd0b74Schristos   RELOC_NUMBER (R_CRX_REL24,          5)
3675fd0b74Schristos   RELOC_NUMBER (R_CRX_REL32,          6)
3775fd0b74Schristos   RELOC_NUMBER (R_CRX_REGREL12,       7)
3875fd0b74Schristos   RELOC_NUMBER (R_CRX_REGREL22,       8)
3975fd0b74Schristos   RELOC_NUMBER (R_CRX_REGREL28,       9)
4075fd0b74Schristos   RELOC_NUMBER (R_CRX_REGREL32,       10)
4175fd0b74Schristos   RELOC_NUMBER (R_CRX_ABS16,          11)
4275fd0b74Schristos   RELOC_NUMBER (R_CRX_ABS32,          12)
4375fd0b74Schristos   RELOC_NUMBER (R_CRX_NUM8,	      13)
4475fd0b74Schristos   RELOC_NUMBER (R_CRX_NUM16,          14)
4575fd0b74Schristos   RELOC_NUMBER (R_CRX_NUM32,          15)
4675fd0b74Schristos   RELOC_NUMBER (R_CRX_IMM16,	      16)
4775fd0b74Schristos   RELOC_NUMBER (R_CRX_IMM32,	      17)
4875fd0b74Schristos   RELOC_NUMBER (R_CRX_SWITCH8,	      18)
4975fd0b74Schristos   RELOC_NUMBER (R_CRX_SWITCH16,	      19)
5075fd0b74Schristos   RELOC_NUMBER (R_CRX_SWITCH32,	      20)
5175fd0b74Schristos END_RELOC_NUMBERS(R_CRX_MAX)
5275fd0b74Schristos 
5375fd0b74Schristos #endif /* _ELF_CRX_H */
54