elftools 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +111 -7
- data/lib/elftools/constants/machine.rb +248 -0
- data/lib/elftools/constants/machine_names.rb +246 -0
- data/lib/elftools/constants/relocation/aarch64.rb +213 -0
- data/lib/elftools/constants/relocation/alpha.rb +47 -0
- data/lib/elftools/constants/relocation/amdgpu.rb +28 -0
- data/lib/elftools/constants/relocation/arm.rb +150 -0
- data/lib/elftools/constants/relocation/avr.rb +51 -0
- data/lib/elftools/constants/relocation/bfin.rb +72 -0
- data/lib/elftools/constants/relocation/bpf.rb +21 -0
- data/lib/elftools/constants/relocation/cr16.rb +46 -0
- data/lib/elftools/constants/relocation/cris.rb +46 -0
- data/lib/elftools/constants/relocation/crx.rb +35 -0
- data/lib/elftools/constants/relocation/csky.rb +79 -0
- data/lib/elftools/constants/relocation/d10v.rb +23 -0
- data/lib/elftools/constants/relocation/d30v.rb +27 -0
- data/lib/elftools/constants/relocation/dlx.rb +24 -0
- data/lib/elftools/constants/relocation/epiphany.rb +28 -0
- data/lib/elftools/constants/relocation/fr30.rb +27 -0
- data/lib/elftools/constants/relocation/frv.rb +57 -0
- data/lib/elftools/constants/relocation/ft32.rb +27 -0
- data/lib/elftools/constants/relocation/h8.rb +69 -0
- data/lib/elftools/constants/relocation/hppa.rb +135 -0
- data/lib/elftools/constants/relocation/i370.rb +26 -0
- data/lib/elftools/constants/relocation/i386.rb +59 -0
- data/lib/elftools/constants/relocation/i860.rb +48 -0
- data/lib/elftools/constants/relocation/i960.rb +22 -0
- data/lib/elftools/constants/relocation/ia64.rb +117 -0
- data/lib/elftools/constants/relocation/ip2k.rb +29 -0
- data/lib/elftools/constants/relocation/iq2000.rb +27 -0
- data/lib/elftools/constants/relocation/kvx.rb +97 -0
- data/lib/elftools/constants/relocation/lm32.rb +32 -0
- data/lib/elftools/constants/relocation/loongarch.rb +144 -0
- data/lib/elftools/constants/relocation/m32c.rb +27 -0
- data/lib/elftools/constants/relocation/m32r.rb +57 -0
- data/lib/elftools/constants/relocation/m68hc11.rb +35 -0
- data/lib/elftools/constants/relocation/m68k.rb +57 -0
- data/lib/elftools/constants/relocation/mcore.rb +27 -0
- data/lib/elftools/constants/relocation/mep.rb +36 -0
- data/lib/elftools/constants/relocation/metag.rb +63 -0
- data/lib/elftools/constants/relocation/microblaze.rb +48 -0
- data/lib/elftools/constants/relocation/mips.rb +125 -0
- data/lib/elftools/constants/relocation/mmix.rb +51 -0
- data/lib/elftools/constants/relocation/mn10200.rb +22 -0
- data/lib/elftools/constants/relocation/mn10300.rb +49 -0
- data/lib/elftools/constants/relocation/moxie.rb +17 -0
- data/lib/elftools/constants/relocation/msp430.rb +27 -0
- data/lib/elftools/constants/relocation/msp430x.rb +37 -0
- data/lib/elftools/constants/relocation/mt.rb +21 -0
- data/lib/elftools/constants/relocation/nds32.rb +167 -0
- data/lib/elftools/constants/relocation/nfp.rb +41 -0
- data/lib/elftools/constants/relocation/nfp3200.rb +46 -0
- data/lib/elftools/constants/relocation/nios2.rb +74 -0
- data/lib/elftools/constants/relocation/or1k.rb +69 -0
- data/lib/elftools/constants/relocation/pj.rb +24 -0
- data/lib/elftools/constants/relocation/ppc.rb +131 -0
- data/lib/elftools/constants/relocation/ppc64.rb +177 -0
- data/lib/elftools/constants/relocation/pru.rb +31 -0
- data/lib/elftools/constants/relocation/riscv.rb +74 -0
- data/lib/elftools/constants/relocation/rl78.rb +70 -0
- data/lib/elftools/constants/relocation/rx.rb +81 -0
- data/lib/elftools/constants/relocation/s12z.rb +22 -0
- data/lib/elftools/constants/relocation/s390.rb +82 -0
- data/lib/elftools/constants/relocation/score.rb +36 -0
- data/lib/elftools/constants/relocation/sh.rb +124 -0
- data/lib/elftools/constants/relocation/sparc.rb +108 -0
- data/lib/elftools/constants/relocation/spu.rb +32 -0
- data/lib/elftools/constants/relocation/tic6x.rb +48 -0
- data/lib/elftools/constants/relocation/tilegx.rb +134 -0
- data/lib/elftools/constants/relocation/tilepro.rb +105 -0
- data/lib/elftools/constants/relocation/v800.rb +101 -0
- data/lib/elftools/constants/relocation/v850.rb +66 -0
- data/lib/elftools/constants/relocation/vax.rb +29 -0
- data/lib/elftools/constants/relocation/visium.rb +30 -0
- data/lib/elftools/constants/relocation/wasm32.rb +16 -0
- data/lib/elftools/constants/relocation/x86_64.rb +68 -0
- data/lib/elftools/constants/relocation/xgate.rb +34 -0
- data/lib/elftools/constants/relocation/xstormy16.rb +29 -0
- data/lib/elftools/constants/relocation/xtensa.rb +75 -0
- data/lib/elftools/constants/relocation/z80.rb +28 -0
- data/lib/elftools/constants/relocation.rb +181 -0
- data/lib/elftools/constants.rb +124 -231
- data/lib/elftools/dynamic/hash_table.rb +216 -0
- data/lib/elftools/dynamic/string_table.rb +30 -0
- data/lib/elftools/dynamic/symbols.rb +146 -0
- data/lib/elftools/dynamic/tag.rb +66 -0
- data/lib/elftools/dynamic.rb +102 -62
- data/lib/elftools/elf_file.rb +74 -23
- data/lib/elftools/lazy_array.rb +42 -4
- data/lib/elftools/note.rb +6 -3
- data/lib/elftools/relocation.rb +94 -0
- data/lib/elftools/sections/dynamic_section.rb +13 -0
- data/lib/elftools/sections/relocation_section.rb +24 -43
- data/lib/elftools/sections/section.rb +4 -4
- data/lib/elftools/sections/sym_tab_section.rb +14 -34
- data/lib/elftools/sections/symbol.rb +112 -0
- data/lib/elftools/segments/dynamic_segment.rb +1 -0
- data/lib/elftools/segments/load_segment.rb +33 -5
- data/lib/elftools/segments/segment.rb +8 -4
- data/lib/elftools/structs.rb +24 -3
- data/lib/elftools/util.rb +1 -1
- data/lib/elftools/version.rb +1 -1
- metadata +101 -11
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'elftools/constants/machine'
|
|
4
|
+
|
|
5
|
+
# This file is generated by `bundle exec rake gen:constants`, do not edit it.
|
|
6
|
+
# Source: https://sourceware.org/cgit/binutils-gdb/tree/include/elf
|
|
7
|
+
|
|
8
|
+
module ELFTools
|
|
9
|
+
module Constants
|
|
10
|
+
module EM
|
|
11
|
+
# Name of each machine, see {ELFTools::Constants::EM.mapping}.
|
|
12
|
+
# @return [Hash{Integer => String}]
|
|
13
|
+
NAMES = {
|
|
14
|
+
EM_NONE => 'No machine',
|
|
15
|
+
EM_M32 => 'AT&T WE 32100',
|
|
16
|
+
EM_SPARC => 'SUN SPARC',
|
|
17
|
+
EM_386 => 'Intel 80386',
|
|
18
|
+
EM_68K => 'Motorola m68k family',
|
|
19
|
+
EM_88K => 'Motorola m88k family',
|
|
20
|
+
EM_IAMCU => 'Intel MCU',
|
|
21
|
+
EM_860 => 'Intel 80860',
|
|
22
|
+
EM_MIPS => 'MIPS R3000',
|
|
23
|
+
EM_S370 => 'IBM System/370',
|
|
24
|
+
EM_MIPS_RS3_LE => 'MIPS R3000 little-endian (Oct 4 1999 Draft). Deprecated',
|
|
25
|
+
EM_PARISC => 'HPPA',
|
|
26
|
+
EM_VPP550 => 'Fujitsu VPP500',
|
|
27
|
+
EM_SPARC32PLUS => "Sun's \"v8plus\"",
|
|
28
|
+
EM_960 => 'Intel 80960',
|
|
29
|
+
EM_PPC => 'PowerPC',
|
|
30
|
+
EM_PPC64 => '64-bit PowerPC',
|
|
31
|
+
EM_S390 => 'IBM S/390',
|
|
32
|
+
EM_SPU => 'Sony/Toshiba/IBM SPU',
|
|
33
|
+
EM_V800 => 'NEC V800 series',
|
|
34
|
+
EM_FR20 => 'Fujitsu FR20',
|
|
35
|
+
EM_RH32 => 'TRW RH32',
|
|
36
|
+
EM_MCORE => 'Motorola M*Core',
|
|
37
|
+
EM_ARM => 'ARM',
|
|
38
|
+
EM_OLD_ALPHA => 'Digital Alpha',
|
|
39
|
+
EM_SH => 'Renesas (formerly Hitachi) / SuperH SH',
|
|
40
|
+
EM_SPARCV9 => 'SPARC v9 64-bit',
|
|
41
|
+
EM_TRICORE => 'Siemens Tricore embedded processor',
|
|
42
|
+
EM_ARC => 'ARC Cores',
|
|
43
|
+
EM_H8_300 => 'Renesas (formerly Hitachi) H8/300',
|
|
44
|
+
EM_H8_300H => 'Renesas (formerly Hitachi) H8/300H',
|
|
45
|
+
EM_H8S => 'Renesas (formerly Hitachi) H8S',
|
|
46
|
+
EM_H8_500 => 'Renesas (formerly Hitachi) H8/500',
|
|
47
|
+
EM_IA_64 => 'Intel IA-64 Processor',
|
|
48
|
+
EM_MIPS_X => 'Stanford MIPS-X',
|
|
49
|
+
EM_COLDFIRE => 'Motorola Coldfire',
|
|
50
|
+
EM_68HC12 => 'Motorola M68HC12',
|
|
51
|
+
EM_MMA => 'Fujitsu Multimedia Accelerator',
|
|
52
|
+
EM_PCP => 'Siemens PCP',
|
|
53
|
+
EM_NCPU => 'Sony nCPU embedded RISC processor',
|
|
54
|
+
EM_NDR1 => 'Denso NDR1 microprocessor',
|
|
55
|
+
EM_STARCORE => 'Motorola Star*Core processor',
|
|
56
|
+
EM_ME16 => 'Toyota ME16 processor',
|
|
57
|
+
EM_ST100 => 'STMicroelectronics ST100 processor',
|
|
58
|
+
EM_TINYJ => 'Advanced Logic Corp. TinyJ embedded processor',
|
|
59
|
+
EM_X86_64 => 'Advanced Micro Devices X86-64 processor',
|
|
60
|
+
EM_PDSP => 'Sony DSP Processor',
|
|
61
|
+
EM_PDP10 => 'Digital Equipment Corp. PDP-10',
|
|
62
|
+
EM_PDP11 => 'Digital Equipment Corp. PDP-11',
|
|
63
|
+
EM_FX66 => 'Siemens FX66 microcontroller',
|
|
64
|
+
EM_ST9PLUS => 'STMicroelectronics ST9+ 8/16 bit microcontroller',
|
|
65
|
+
EM_ST7 => 'STMicroelectronics ST7 8-bit microcontroller',
|
|
66
|
+
EM_68HC16 => 'Motorola MC68HC16 Microcontroller',
|
|
67
|
+
EM_68HC11 => 'Motorola MC68HC11 Microcontroller',
|
|
68
|
+
EM_68HC08 => 'Motorola MC68HC08 Microcontroller',
|
|
69
|
+
EM_68HC05 => 'Motorola MC68HC05 Microcontroller',
|
|
70
|
+
EM_SVX => 'Silicon Graphics SVx',
|
|
71
|
+
EM_ST19 => 'STMicroelectronics ST19 8-bit cpu',
|
|
72
|
+
EM_VAX => 'Digital VAX',
|
|
73
|
+
EM_CRIS => 'Axis Communications 32-bit embedded processor',
|
|
74
|
+
EM_JAVELIN => 'Infineon Technologies 32-bit embedded cpu',
|
|
75
|
+
EM_FIREPATH => 'Element 14 64-bit DSP processor',
|
|
76
|
+
EM_ZSP => "LSI Logic's 16-bit DSP processor",
|
|
77
|
+
EM_MMIX => "Donald Knuth's educational 64-bit processor",
|
|
78
|
+
EM_HUANY => "Harvard's machine-independent format",
|
|
79
|
+
EM_PRISM => 'SiTera Prism',
|
|
80
|
+
EM_AVR => 'Atmel AVR 8-bit microcontroller',
|
|
81
|
+
EM_FR30 => 'Fujitsu FR30',
|
|
82
|
+
EM_D10V => 'Mitsubishi D10V',
|
|
83
|
+
EM_D30V => 'Mitsubishi D30V',
|
|
84
|
+
EM_V850 => 'Renesas V850 (formerly NEC V850)',
|
|
85
|
+
EM_M32R => 'Renesas M32R (formerly Mitsubishi M32R)',
|
|
86
|
+
EM_MN10300 => 'Matsushita MN10300',
|
|
87
|
+
EM_MN10200 => 'Matsushita MN10200',
|
|
88
|
+
EM_PJ => 'picoJava',
|
|
89
|
+
EM_OR1K => 'OpenRISC 1000 32-bit embedded processor',
|
|
90
|
+
EM_ARC_COMPACT => 'ARC International ARCompact processor',
|
|
91
|
+
EM_XTENSA => 'Tensilica Xtensa Architecture',
|
|
92
|
+
EM_VIDEOCORE => 'Alphamosaic VideoCore processor',
|
|
93
|
+
EM_TMM_GPP => 'Thompson Multimedia General Purpose Processor',
|
|
94
|
+
EM_NS32K => 'National Semiconductor 32000 series',
|
|
95
|
+
EM_TPC => 'Tenor Network TPC processor',
|
|
96
|
+
EM_SNP1K => 'Trebia SNP 1000 processor',
|
|
97
|
+
EM_ST200 => 'STMicroelectronics ST200 microcontroller',
|
|
98
|
+
EM_IP2K => 'Ubicom IP2022 micro controller',
|
|
99
|
+
EM_MAX => 'MAX Processor',
|
|
100
|
+
EM_CR => 'National Semiconductor CompactRISC',
|
|
101
|
+
EM_F2MC16 => 'Fujitsu F2MC16',
|
|
102
|
+
EM_MSP430 => 'TI msp430 micro controller',
|
|
103
|
+
EM_BLACKFIN => 'ADI Blackfin',
|
|
104
|
+
EM_SE_C33 => 'S1C33 Family of Seiko Epson processors',
|
|
105
|
+
EM_SEP => 'Sharp embedded microprocessor',
|
|
106
|
+
EM_ARCA => 'Arca RISC Microprocessor',
|
|
107
|
+
EM_UNICORE => 'Microprocessor series from PKU-Unity Ltd. and MPRC of Peking University',
|
|
108
|
+
EM_EXCESS => 'eXcess: 16/32/64-bit configurable embedded CPU',
|
|
109
|
+
EM_DXP => 'Icera Semiconductor Inc. Deep Execution Processor',
|
|
110
|
+
EM_ALTERA_NIOS2 => 'Altera Nios II soft-core processor',
|
|
111
|
+
EM_CRX => 'National Semiconductor CRX',
|
|
112
|
+
EM_XGATE => 'Motorola XGATE embedded processor',
|
|
113
|
+
EM_C166 => 'Infineon C16x/XC16x processor',
|
|
114
|
+
EM_M16C => 'Renesas M16C series microprocessors',
|
|
115
|
+
EM_DSPIC30F => 'Microchip Technology dsPIC30F Digital Signal Controller',
|
|
116
|
+
EM_CE => 'Freescale Communication Engine RISC core',
|
|
117
|
+
EM_M32C => 'Renesas M32C series microprocessors',
|
|
118
|
+
EM_TSK3000 => 'Altium TSK3000 core',
|
|
119
|
+
EM_RS08 => 'Freescale RS08 embedded processor',
|
|
120
|
+
EM_ECOG2 => 'Cyan Technology eCOG2 microprocessor',
|
|
121
|
+
EM_SCORE7 => 'Sunplus S+core7 RISC processor',
|
|
122
|
+
EM_DSP24 => 'New Japan Radio (NJR) 24-bit DSP Processor',
|
|
123
|
+
EM_VIDEOCORE3 => 'Broadcom VideoCore III processor',
|
|
124
|
+
EM_LATTICEMICO32 => 'RISC processor for Lattice FPGA architecture',
|
|
125
|
+
EM_SE_C17 => 'Seiko Epson C17 family',
|
|
126
|
+
EM_TI_C6000 => 'Texas Instruments TMS320C6000 DSP family',
|
|
127
|
+
EM_TI_C2000 => 'Texas Instruments TMS320C2000 DSP family',
|
|
128
|
+
EM_TI_C5500 => 'Texas Instruments TMS320C55x DSP family',
|
|
129
|
+
EM_TI_PRU => 'Texas Instruments Programmable Realtime Unit',
|
|
130
|
+
EM_MMDSP_PLUS => 'STMicroelectronics 64bit VLIW Data Signal Processor',
|
|
131
|
+
EM_CYPRESS_M8C => 'Cypress M8C microprocessor',
|
|
132
|
+
EM_R32C => 'Renesas R32C series microprocessors',
|
|
133
|
+
EM_TRIMEDIA => 'NXP Semiconductors TriMedia architecture family',
|
|
134
|
+
EM_QDSP6 => 'QUALCOMM DSP6 Processor',
|
|
135
|
+
EM_8051 => 'Intel 8051 and variants',
|
|
136
|
+
EM_STXP7X => 'STMicroelectronics STxP7x family',
|
|
137
|
+
EM_NDS32 => 'Andes Technology compact code size embedded RISC processor family',
|
|
138
|
+
EM_ECOG1 => 'Cyan Technology eCOG1X family',
|
|
139
|
+
EM_MAXQ30 => 'Dallas Semiconductor MAXQ30 Core Micro-controllers',
|
|
140
|
+
EM_XIMO16 => 'New Japan Radio (NJR) 16-bit DSP Processor',
|
|
141
|
+
EM_MANIK => 'M2000 Reconfigurable RISC Microprocessor',
|
|
142
|
+
EM_CRAYNV2 => 'Cray Inc. NV2 vector architecture',
|
|
143
|
+
EM_RX => 'Renesas RX family',
|
|
144
|
+
EM_METAG => 'Imagination Technologies Meta processor architecture',
|
|
145
|
+
EM_MCST_ELBRUS => 'MCST Elbrus general purpose hardware architecture',
|
|
146
|
+
EM_ECOG16 => 'Cyan Technology eCOG16 family',
|
|
147
|
+
EM_CR16 => 'National Semiconductor CompactRISC 16-bit processor',
|
|
148
|
+
EM_ETPU => 'Freescale Extended Time Processing Unit',
|
|
149
|
+
EM_SLE9X => 'Infineon Technologies SLE9X core',
|
|
150
|
+
EM_L1OM => 'Intel L1OM',
|
|
151
|
+
EM_K1OM => 'Intel K1OM',
|
|
152
|
+
EM_INTEL182 => 'Reserved by Intel',
|
|
153
|
+
EM_AARCH64 => 'ARM 64-bit architecture',
|
|
154
|
+
EM_ARM184 => 'Reserved by ARM',
|
|
155
|
+
EM_AVR32 => 'Atmel Corporation 32-bit microprocessor family',
|
|
156
|
+
EM_STM8 => 'STMicroeletronics STM8 8-bit microcontroller',
|
|
157
|
+
EM_TILE64 => 'Tilera TILE64 multicore architecture family',
|
|
158
|
+
EM_TILEPRO => 'Tilera TILEPro multicore architecture family',
|
|
159
|
+
EM_MICROBLAZE => 'Xilinx MicroBlaze 32-bit RISC soft processor core',
|
|
160
|
+
EM_CUDA => 'NVIDIA CUDA architecture',
|
|
161
|
+
EM_TILEGX => 'Tilera TILE-Gx multicore architecture family',
|
|
162
|
+
EM_CLOUDSHIELD => 'CloudShield architecture family',
|
|
163
|
+
EM_COREA_1ST => 'KIPO-KAIST Core-A 1st generation processor family',
|
|
164
|
+
EM_COREA_2ND => 'KIPO-KAIST Core-A 2nd generation processor family',
|
|
165
|
+
EM_ARC_COMPACT2 => 'Synopsys ARCompact V2',
|
|
166
|
+
EM_OPEN8 => 'Open8 8-bit RISC soft processor core',
|
|
167
|
+
EM_RL78 => 'Renesas RL78 family',
|
|
168
|
+
EM_VIDEOCORE5 => 'Broadcom VideoCore V processor',
|
|
169
|
+
EM_78K0R => 'Renesas 78K0R',
|
|
170
|
+
EM_56800EX => 'Freescale 56800EX Digital Signal Controller (DSC)',
|
|
171
|
+
EM_BA1 => 'Beyond BA1 CPU architecture',
|
|
172
|
+
EM_BA2 => 'Beyond BA2 CPU architecture',
|
|
173
|
+
EM_XCORE => 'XMOS xCORE processor family',
|
|
174
|
+
EM_MCHP_PIC => 'Microchip 8-bit PIC(r) family',
|
|
175
|
+
EM_INTELGT => 'Intel Graphics Technology',
|
|
176
|
+
EM_INTEL206 => 'Reserved by Intel',
|
|
177
|
+
EM_INTEL207 => 'Reserved by Intel',
|
|
178
|
+
EM_INTEL208 => 'Reserved by Intel',
|
|
179
|
+
EM_INTEL209 => 'Reserved by Intel',
|
|
180
|
+
EM_KM32 => 'KM211 KM32 32-bit processor',
|
|
181
|
+
EM_KMX32 => 'KM211 KMX32 32-bit processor',
|
|
182
|
+
EM_KMX16 => 'KM211 KMX16 16-bit processor',
|
|
183
|
+
EM_KMX8 => 'KM211 KMX8 8-bit processor',
|
|
184
|
+
EM_KVARC => 'KM211 KVARC processor',
|
|
185
|
+
EM_CDP => 'Paneve CDP architecture family',
|
|
186
|
+
EM_COGE => 'Cognitive Smart Memory Processor',
|
|
187
|
+
EM_COOL => 'Bluechip Systems CoolEngine',
|
|
188
|
+
EM_NORC => 'Nanoradio Optimized RISC',
|
|
189
|
+
EM_CSR_KALIMBA => 'CSR Kalimba architecture family',
|
|
190
|
+
EM_Z80 => 'Zilog Z80',
|
|
191
|
+
EM_VISIUM => 'Controls and Data Services VISIUMcore processor',
|
|
192
|
+
EM_FT32 => 'FTDI Chip FT32 high performance 32-bit RISC architecture',
|
|
193
|
+
EM_MOXIE => 'Moxie processor family',
|
|
194
|
+
EM_AMDGPU => 'AMD GPU architecture',
|
|
195
|
+
EM_RISCV => 'RISC-V',
|
|
196
|
+
EM_LANAI => 'Lanai 32-bit processor',
|
|
197
|
+
EM_CEVA => 'CEVA Processor Architecture Family',
|
|
198
|
+
EM_CEVA_X2 => 'CEVA X2 Processor Family',
|
|
199
|
+
EM_BPF => 'Linux BPF - in-kernel virtual machine',
|
|
200
|
+
EM_GRAPHCORE_IPU => 'Graphcore Intelligent Processing Unit',
|
|
201
|
+
EM_IMG1 => 'Imagination Technologies',
|
|
202
|
+
EM_NFP => 'Netronome Flow Processor',
|
|
203
|
+
EM_VE => 'NEC Vector Engine',
|
|
204
|
+
EM_CSKY => 'C-SKY processor family',
|
|
205
|
+
EM_ARC_COMPACT3_64 => 'Synopsys ARCv2.3 64-bit',
|
|
206
|
+
EM_MCS6502 => 'MOS Technology MCS 6502 processor',
|
|
207
|
+
EM_ARC_COMPACT3 => 'Synopsys ARCv2.3 32-bit',
|
|
208
|
+
EM_KVX => 'Kalray VLIW core of the MPPA processor family',
|
|
209
|
+
EM_65816 => 'WDC 65816/65C816',
|
|
210
|
+
EM_LOONGARCH => 'LoongArch',
|
|
211
|
+
EM_KF32 => 'ChipON KungFu32',
|
|
212
|
+
EM_U16_U8CORE => 'LAPIS nX-U16/U8',
|
|
213
|
+
EM_TACHYUM => 'Tachyum',
|
|
214
|
+
EM_56800EF => 'NXP 56800EF Digital Signal Controller (DSC)',
|
|
215
|
+
EM_AVR_OLD => 'AVR magic number. Written in the absense of an ABI',
|
|
216
|
+
EM_MSP430_OLD => 'MSP430 magic number. Written in the absense of everything',
|
|
217
|
+
EM_ADAPTEVA_EPIPHANY => "Adapteva's Epiphany architecture",
|
|
218
|
+
EM_MT => 'Morpho MT. Written in the absense of an ABI',
|
|
219
|
+
EM_CYGNUS_FR30 => 'FR30 magic number - no EABI available',
|
|
220
|
+
EM_WEBASSEMBLY => 'Unofficial value for Web Assembly binaries, as used by LLVM',
|
|
221
|
+
EM_XC16X => 'Infineon Technologies 16-bit microcontroller with C166-V2 core',
|
|
222
|
+
EM_S12Z => 'Freescale S12Z. The Freescale toolchain generates elf files with this value',
|
|
223
|
+
EM_CYGNUS_FRV => 'FRV magic number - no EABI available??',
|
|
224
|
+
EM_DLX => 'DLX magic number. Written in the absense of an ABI',
|
|
225
|
+
EM_CYGNUS_D10V => 'D10V backend magic number. Written in the absence of an ABI',
|
|
226
|
+
EM_CYGNUS_D30V => 'D30V backend magic number. Written in the absence of an ABI',
|
|
227
|
+
EM_IP2K_OLD => 'Ubicom IP2xxx; Written in the absense of an ABI',
|
|
228
|
+
EM_CYGNUS_POWERPC => 'Cygnus PowerPC ELF backend. Written in the absence of an ABI',
|
|
229
|
+
EM_ALPHA => 'Alpha backend magic number. Written in the absence of an ABI',
|
|
230
|
+
EM_CYGNUS_M32R => 'Cygnus M32R ELF backend. Written in the absence of an ABI',
|
|
231
|
+
EM_CYGNUS_V850 => 'V850 backend magic number. Written in the absense of an ABI',
|
|
232
|
+
EM_S390_OLD => 'old S/390 backend magic number. Written in the absence of an ABI',
|
|
233
|
+
EM_XTENSA_OLD => 'Old, unofficial value for Xtensa',
|
|
234
|
+
EM_XSTORMY16 => 'Sanyo XStormy16 CPU core',
|
|
235
|
+
EM_MICROBLAZE_OLD => 'Old MicroBlaze',
|
|
236
|
+
EM_CYGNUS_MN10300 => 'mn10200 and mn10300 backend magic numbers. Written in the absense of an ABI',
|
|
237
|
+
EM_CYGNUS_MN10200 => 'mn10200 and mn10300 backend magic numbers. Written in the absense of an ABI',
|
|
238
|
+
EM_CYGNUS_MEP => 'Toshiba MeP',
|
|
239
|
+
EM_M32C_OLD => 'Renesas M32C and M16C',
|
|
240
|
+
EM_IQ2000 => 'Vitesse IQ2000',
|
|
241
|
+
EM_NIOS32 => 'NIOS magic number - no EABI available',
|
|
242
|
+
EM_MOXIE_OLD => 'Old, unofficial value for Moxie'
|
|
243
|
+
}.freeze
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated by `bundle exec rake gen:constants`, do not edit it.
|
|
4
|
+
# Source: https://sourceware.org/cgit/binutils-gdb/tree/include/elf
|
|
5
|
+
|
|
6
|
+
module ELFTools
|
|
7
|
+
module Constants
|
|
8
|
+
module R
|
|
9
|
+
# Relocation types of AARCH64.
|
|
10
|
+
module AARCH64
|
|
11
|
+
R_AARCH64_NONE = 0 # No reloc
|
|
12
|
+
R_AARCH64_P32_ABS32 = 1 # :nodoc:
|
|
13
|
+
R_AARCH64_P32_ABS16 = 2 # :nodoc:
|
|
14
|
+
R_AARCH64_P32_PREL32 = 3 # :nodoc:
|
|
15
|
+
R_AARCH64_P32_PREL16 = 4 # :nodoc:
|
|
16
|
+
R_AARCH64_P32_MOVW_UABS_G0 = 5 # :nodoc:
|
|
17
|
+
R_AARCH64_P32_MOVW_UABS_G0_NC = 6 # :nodoc:
|
|
18
|
+
R_AARCH64_P32_MOVW_UABS_G1 = 7 # :nodoc:
|
|
19
|
+
R_AARCH64_P32_MOVW_SABS_G0 = 8 # :nodoc:
|
|
20
|
+
R_AARCH64_P32_LD_PREL_LO19 = 9 # :nodoc:
|
|
21
|
+
R_AARCH64_P32_ADR_PREL_LO21 = 10 # :nodoc:
|
|
22
|
+
R_AARCH64_P32_ADR_PREL_PG_HI21 = 11 # :nodoc:
|
|
23
|
+
R_AARCH64_P32_ADD_ABS_LO12_NC = 12 # :nodoc:
|
|
24
|
+
R_AARCH64_P32_LDST8_ABS_LO12_NC = 13 # :nodoc:
|
|
25
|
+
R_AARCH64_P32_LDST16_ABS_LO12_NC = 14 # :nodoc:
|
|
26
|
+
R_AARCH64_P32_LDST32_ABS_LO12_NC = 15 # :nodoc:
|
|
27
|
+
R_AARCH64_P32_LDST64_ABS_LO12_NC = 16 # :nodoc:
|
|
28
|
+
R_AARCH64_P32_LDST128_ABS_LO12_NC = 17 # :nodoc:
|
|
29
|
+
R_AARCH64_P32_TSTBR14 = 18 # :nodoc:
|
|
30
|
+
R_AARCH64_P32_CONDBR19 = 19 # :nodoc:
|
|
31
|
+
R_AARCH64_P32_JUMP26 = 20 # :nodoc:
|
|
32
|
+
R_AARCH64_P32_CALL26 = 21 # :nodoc:
|
|
33
|
+
R_AARCH64_P32_MOVW_PREL_G0 = 22 # :nodoc:
|
|
34
|
+
R_AARCH64_P32_MOVW_PREL_G0_NC = 23 # :nodoc:
|
|
35
|
+
R_AARCH64_P32_MOVW_PREL_G1 = 24 # :nodoc:
|
|
36
|
+
R_AARCH64_P32_GOT_LD_PREL19 = 25 # :nodoc:
|
|
37
|
+
R_AARCH64_P32_ADR_GOT_PAGE = 26 # :nodoc:
|
|
38
|
+
R_AARCH64_P32_LD32_GOT_LO12_NC = 27 # :nodoc:
|
|
39
|
+
R_AARCH64_P32_LD32_GOTPAGE_LO14 = 28 # :nodoc:
|
|
40
|
+
R_AARCH64_P32_TLSGD_ADR_PREL21 = 80 # :nodoc:
|
|
41
|
+
R_AARCH64_P32_TLSGD_ADR_PAGE21 = 81 # :nodoc:
|
|
42
|
+
R_AARCH64_P32_TLSGD_ADD_LO12_NC = 82 # :nodoc:
|
|
43
|
+
R_AARCH64_P32_TLSLD_ADR_PREL21 = 83 # :nodoc:
|
|
44
|
+
R_AARCH64_P32_TLSLD_ADR_PAGE21 = 84 # :nodoc:
|
|
45
|
+
R_AARCH64_P32_TLSLD_ADD_LO12_NC = 85 # :nodoc:
|
|
46
|
+
R_AARCH64_P32_TLSLD_MOVW_DTPREL_G1 = 87 # :nodoc:
|
|
47
|
+
R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0 = 88 # :nodoc:
|
|
48
|
+
R_AARCH64_P32_TLSLD_MOVW_DTPREL_G0_NC = 89 # :nodoc:
|
|
49
|
+
R_AARCH64_P32_TLSLD_ADD_DTPREL_HI12 = 90 # :nodoc:
|
|
50
|
+
R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12 = 91 # :nodoc:
|
|
51
|
+
R_AARCH64_P32_TLSLD_ADD_DTPREL_LO12_NC = 92 # :nodoc:
|
|
52
|
+
R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21 = 103 # :nodoc:
|
|
53
|
+
R_AARCH64_P32_TLSIE_LD32_GOTTPREL_LO12_NC = 104 # :nodoc:
|
|
54
|
+
R_AARCH64_P32_TLSIE_LD_GOTTPREL_PREL19 = 105 # :nodoc:
|
|
55
|
+
R_AARCH64_P32_TLSLE_MOVW_TPREL_G1 = 106 # :nodoc:
|
|
56
|
+
R_AARCH64_P32_TLSLE_MOVW_TPREL_G0 = 107 # :nodoc:
|
|
57
|
+
R_AARCH64_P32_TLSLE_MOVW_TPREL_G0_NC = 108 # :nodoc:
|
|
58
|
+
R_AARCH64_P32_TLSLE_ADD_TPREL_HI12 = 109 # :nodoc:
|
|
59
|
+
R_AARCH64_P32_TLSLE_ADD_TPREL_LO12 = 110 # :nodoc:
|
|
60
|
+
R_AARCH64_P32_TLSLE_ADD_TPREL_LO12_NC = 111 # :nodoc:
|
|
61
|
+
R_AARCH64_P32_TLSLE_LDST8_TPREL_LO12 = 112 # :nodoc:
|
|
62
|
+
R_AARCH64_P32_TLSLE_LDST8_TPREL_LO12_NC = 113 # :nodoc:
|
|
63
|
+
R_AARCH64_P32_TLSLE_LDST16_TPREL_LO12 = 114 # :nodoc:
|
|
64
|
+
R_AARCH64_P32_TLSLE_LDST16_TPREL_LO12_NC = 115 # :nodoc:
|
|
65
|
+
R_AARCH64_P32_TLSLE_LDST32_TPREL_LO12 = 116 # :nodoc:
|
|
66
|
+
R_AARCH64_P32_TLSLE_LDST32_TPREL_LO12_NC = 117 # :nodoc:
|
|
67
|
+
R_AARCH64_P32_TLSLE_LDST64_TPREL_LO12 = 118 # :nodoc:
|
|
68
|
+
R_AARCH64_P32_TLSLE_LDST64_TPREL_LO12_NC = 119 # :nodoc:
|
|
69
|
+
R_AARCH64_P32_TLSDESC_LD_PREL19 = 122 # :nodoc:
|
|
70
|
+
R_AARCH64_P32_TLSDESC_ADR_PREL21 = 123 # :nodoc:
|
|
71
|
+
R_AARCH64_P32_TLSDESC_ADR_PAGE21 = 124 # :nodoc:
|
|
72
|
+
R_AARCH64_P32_TLSDESC_LD32_LO12_NC = 125 # :nodoc:
|
|
73
|
+
R_AARCH64_P32_TLSDESC_ADD_LO12_NC = 126 # :nodoc:
|
|
74
|
+
R_AARCH64_P32_TLSDESC_CALL = 127 # :nodoc:
|
|
75
|
+
R_AARCH64_P32_COPY = 180 # :nodoc:
|
|
76
|
+
R_AARCH64_P32_GLOB_DAT = 181 # :nodoc:
|
|
77
|
+
R_AARCH64_P32_JUMP_SLOT = 182 # :nodoc:
|
|
78
|
+
R_AARCH64_P32_RELATIVE = 183 # :nodoc:
|
|
79
|
+
R_AARCH64_P32_TLS_DTPMOD = 184 # :nodoc:
|
|
80
|
+
R_AARCH64_P32_TLS_DTPREL = 185 # :nodoc:
|
|
81
|
+
R_AARCH64_P32_TLS_TPREL = 186 # :nodoc:
|
|
82
|
+
R_AARCH64_P32_TLSDESC = 187 # :nodoc:
|
|
83
|
+
R_AARCH64_P32_IRELATIVE = 188 # :nodoc:
|
|
84
|
+
R_AARCH64_NULL = 256 # No reloc
|
|
85
|
+
R_AARCH64_ABS64 = 257 # :nodoc:
|
|
86
|
+
R_AARCH64_ABS32 = 258 # :nodoc:
|
|
87
|
+
R_AARCH64_ABS16 = 259 # :nodoc:
|
|
88
|
+
R_AARCH64_PREL64 = 260 # :nodoc:
|
|
89
|
+
R_AARCH64_PREL32 = 261 # :nodoc:
|
|
90
|
+
R_AARCH64_PREL16 = 262 # :nodoc:
|
|
91
|
+
R_AARCH64_MOVW_UABS_G0 = 263 # :nodoc:
|
|
92
|
+
R_AARCH64_MOVW_UABS_G0_NC = 264 # :nodoc:
|
|
93
|
+
R_AARCH64_MOVW_UABS_G1 = 265 # :nodoc:
|
|
94
|
+
R_AARCH64_MOVW_UABS_G1_NC = 266 # :nodoc:
|
|
95
|
+
R_AARCH64_MOVW_UABS_G2 = 267 # :nodoc:
|
|
96
|
+
R_AARCH64_MOVW_UABS_G2_NC = 268 # :nodoc:
|
|
97
|
+
R_AARCH64_MOVW_UABS_G3 = 269 # :nodoc:
|
|
98
|
+
R_AARCH64_MOVW_SABS_G0 = 270 # :nodoc:
|
|
99
|
+
R_AARCH64_MOVW_SABS_G1 = 271 # :nodoc:
|
|
100
|
+
R_AARCH64_MOVW_SABS_G2 = 272 # :nodoc:
|
|
101
|
+
R_AARCH64_LD_PREL_LO19 = 273 # :nodoc:
|
|
102
|
+
R_AARCH64_ADR_PREL_LO21 = 274 # :nodoc:
|
|
103
|
+
R_AARCH64_ADR_PREL_PG_HI21 = 275 # :nodoc:
|
|
104
|
+
R_AARCH64_ADR_PREL_PG_HI21_NC = 276 # :nodoc:
|
|
105
|
+
R_AARCH64_ADD_ABS_LO12_NC = 277 # :nodoc:
|
|
106
|
+
R_AARCH64_LDST8_ABS_LO12_NC = 278 # :nodoc:
|
|
107
|
+
R_AARCH64_TSTBR14 = 279 # :nodoc:
|
|
108
|
+
R_AARCH64_CONDBR19 = 280 # :nodoc:
|
|
109
|
+
R_AARCH64_JUMP26 = 282 # :nodoc:
|
|
110
|
+
R_AARCH64_CALL26 = 283 # :nodoc:
|
|
111
|
+
R_AARCH64_LDST16_ABS_LO12_NC = 284 # :nodoc:
|
|
112
|
+
R_AARCH64_LDST32_ABS_LO12_NC = 285 # :nodoc:
|
|
113
|
+
R_AARCH64_LDST64_ABS_LO12_NC = 286 # :nodoc:
|
|
114
|
+
R_AARCH64_MOVW_PREL_G0 = 287 # :nodoc:
|
|
115
|
+
R_AARCH64_MOVW_PREL_G0_NC = 288 # :nodoc:
|
|
116
|
+
R_AARCH64_MOVW_PREL_G1 = 289 # :nodoc:
|
|
117
|
+
R_AARCH64_MOVW_PREL_G1_NC = 290 # :nodoc:
|
|
118
|
+
R_AARCH64_MOVW_PREL_G2 = 291 # :nodoc:
|
|
119
|
+
R_AARCH64_MOVW_PREL_G2_NC = 292 # :nodoc:
|
|
120
|
+
R_AARCH64_MOVW_PREL_G3 = 293 # :nodoc:
|
|
121
|
+
R_AARCH64_LDST128_ABS_LO12_NC = 299 # :nodoc:
|
|
122
|
+
R_AARCH64_MOVW_GOTOFF_G0 = 300 # :nodoc:
|
|
123
|
+
R_AARCH64_MOVW_GOTOFF_G0_NC = 301 # :nodoc:
|
|
124
|
+
R_AARCH64_MOVW_GOTOFF_G1 = 302 # :nodoc:
|
|
125
|
+
R_AARCH64_MOVW_GOTOFF_G1_NC = 303 # :nodoc:
|
|
126
|
+
R_AARCH64_MOVW_GOTOFF_G2 = 304 # :nodoc:
|
|
127
|
+
R_AARCH64_MOVW_GOTOFF_G2_NC = 305 # :nodoc:
|
|
128
|
+
R_AARCH64_MOVW_GOTOFF_G3 = 306 # :nodoc:
|
|
129
|
+
R_AARCH64_GOTREL64 = 307 # :nodoc:
|
|
130
|
+
R_AARCH64_GOTREL32 = 308 # :nodoc:
|
|
131
|
+
R_AARCH64_GOT_LD_PREL19 = 309 # :nodoc:
|
|
132
|
+
R_AARCH64_LD64_GOTOFF_LO15 = 310 # :nodoc:
|
|
133
|
+
R_AARCH64_ADR_GOT_PAGE = 311 # :nodoc:
|
|
134
|
+
R_AARCH64_LD64_GOT_LO12_NC = 312 # :nodoc:
|
|
135
|
+
R_AARCH64_LD64_GOTPAGE_LO15 = 313 # :nodoc:
|
|
136
|
+
R_AARCH64_TLSGD_ADR_PREL21 = 512 # :nodoc:
|
|
137
|
+
R_AARCH64_TLSGD_ADR_PAGE21 = 513 # :nodoc:
|
|
138
|
+
R_AARCH64_TLSGD_ADD_LO12_NC = 514 # :nodoc:
|
|
139
|
+
R_AARCH64_TLSGD_MOVW_G1 = 515 # :nodoc:
|
|
140
|
+
R_AARCH64_TLSGD_MOVW_G0_NC = 516 # :nodoc:
|
|
141
|
+
R_AARCH64_TLSLD_ADR_PREL21 = 517 # :nodoc:
|
|
142
|
+
R_AARCH64_TLSLD_ADR_PAGE21 = 518 # :nodoc:
|
|
143
|
+
R_AARCH64_TLSLD_ADD_LO12_NC = 519 # :nodoc:
|
|
144
|
+
R_AARCH64_TLSLD_MOVW_G1 = 520 # :nodoc:
|
|
145
|
+
R_AARCH64_TLSLD_MOVW_G0_NC = 521 # :nodoc:
|
|
146
|
+
R_AARCH64_TLSLD_LD_PREL19 = 522 # :nodoc:
|
|
147
|
+
R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523 # :nodoc:
|
|
148
|
+
R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524 # :nodoc:
|
|
149
|
+
R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525 # :nodoc:
|
|
150
|
+
R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526 # :nodoc:
|
|
151
|
+
R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527 # :nodoc:
|
|
152
|
+
R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528 # :nodoc:
|
|
153
|
+
R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529 # :nodoc:
|
|
154
|
+
R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530 # :nodoc:
|
|
155
|
+
R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531 # :nodoc:
|
|
156
|
+
R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532 # :nodoc:
|
|
157
|
+
R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533 # :nodoc:
|
|
158
|
+
R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534 # :nodoc:
|
|
159
|
+
R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535 # :nodoc:
|
|
160
|
+
R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536 # :nodoc:
|
|
161
|
+
R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537 # :nodoc:
|
|
162
|
+
R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538 # :nodoc:
|
|
163
|
+
R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539 # :nodoc:
|
|
164
|
+
R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540 # :nodoc:
|
|
165
|
+
R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541 # :nodoc:
|
|
166
|
+
R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542 # :nodoc:
|
|
167
|
+
R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543 # :nodoc:
|
|
168
|
+
R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544 # :nodoc:
|
|
169
|
+
R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545 # :nodoc:
|
|
170
|
+
R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546 # :nodoc:
|
|
171
|
+
R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547 # :nodoc:
|
|
172
|
+
R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548 # :nodoc:
|
|
173
|
+
R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549 # :nodoc:
|
|
174
|
+
R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550 # :nodoc:
|
|
175
|
+
R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551 # :nodoc:
|
|
176
|
+
R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552 # :nodoc:
|
|
177
|
+
R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553 # :nodoc:
|
|
178
|
+
R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554 # :nodoc:
|
|
179
|
+
R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555 # :nodoc:
|
|
180
|
+
R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556 # :nodoc:
|
|
181
|
+
R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557 # :nodoc:
|
|
182
|
+
R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558 # :nodoc:
|
|
183
|
+
R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559 # :nodoc:
|
|
184
|
+
R_AARCH64_TLSDESC_LD_PREL19 = 560 # :nodoc:
|
|
185
|
+
R_AARCH64_TLSDESC_ADR_PREL21 = 561 # :nodoc:
|
|
186
|
+
R_AARCH64_TLSDESC_ADR_PAGE21 = 562 # :nodoc:
|
|
187
|
+
R_AARCH64_TLSDESC_LD64_LO12 = 563 # :nodoc:
|
|
188
|
+
R_AARCH64_TLSDESC_ADD_LO12 = 564 # :nodoc:
|
|
189
|
+
R_AARCH64_TLSDESC_OFF_G1 = 565 # :nodoc:
|
|
190
|
+
R_AARCH64_TLSDESC_OFF_G0_NC = 566 # :nodoc:
|
|
191
|
+
R_AARCH64_TLSDESC_LDR = 567 # :nodoc:
|
|
192
|
+
R_AARCH64_TLSDESC_ADD = 568 # :nodoc:
|
|
193
|
+
R_AARCH64_TLSDESC_CALL = 569 # :nodoc:
|
|
194
|
+
R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570 # :nodoc:
|
|
195
|
+
R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571 # :nodoc:
|
|
196
|
+
R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572 # :nodoc:
|
|
197
|
+
R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573 # :nodoc:
|
|
198
|
+
R_AARCH64_COPY = 1024 # :nodoc:
|
|
199
|
+
R_AARCH64_GLOB_DAT = 1025 # :nodoc:
|
|
200
|
+
R_AARCH64_JUMP_SLOT = 1026 # :nodoc:
|
|
201
|
+
R_AARCH64_RELATIVE = 1027 # :nodoc:
|
|
202
|
+
R_AARCH64_TLS_DTPMOD = 1028 # :nodoc:
|
|
203
|
+
R_AARCH64_TLS_DTPMOD64 = 1028 # :nodoc:
|
|
204
|
+
R_AARCH64_TLS_DTPREL = 1029 # :nodoc:
|
|
205
|
+
R_AARCH64_TLS_DTPREL64 = 1029 # :nodoc:
|
|
206
|
+
R_AARCH64_TLS_TPREL = 1030 # :nodoc:
|
|
207
|
+
R_AARCH64_TLS_TPREL64 = 1030 # :nodoc:
|
|
208
|
+
R_AARCH64_TLSDESC = 1031 # :nodoc:
|
|
209
|
+
R_AARCH64_IRELATIVE = 1032 # :nodoc:
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated by `bundle exec rake gen:constants`, do not edit it.
|
|
4
|
+
# Source: https://sourceware.org/cgit/binutils-gdb/tree/include/elf
|
|
5
|
+
|
|
6
|
+
module ELFTools
|
|
7
|
+
module Constants
|
|
8
|
+
module R
|
|
9
|
+
# Relocation types of ALPHA.
|
|
10
|
+
module ALPHA
|
|
11
|
+
R_ALPHA_NONE = 0 # No reloc
|
|
12
|
+
R_ALPHA_REFLONG = 1 # Direct 32 bit
|
|
13
|
+
R_ALPHA_REFQUAD = 2 # Direct 64 bit
|
|
14
|
+
R_ALPHA_GPREL32 = 3 # GP relative 32 bit
|
|
15
|
+
R_ALPHA_LITERAL = 4 # GP relative 16 bit w/optimization
|
|
16
|
+
R_ALPHA_LITUSE = 5 # Optimization hint for LITERAL
|
|
17
|
+
R_ALPHA_GPDISP = 6 # Add displacement to GP
|
|
18
|
+
R_ALPHA_BRADDR = 7 # PC+4 relative 23 bit shifted
|
|
19
|
+
R_ALPHA_HINT = 8 # PC+4 relative 16 bit shifted
|
|
20
|
+
R_ALPHA_SREL16 = 9 # PC relative 16 bit
|
|
21
|
+
R_ALPHA_SREL32 = 10 # PC relative 32 bit
|
|
22
|
+
R_ALPHA_SREL64 = 11 # PC relative 64 bit
|
|
23
|
+
R_ALPHA_GPRELHIGH = 17 # GP relative 32 bit, high 16 bits
|
|
24
|
+
R_ALPHA_GPRELLOW = 18 # GP relative 32 bit, low 16 bits
|
|
25
|
+
R_ALPHA_GPREL16 = 19 # GP relative 16 bit
|
|
26
|
+
R_ALPHA_COPY = 24 # Copy symbol at runtime
|
|
27
|
+
R_ALPHA_GLOB_DAT = 25 # Create GOT entry
|
|
28
|
+
R_ALPHA_JMP_SLOT = 26 # Create PLT entry
|
|
29
|
+
R_ALPHA_RELATIVE = 27 # Adjust by program base
|
|
30
|
+
R_ALPHA_BRSGP = 28 # :nodoc:
|
|
31
|
+
R_ALPHA_TLSGD = 29 # :nodoc:
|
|
32
|
+
R_ALPHA_TLSLDM = 30 # :nodoc:
|
|
33
|
+
R_ALPHA_DTPMOD64 = 31 # :nodoc:
|
|
34
|
+
R_ALPHA_GOTDTPREL = 32 # :nodoc:
|
|
35
|
+
R_ALPHA_DTPREL64 = 33 # :nodoc:
|
|
36
|
+
R_ALPHA_DTPRELHI = 34 # :nodoc:
|
|
37
|
+
R_ALPHA_DTPRELLO = 35 # :nodoc:
|
|
38
|
+
R_ALPHA_DTPREL16 = 36 # :nodoc:
|
|
39
|
+
R_ALPHA_GOTTPREL = 37 # :nodoc:
|
|
40
|
+
R_ALPHA_TPREL64 = 38 # :nodoc:
|
|
41
|
+
R_ALPHA_TPRELHI = 39 # :nodoc:
|
|
42
|
+
R_ALPHA_TPRELLO = 40 # :nodoc:
|
|
43
|
+
R_ALPHA_TPREL16 = 41 # :nodoc:
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is generated by `bundle exec rake gen:constants`, do not edit it.
|
|
4
|
+
# Source: https://sourceware.org/cgit/binutils-gdb/tree/include/elf
|
|
5
|
+
|
|
6
|
+
module ELFTools
|
|
7
|
+
module Constants
|
|
8
|
+
module R
|
|
9
|
+
# Relocation types of AMDGPU.
|
|
10
|
+
module AMDGPU
|
|
11
|
+
R_AMDGPU_NONE = 0 # :nodoc:
|
|
12
|
+
R_AMDGPU_ABS32_LO = 1 # :nodoc:
|
|
13
|
+
R_AMDGPU_ABS32_HI = 2 # :nodoc:
|
|
14
|
+
R_AMDGPU_ABS64 = 3 # :nodoc:
|
|
15
|
+
R_AMDGPU_REL32 = 4 # :nodoc:
|
|
16
|
+
R_AMDGPU_REL64 = 5 # :nodoc:
|
|
17
|
+
R_AMDGPU_ABS32 = 6 # :nodoc:
|
|
18
|
+
R_AMDGPU_GOTPCREL = 7 # :nodoc:
|
|
19
|
+
R_AMDGPU_GOTPCREL32_LO = 8 # :nodoc:
|
|
20
|
+
R_AMDGPU_GOTPCREL32_HI = 9 # :nodoc:
|
|
21
|
+
R_AMDGPU_REL32_LO = 10 # :nodoc:
|
|
22
|
+
R_AMDGPU_REL32_HI = 11 # :nodoc:
|
|
23
|
+
R_AMDGPU_RELATIVE64 = 13 # :nodoc:
|
|
24
|
+
R_AMDGPU_REL16 = 16 # :nodoc:
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|