Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / sdbinutils / include / elf / or1k.h
blob8e4a2492e9dfb1f9c486d0ae61c8ad70aee31d12
1 /* Or1k ELF support for BFD.
2 Copyright (C) 2001-2022 Free Software Foundation, Inc.
4 This file is part of BFD, the Binary File Descriptor library.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> */
19 #ifndef _ELF_OR1K_H
20 #define _ELF_OR1K_H
22 #include "elf/reloc-macros.h"
24 /* Relocations. */
25 START_RELOC_NUMBERS (elf_or1k_reloc_type)
26 RELOC_NUMBER (R_OR1K_NONE, 0)
27 RELOC_NUMBER (R_OR1K_32, 1)
28 RELOC_NUMBER (R_OR1K_16, 2)
29 RELOC_NUMBER (R_OR1K_8, 3)
30 RELOC_NUMBER (R_OR1K_LO_16_IN_INSN, 4)
31 RELOC_NUMBER (R_OR1K_HI_16_IN_INSN, 5)
32 RELOC_NUMBER (R_OR1K_INSN_REL_26, 6)
33 RELOC_NUMBER (R_OR1K_GNU_VTENTRY, 7)
34 RELOC_NUMBER (R_OR1K_GNU_VTINHERIT, 8)
35 RELOC_NUMBER (R_OR1K_32_PCREL, 9)
36 RELOC_NUMBER (R_OR1K_16_PCREL, 10)
37 RELOC_NUMBER (R_OR1K_8_PCREL, 11)
38 RELOC_NUMBER (R_OR1K_GOTPC_HI16, 12)
39 RELOC_NUMBER (R_OR1K_GOTPC_LO16, 13)
40 RELOC_NUMBER (R_OR1K_GOT16, 14)
41 RELOC_NUMBER (R_OR1K_PLT26, 15)
42 RELOC_NUMBER (R_OR1K_GOTOFF_HI16, 16)
43 RELOC_NUMBER (R_OR1K_GOTOFF_LO16, 17)
44 RELOC_NUMBER (R_OR1K_COPY, 18)
45 RELOC_NUMBER (R_OR1K_GLOB_DAT, 19)
46 RELOC_NUMBER (R_OR1K_JMP_SLOT, 20)
47 RELOC_NUMBER (R_OR1K_RELATIVE, 21)
48 RELOC_NUMBER (R_OR1K_TLS_GD_HI16, 22)
49 RELOC_NUMBER (R_OR1K_TLS_GD_LO16, 23)
50 RELOC_NUMBER (R_OR1K_TLS_LDM_HI16, 24)
51 RELOC_NUMBER (R_OR1K_TLS_LDM_LO16, 25)
52 RELOC_NUMBER (R_OR1K_TLS_LDO_HI16, 26)
53 RELOC_NUMBER (R_OR1K_TLS_LDO_LO16, 27)
54 RELOC_NUMBER (R_OR1K_TLS_IE_HI16, 28)
55 RELOC_NUMBER (R_OR1K_TLS_IE_LO16, 29)
56 RELOC_NUMBER (R_OR1K_TLS_LE_HI16, 30)
57 RELOC_NUMBER (R_OR1K_TLS_LE_LO16, 31)
58 RELOC_NUMBER (R_OR1K_TLS_TPOFF, 32)
59 RELOC_NUMBER (R_OR1K_TLS_DTPOFF, 33)
60 RELOC_NUMBER (R_OR1K_TLS_DTPMOD, 34)
61 RELOC_NUMBER (R_OR1K_AHI16, 35)
62 RELOC_NUMBER (R_OR1K_GOTOFF_AHI16, 36)
63 RELOC_NUMBER (R_OR1K_TLS_IE_AHI16, 37)
64 RELOC_NUMBER (R_OR1K_TLS_LE_AHI16, 38)
65 RELOC_NUMBER (R_OR1K_SLO16, 39)
66 RELOC_NUMBER (R_OR1K_GOTOFF_SLO16, 40)
67 RELOC_NUMBER (R_OR1K_TLS_LE_SLO16, 41)
68 RELOC_NUMBER (R_OR1K_PCREL_PG21, 42)
69 RELOC_NUMBER (R_OR1K_GOT_PG21, 43)
70 RELOC_NUMBER (R_OR1K_TLS_GD_PG21, 44)
71 RELOC_NUMBER (R_OR1K_TLS_LDM_PG21, 45)
72 RELOC_NUMBER (R_OR1K_TLS_IE_PG21, 46)
73 RELOC_NUMBER (R_OR1K_LO13, 47)
74 RELOC_NUMBER (R_OR1K_GOT_LO13, 48)
75 RELOC_NUMBER (R_OR1K_TLS_GD_LO13, 49)
76 RELOC_NUMBER (R_OR1K_TLS_LDM_LO13, 50)
77 RELOC_NUMBER (R_OR1K_TLS_IE_LO13, 51)
78 RELOC_NUMBER (R_OR1K_SLO13, 52)
79 RELOC_NUMBER (R_OR1K_PLTA26, 53)
80 RELOC_NUMBER (R_OR1K_GOT_AHI16, 54)
81 END_RELOC_NUMBERS (R_OR1K_max)
83 #define EF_OR1K_NODELAY (1UL << 0)
85 #endif /* _ELF_OR1K_H */