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