xref: /dflybsd-src/contrib/binutils-2.27/include/elf/lm32.h (revision e656dc90e3d65d744d534af2f5ea88cf8101ebcf)
1*a9fa9459Szrj /* Lattice Mico32 ELF support for BFD.
2*a9fa9459Szrj    Copyright (C) 2008-2016 Free Software Foundation, Inc.
3*a9fa9459Szrj    Contributed by Jon Beniston <jon@beniston.com>
4*a9fa9459Szrj 
5*a9fa9459Szrj    This file is part of BFD, the Binary File Descriptor library.
6*a9fa9459Szrj 
7*a9fa9459Szrj    This program is free software; you can redistribute it and/or modify
8*a9fa9459Szrj    it under the terms of the GNU General Public License as published by
9*a9fa9459Szrj    the Free Software Foundation; either version 3 of the License, or
10*a9fa9459Szrj    (at your option) any later version.
11*a9fa9459Szrj 
12*a9fa9459Szrj    This program is distributed in the hope that it will be useful,
13*a9fa9459Szrj    but WITHOUT ANY WARRANTY; without even the implied warranty of
14*a9fa9459Szrj    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*a9fa9459Szrj    GNU General Public License for more details.
16*a9fa9459Szrj 
17*a9fa9459Szrj    You should have received a copy of the GNU General Public License
18*a9fa9459Szrj    along with this program; if not, write to the Free Software Foundation,
19*a9fa9459Szrj    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
20*a9fa9459Szrj 
21*a9fa9459Szrj #ifndef _ELF_LM32_H
22*a9fa9459Szrj #define _ELF_LM32_H
23*a9fa9459Szrj 
24*a9fa9459Szrj #include "elf/reloc-macros.h"
25*a9fa9459Szrj 
26*a9fa9459Szrj /* Relocations.  */
27*a9fa9459Szrj START_RELOC_NUMBERS (elf_lm32_reloc_type)
28*a9fa9459Szrj      RELOC_NUMBER (R_LM32_NONE,                      0)
29*a9fa9459Szrj      RELOC_NUMBER (R_LM32_8,                         1)
30*a9fa9459Szrj      RELOC_NUMBER (R_LM32_16,                        2)
31*a9fa9459Szrj      RELOC_NUMBER (R_LM32_32,                        3)
32*a9fa9459Szrj      RELOC_NUMBER (R_LM32_HI16,                      4)
33*a9fa9459Szrj      RELOC_NUMBER (R_LM32_LO16,                      5)
34*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GPREL16,                   6)
35*a9fa9459Szrj      RELOC_NUMBER (R_LM32_CALL,                      7)
36*a9fa9459Szrj      RELOC_NUMBER (R_LM32_BRANCH,                    8)
37*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GNU_VTINHERIT,             9)
38*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GNU_VTENTRY,               10)
39*a9fa9459Szrj      RELOC_NUMBER (R_LM32_16_GOT,                    11)
40*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GOTOFF_HI16,               12)
41*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GOTOFF_LO16,               13)
42*a9fa9459Szrj      RELOC_NUMBER (R_LM32_COPY,                      14)
43*a9fa9459Szrj      RELOC_NUMBER (R_LM32_GLOB_DAT,                  15)
44*a9fa9459Szrj      RELOC_NUMBER (R_LM32_JMP_SLOT,                  16)
45*a9fa9459Szrj      RELOC_NUMBER (R_LM32_RELATIVE,                  17)
46*a9fa9459Szrj END_RELOC_NUMBERS (R_LM32_max)
47*a9fa9459Szrj 
48*a9fa9459Szrj /* Processor specific flags for the ELF header e_flags field.  */
49*a9fa9459Szrj 
50*a9fa9459Szrj #define EF_LM32_MACH                 0x00000001
51*a9fa9459Szrj 
52*a9fa9459Szrj /* Various CPU types.  */
53*a9fa9459Szrj 
54*a9fa9459Szrj #define E_LM32_MACH                  0x1
55*a9fa9459Szrj 
56*a9fa9459Szrj #endif /* _ELF_LM32_H */
57