PR binutils/11742
[binutils.git] / include / elf / or32.h
blob9f1c2f3f7e555685b72f06d42f6b9823e69c0b1e
1 /* OR1K ELF support for BFD. Derived from ppc.h.
2 Copyright (C) 2002, 2010 Free Software Foundation, Inc.
3 Contributed by Ivan Guzvinec <ivang@opencores.org>
5 This file is part of BFD, the Binary File Descriptor library.
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.
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.
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
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
22 #ifndef _ELF_OR1K_H
23 #define _ELF_OR1K_H
25 #include "elf/reloc-macros.h"
27 /* Relocations. */
28 START_RELOC_NUMBERS (elf_or32_reloc_type)
29 RELOC_NUMBER (R_OR32_NONE, 0)
30 RELOC_NUMBER (R_OR32_32, 1)
31 RELOC_NUMBER (R_OR32_16, 2)
32 RELOC_NUMBER (R_OR32_8, 3)
33 RELOC_NUMBER (R_OR32_CONST, 4)
34 RELOC_NUMBER (R_OR32_CONSTH, 5)
35 RELOC_NUMBER (R_OR32_JUMPTARG, 6)
36 RELOC_NUMBER (R_OR32_GNU_VTENTRY, 7)
37 RELOC_NUMBER (R_OR32_GNU_VTINHERIT, 8)
38 END_RELOC_NUMBERS (R_OR32_max)
40 /* Four bit OR32 machine type field. */
41 #define EF_OR32_MACH 0x0000000f
43 /* Various CPU types. */
44 #define E_OR32_MACH_BASE 0x00000000
45 #define E_OR32_MACH_UNUSED1 0x00000001
46 #define E_OR32_MACH_UNUSED2 0x00000002
47 #define E_OR32_MACH_UNUSED4 0x00000003
49 /* Processor specific section headers, sh_type field */
50 #define SHT_ORDERED SHT_HIPROC /* Link editor is to sort the \
51 entries in this section \
52 based on the address \
53 specified in the associated \
54 symbol table entry. */
56 #endif /* _ELF_OR1K_H */