1 /* Visium ELF support for BFD.
2 
3    Copyright (C) 2002-2016 Free Software Foundation, Inc.
4 
5    This file is part of BFD, the Binary File Descriptor library.
6 
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11 
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16 
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software Foundation,
19    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
20 
21 #ifndef _ELF_VISIUM_H
22 #define _ELF_VISIUM_H
23 
24 #include "elf/reloc-macros.h"
25 
26 /* Processor specific flags for the ELF header e_flags field.  */
27 #define EF_VISIUM_ARCH_MCM   0x01
28 #define EF_VISIUM_ARCH_MCM24 0x02
29 #define EF_VISIUM_ARCH_GR6   0x04
30 
31 /* Relocations.  */
32 START_RELOC_NUMBERS (elf_visium_reloc_type)
33   RELOC_NUMBER (R_VISIUM_NONE, 0)
34   RELOC_NUMBER (R_VISIUM_8, 1)
35   RELOC_NUMBER (R_VISIUM_16, 2)
36   RELOC_NUMBER (R_VISIUM_32, 3)
37   RELOC_NUMBER (R_VISIUM_8_PCREL, 4)
38   RELOC_NUMBER (R_VISIUM_16_PCREL, 5)
39   RELOC_NUMBER (R_VISIUM_32_PCREL, 6)
40   RELOC_NUMBER (R_VISIUM_PC16, 7)
41   RELOC_NUMBER (R_VISIUM_HI16, 8)
42   RELOC_NUMBER (R_VISIUM_LO16, 9)
43   RELOC_NUMBER (R_VISIUM_IM16, 10)
44   RELOC_NUMBER (R_VISIUM_HI16_PCREL, 11)
45   RELOC_NUMBER (R_VISIUM_LO16_PCREL, 12)
46   RELOC_NUMBER (R_VISIUM_IM16_PCREL, 13)
47   RELOC_NUMBER (R_VISIUM_GNU_VTINHERIT, 200)
48   RELOC_NUMBER (R_VISIUM_GNU_VTENTRY, 201)
49 END_RELOC_NUMBERS(R_VISIUM_max)
50 
51 #endif /* _ELF_VISIUM_H */
52