1214082Sdim/* CRX ELF support for BFD.
2214082Sdim   Copyright 2004 Free Software Foundation, Inc.
3214082Sdim   Contributed by Tomer Levi, NSC, Israel.
4214082Sdim   Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
5214082Sdim   Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
6214082Sdim
7214082Sdim   This file is part of BFD, the Binary File Descriptor library.
8214082Sdim
9214082Sdim   This program is free software; you can redistribute it and/or modify
10214082Sdim   it under the terms of the GNU General Public License as published by
11214082Sdim   the Free Software Foundation; either version 2 of the License, or
12214082Sdim   (at your option) any later version.
13214082Sdim
14214082Sdim   This program is distributed in the hope that it will be useful,
15214082Sdim   but WITHOUT ANY WARRANTY; without even the implied warranty of
16214082Sdim   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17214082Sdim   GNU General Public License for more details.
18214082Sdim
19214082Sdim   You should have received a copy of the GNU General Public License
20214082Sdim   along with this program; if not, write to the Free Software Foundation,
21214082Sdim   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
22214082Sdim
23214082Sdim#ifndef _ELF_CRX_H
24214082Sdim#define _ELF_CRX_H
25214082Sdim
26214082Sdim#include "elf/reloc-macros.h"
27214082Sdim
28214082Sdim/* Creating indices for reloc_map_index array.  */
29214082SdimSTART_RELOC_NUMBERS(elf_crx_reloc_type)
30214082Sdim  RELOC_NUMBER (R_CRX_NONE,           0)
31214082Sdim  RELOC_NUMBER (R_CRX_REL4,           1)
32214082Sdim  RELOC_NUMBER (R_CRX_REL8,           2)
33214082Sdim  RELOC_NUMBER (R_CRX_REL8_CMP,       3)
34214082Sdim  RELOC_NUMBER (R_CRX_REL16,          4)
35214082Sdim  RELOC_NUMBER (R_CRX_REL24,          5)
36214082Sdim  RELOC_NUMBER (R_CRX_REL32,          6)
37214082Sdim  RELOC_NUMBER (R_CRX_REGREL12,       7)
38214082Sdim  RELOC_NUMBER (R_CRX_REGREL22,       8)
39214082Sdim  RELOC_NUMBER (R_CRX_REGREL28,       9)
40214082Sdim  RELOC_NUMBER (R_CRX_REGREL32,       10)
41214082Sdim  RELOC_NUMBER (R_CRX_ABS16,          11)
42214082Sdim  RELOC_NUMBER (R_CRX_ABS32,          12)
43214082Sdim  RELOC_NUMBER (R_CRX_NUM8,	      13)
44214082Sdim  RELOC_NUMBER (R_CRX_NUM16,          14)
45214082Sdim  RELOC_NUMBER (R_CRX_NUM32,          15)
46214082Sdim  RELOC_NUMBER (R_CRX_IMM16,	      16)
47214082Sdim  RELOC_NUMBER (R_CRX_IMM32,	      17)
48214082Sdim  RELOC_NUMBER (R_CRX_SWITCH8,	      18)
49214082Sdim  RELOC_NUMBER (R_CRX_SWITCH16,	      19)
50214082Sdim  RELOC_NUMBER (R_CRX_SWITCH32,	      20)
51214082SdimEND_RELOC_NUMBERS(R_CRX_MAX)
52214082Sdim
53214082Sdim#endif /* _ELF_CRX_H */
54