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,74 @@
|
|
|
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 NIOS2.
|
|
10
|
+
module NIOS2
|
|
11
|
+
R_NIOS2_NONE = 0 # :nodoc:
|
|
12
|
+
R_NIOS2_S16 = 1 # :nodoc:
|
|
13
|
+
R_NIOS2_U16 = 2 # :nodoc:
|
|
14
|
+
R_NIOS2_PCREL16 = 3 # :nodoc:
|
|
15
|
+
R_NIOS2_CALL26 = 4 # :nodoc:
|
|
16
|
+
R_NIOS2_IMM5 = 5 # :nodoc:
|
|
17
|
+
R_NIOS2_CACHE_OPX = 6 # :nodoc:
|
|
18
|
+
R_NIOS2_IMM6 = 7 # :nodoc:
|
|
19
|
+
R_NIOS2_IMM8 = 8 # :nodoc:
|
|
20
|
+
R_NIOS2_HI16 = 9 # :nodoc:
|
|
21
|
+
R_NIOS2_LO16 = 10 # :nodoc:
|
|
22
|
+
R_NIOS2_HIADJ16 = 11 # :nodoc:
|
|
23
|
+
R_NIOS2_BFD_RELOC_32 = 12 # :nodoc:
|
|
24
|
+
R_NIOS2_BFD_RELOC_16 = 13 # :nodoc:
|
|
25
|
+
R_NIOS2_BFD_RELOC_8 = 14 # :nodoc:
|
|
26
|
+
R_NIOS2_GPREL = 15 # :nodoc:
|
|
27
|
+
R_NIOS2_GNU_VTINHERIT = 16 # :nodoc:
|
|
28
|
+
R_NIOS2_GNU_VTENTRY = 17 # :nodoc:
|
|
29
|
+
R_NIOS2_UJMP = 18 # :nodoc:
|
|
30
|
+
R_NIOS2_CJMP = 19 # :nodoc:
|
|
31
|
+
R_NIOS2_CALLR = 20 # :nodoc:
|
|
32
|
+
R_NIOS2_ALIGN = 21 # :nodoc:
|
|
33
|
+
R_NIOS2_GOT16 = 22 # :nodoc:
|
|
34
|
+
R_NIOS2_CALL16 = 23 # :nodoc:
|
|
35
|
+
R_NIOS2_GOTOFF_LO = 24 # :nodoc:
|
|
36
|
+
R_NIOS2_GOTOFF_HA = 25 # :nodoc:
|
|
37
|
+
R_NIOS2_PCREL_LO = 26 # :nodoc:
|
|
38
|
+
R_NIOS2_PCREL_HA = 27 # :nodoc:
|
|
39
|
+
R_NIOS2_TLS_GD16 = 28 # :nodoc:
|
|
40
|
+
R_NIOS2_TLS_LDM16 = 29 # :nodoc:
|
|
41
|
+
R_NIOS2_TLS_LDO16 = 30 # :nodoc:
|
|
42
|
+
R_NIOS2_TLS_IE16 = 31 # :nodoc:
|
|
43
|
+
R_NIOS2_TLS_LE16 = 32 # :nodoc:
|
|
44
|
+
R_NIOS2_TLS_DTPMOD = 33 # :nodoc:
|
|
45
|
+
R_NIOS2_TLS_DTPREL = 34 # :nodoc:
|
|
46
|
+
R_NIOS2_TLS_TPREL = 35 # :nodoc:
|
|
47
|
+
R_NIOS2_COPY = 36 # :nodoc:
|
|
48
|
+
R_NIOS2_GLOB_DAT = 37 # :nodoc:
|
|
49
|
+
R_NIOS2_JUMP_SLOT = 38 # :nodoc:
|
|
50
|
+
R_NIOS2_RELATIVE = 39 # :nodoc:
|
|
51
|
+
R_NIOS2_GOTOFF = 40 # :nodoc:
|
|
52
|
+
R_NIOS2_CALL26_NOAT = 41 # :nodoc:
|
|
53
|
+
R_NIOS2_GOT_LO = 42 # :nodoc:
|
|
54
|
+
R_NIOS2_GOT_HA = 43 # :nodoc:
|
|
55
|
+
R_NIOS2_CALL_LO = 44 # :nodoc:
|
|
56
|
+
R_NIOS2_CALL_HA = 45 # :nodoc:
|
|
57
|
+
R_NIOS2_R2_S12 = 64 # :nodoc:
|
|
58
|
+
R_NIOS2_R2_I10_1_PCREL = 65 # :nodoc:
|
|
59
|
+
R_NIOS2_R2_T1I7_1_PCREL = 66 # :nodoc:
|
|
60
|
+
R_NIOS2_R2_T1I7_2 = 67 # :nodoc:
|
|
61
|
+
R_NIOS2_R2_T2I4 = 68 # :nodoc:
|
|
62
|
+
R_NIOS2_R2_T2I4_1 = 69 # :nodoc:
|
|
63
|
+
R_NIOS2_R2_T2I4_2 = 70 # :nodoc:
|
|
64
|
+
R_NIOS2_R2_X1I7_2 = 71 # :nodoc:
|
|
65
|
+
R_NIOS2_R2_X2L5 = 72 # :nodoc:
|
|
66
|
+
R_NIOS2_R2_F1I5_2 = 73 # :nodoc:
|
|
67
|
+
R_NIOS2_R2_L5I4X1 = 74 # :nodoc:
|
|
68
|
+
R_NIOS2_R2_T1X1I6 = 75 # :nodoc:
|
|
69
|
+
R_NIOS2_R2_T1X1I6_2 = 76 # :nodoc:
|
|
70
|
+
R_NIOS2_ILLEGAL = 77 # :nodoc:
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
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 OR1K.
|
|
10
|
+
module OR1K
|
|
11
|
+
R_OR1K_NONE = 0 # :nodoc:
|
|
12
|
+
R_OR1K_32 = 1 # :nodoc:
|
|
13
|
+
R_OR1K_16 = 2 # :nodoc:
|
|
14
|
+
R_OR1K_8 = 3 # :nodoc:
|
|
15
|
+
R_OR1K_LO_16_IN_INSN = 4 # :nodoc:
|
|
16
|
+
R_OR1K_HI_16_IN_INSN = 5 # :nodoc:
|
|
17
|
+
R_OR1K_INSN_REL_26 = 6 # :nodoc:
|
|
18
|
+
R_OR1K_GNU_VTENTRY = 7 # :nodoc:
|
|
19
|
+
R_OR1K_GNU_VTINHERIT = 8 # :nodoc:
|
|
20
|
+
R_OR1K_32_PCREL = 9 # :nodoc:
|
|
21
|
+
R_OR1K_16_PCREL = 10 # :nodoc:
|
|
22
|
+
R_OR1K_8_PCREL = 11 # :nodoc:
|
|
23
|
+
R_OR1K_GOTPC_HI16 = 12 # :nodoc:
|
|
24
|
+
R_OR1K_GOTPC_LO16 = 13 # :nodoc:
|
|
25
|
+
R_OR1K_GOT16 = 14 # :nodoc:
|
|
26
|
+
R_OR1K_PLT26 = 15 # :nodoc:
|
|
27
|
+
R_OR1K_GOTOFF_HI16 = 16 # :nodoc:
|
|
28
|
+
R_OR1K_GOTOFF_LO16 = 17 # :nodoc:
|
|
29
|
+
R_OR1K_COPY = 18 # :nodoc:
|
|
30
|
+
R_OR1K_GLOB_DAT = 19 # :nodoc:
|
|
31
|
+
R_OR1K_JMP_SLOT = 20 # :nodoc:
|
|
32
|
+
R_OR1K_RELATIVE = 21 # :nodoc:
|
|
33
|
+
R_OR1K_TLS_GD_HI16 = 22 # :nodoc:
|
|
34
|
+
R_OR1K_TLS_GD_LO16 = 23 # :nodoc:
|
|
35
|
+
R_OR1K_TLS_LDM_HI16 = 24 # :nodoc:
|
|
36
|
+
R_OR1K_TLS_LDM_LO16 = 25 # :nodoc:
|
|
37
|
+
R_OR1K_TLS_LDO_HI16 = 26 # :nodoc:
|
|
38
|
+
R_OR1K_TLS_LDO_LO16 = 27 # :nodoc:
|
|
39
|
+
R_OR1K_TLS_IE_HI16 = 28 # :nodoc:
|
|
40
|
+
R_OR1K_TLS_IE_LO16 = 29 # :nodoc:
|
|
41
|
+
R_OR1K_TLS_LE_HI16 = 30 # :nodoc:
|
|
42
|
+
R_OR1K_TLS_LE_LO16 = 31 # :nodoc:
|
|
43
|
+
R_OR1K_TLS_TPOFF = 32 # :nodoc:
|
|
44
|
+
R_OR1K_TLS_DTPOFF = 33 # :nodoc:
|
|
45
|
+
R_OR1K_TLS_DTPMOD = 34 # :nodoc:
|
|
46
|
+
R_OR1K_AHI16 = 35 # :nodoc:
|
|
47
|
+
R_OR1K_GOTOFF_AHI16 = 36 # :nodoc:
|
|
48
|
+
R_OR1K_TLS_IE_AHI16 = 37 # :nodoc:
|
|
49
|
+
R_OR1K_TLS_LE_AHI16 = 38 # :nodoc:
|
|
50
|
+
R_OR1K_SLO16 = 39 # :nodoc:
|
|
51
|
+
R_OR1K_GOTOFF_SLO16 = 40 # :nodoc:
|
|
52
|
+
R_OR1K_TLS_LE_SLO16 = 41 # :nodoc:
|
|
53
|
+
R_OR1K_PCREL_PG21 = 42 # :nodoc:
|
|
54
|
+
R_OR1K_GOT_PG21 = 43 # :nodoc:
|
|
55
|
+
R_OR1K_TLS_GD_PG21 = 44 # :nodoc:
|
|
56
|
+
R_OR1K_TLS_LDM_PG21 = 45 # :nodoc:
|
|
57
|
+
R_OR1K_TLS_IE_PG21 = 46 # :nodoc:
|
|
58
|
+
R_OR1K_LO13 = 47 # :nodoc:
|
|
59
|
+
R_OR1K_GOT_LO13 = 48 # :nodoc:
|
|
60
|
+
R_OR1K_TLS_GD_LO13 = 49 # :nodoc:
|
|
61
|
+
R_OR1K_TLS_LDM_LO13 = 50 # :nodoc:
|
|
62
|
+
R_OR1K_TLS_IE_LO13 = 51 # :nodoc:
|
|
63
|
+
R_OR1K_SLO13 = 52 # :nodoc:
|
|
64
|
+
R_OR1K_PLTA26 = 53 # :nodoc:
|
|
65
|
+
R_OR1K_GOT_AHI16 = 54 # :nodoc:
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
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 PJ.
|
|
10
|
+
module PJ
|
|
11
|
+
R_PJ_NONE = 0 # :nodoc:
|
|
12
|
+
R_PJ_DATA_DIR32 = 1 # :nodoc:
|
|
13
|
+
R_PJ_CODE_REL32 = 2 # :nodoc:
|
|
14
|
+
R_PJ_CODE_REL16 = 3 # :nodoc:
|
|
15
|
+
R_PJ_CODE_DIR32 = 6 # :nodoc:
|
|
16
|
+
R_PJ_CODE_DIR16 = 7 # :nodoc:
|
|
17
|
+
R_PJ_CODE_LO16 = 13 # :nodoc:
|
|
18
|
+
R_PJ_CODE_HI16 = 14 # :nodoc:
|
|
19
|
+
R_PJ_GNU_VTINHERIT = 15 # :nodoc:
|
|
20
|
+
R_PJ_GNU_VTENTRY = 16 # :nodoc:
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
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 PPC.
|
|
10
|
+
module PPC
|
|
11
|
+
R_PPC_NONE = 0 # :nodoc:
|
|
12
|
+
R_PPC_ADDR32 = 1 # :nodoc:
|
|
13
|
+
R_PPC_ADDR24 = 2 # :nodoc:
|
|
14
|
+
R_PPC_ADDR16 = 3 # :nodoc:
|
|
15
|
+
R_PPC_ADDR16_LO = 4 # :nodoc:
|
|
16
|
+
R_PPC_ADDR16_HI = 5 # :nodoc:
|
|
17
|
+
R_PPC_ADDR16_HA = 6 # :nodoc:
|
|
18
|
+
R_PPC_ADDR14 = 7 # :nodoc:
|
|
19
|
+
R_PPC_ADDR14_BRTAKEN = 8 # :nodoc:
|
|
20
|
+
R_PPC_ADDR14_BRNTAKEN = 9 # :nodoc:
|
|
21
|
+
R_PPC_REL24 = 10 # :nodoc:
|
|
22
|
+
R_PPC_REL14 = 11 # :nodoc:
|
|
23
|
+
R_PPC_REL14_BRTAKEN = 12 # :nodoc:
|
|
24
|
+
R_PPC_REL14_BRNTAKEN = 13 # :nodoc:
|
|
25
|
+
R_PPC_GOT16 = 14 # :nodoc:
|
|
26
|
+
R_PPC_GOT16_LO = 15 # :nodoc:
|
|
27
|
+
R_PPC_GOT16_HI = 16 # :nodoc:
|
|
28
|
+
R_PPC_GOT16_HA = 17 # :nodoc:
|
|
29
|
+
R_PPC_PLTREL24 = 18 # :nodoc:
|
|
30
|
+
R_PPC_COPY = 19 # :nodoc:
|
|
31
|
+
R_PPC_GLOB_DAT = 20 # :nodoc:
|
|
32
|
+
R_PPC_JMP_SLOT = 21 # :nodoc:
|
|
33
|
+
R_PPC_RELATIVE = 22 # :nodoc:
|
|
34
|
+
R_PPC_LOCAL24PC = 23 # :nodoc:
|
|
35
|
+
R_PPC_UADDR32 = 24 # :nodoc:
|
|
36
|
+
R_PPC_UADDR16 = 25 # :nodoc:
|
|
37
|
+
R_PPC_REL32 = 26 # :nodoc:
|
|
38
|
+
R_PPC_PLT32 = 27 # :nodoc:
|
|
39
|
+
R_PPC_PLTREL32 = 28 # :nodoc:
|
|
40
|
+
R_PPC_PLT16_LO = 29 # :nodoc:
|
|
41
|
+
R_PPC_PLT16_HI = 30 # :nodoc:
|
|
42
|
+
R_PPC_PLT16_HA = 31 # :nodoc:
|
|
43
|
+
R_PPC_SDAREL16 = 32 # :nodoc:
|
|
44
|
+
R_PPC_SECTOFF = 33 # :nodoc:
|
|
45
|
+
R_PPC_SECTOFF_LO = 34 # :nodoc:
|
|
46
|
+
R_PPC_SECTOFF_HI = 35 # :nodoc:
|
|
47
|
+
R_PPC_SECTOFF_HA = 36 # :nodoc:
|
|
48
|
+
R_PPC_ADDR30 = 37 # :nodoc:
|
|
49
|
+
R_PPC_RELAX = 48 # :nodoc:
|
|
50
|
+
R_PPC_RELAX_PLT = 49 # :nodoc:
|
|
51
|
+
R_PPC_RELAX_PLTREL24 = 50 # :nodoc:
|
|
52
|
+
R_PPC_16DX_HA = 51 # :nodoc:
|
|
53
|
+
R_PPC_TLS = 67 # :nodoc:
|
|
54
|
+
R_PPC_DTPMOD32 = 68 # :nodoc:
|
|
55
|
+
R_PPC_TPREL16 = 69 # :nodoc:
|
|
56
|
+
R_PPC_TPREL16_LO = 70 # :nodoc:
|
|
57
|
+
R_PPC_TPREL16_HI = 71 # :nodoc:
|
|
58
|
+
R_PPC_TPREL16_HA = 72 # :nodoc:
|
|
59
|
+
R_PPC_TPREL32 = 73 # :nodoc:
|
|
60
|
+
R_PPC_DTPREL16 = 74 # :nodoc:
|
|
61
|
+
R_PPC_DTPREL16_LO = 75 # :nodoc:
|
|
62
|
+
R_PPC_DTPREL16_HI = 76 # :nodoc:
|
|
63
|
+
R_PPC_DTPREL16_HA = 77 # :nodoc:
|
|
64
|
+
R_PPC_DTPREL32 = 78 # :nodoc:
|
|
65
|
+
R_PPC_GOT_TLSGD16 = 79 # :nodoc:
|
|
66
|
+
R_PPC_GOT_TLSGD16_LO = 80 # :nodoc:
|
|
67
|
+
R_PPC_GOT_TLSGD16_HI = 81 # :nodoc:
|
|
68
|
+
R_PPC_GOT_TLSGD16_HA = 82 # :nodoc:
|
|
69
|
+
R_PPC_GOT_TLSLD16 = 83 # :nodoc:
|
|
70
|
+
R_PPC_GOT_TLSLD16_LO = 84 # :nodoc:
|
|
71
|
+
R_PPC_GOT_TLSLD16_HI = 85 # :nodoc:
|
|
72
|
+
R_PPC_GOT_TLSLD16_HA = 86 # :nodoc:
|
|
73
|
+
R_PPC_GOT_TPREL16 = 87 # :nodoc:
|
|
74
|
+
R_PPC_GOT_TPREL16_LO = 88 # :nodoc:
|
|
75
|
+
R_PPC_GOT_TPREL16_HI = 89 # :nodoc:
|
|
76
|
+
R_PPC_GOT_TPREL16_HA = 90 # :nodoc:
|
|
77
|
+
R_PPC_GOT_DTPREL16 = 91 # :nodoc:
|
|
78
|
+
R_PPC_GOT_DTPREL16_LO = 92 # :nodoc:
|
|
79
|
+
R_PPC_GOT_DTPREL16_HI = 93 # :nodoc:
|
|
80
|
+
R_PPC_GOT_DTPREL16_HA = 94 # :nodoc:
|
|
81
|
+
R_PPC_TLSGD = 95 # :nodoc:
|
|
82
|
+
R_PPC_TLSLD = 96 # :nodoc:
|
|
83
|
+
R_PPC_EMB_NADDR32 = 101 # :nodoc:
|
|
84
|
+
R_PPC_EMB_NADDR16 = 102 # :nodoc:
|
|
85
|
+
R_PPC_EMB_NADDR16_LO = 103 # :nodoc:
|
|
86
|
+
R_PPC_EMB_NADDR16_HI = 104 # :nodoc:
|
|
87
|
+
R_PPC_EMB_NADDR16_HA = 105 # :nodoc:
|
|
88
|
+
R_PPC_EMB_SDAI16 = 106 # :nodoc:
|
|
89
|
+
R_PPC_EMB_SDA2I16 = 107 # :nodoc:
|
|
90
|
+
R_PPC_EMB_SDA2REL = 108 # :nodoc:
|
|
91
|
+
R_PPC_EMB_SDA21 = 109 # :nodoc:
|
|
92
|
+
R_PPC_EMB_MRKREF = 110 # :nodoc:
|
|
93
|
+
R_PPC_EMB_RELSEC16 = 111 # :nodoc:
|
|
94
|
+
R_PPC_EMB_RELST_LO = 112 # :nodoc:
|
|
95
|
+
R_PPC_EMB_RELST_HI = 113 # :nodoc:
|
|
96
|
+
R_PPC_EMB_RELST_HA = 114 # :nodoc:
|
|
97
|
+
R_PPC_EMB_BIT_FLD = 115 # :nodoc:
|
|
98
|
+
R_PPC_EMB_RELSDA = 116 # :nodoc:
|
|
99
|
+
R_PPC_PLTSEQ = 119 # :nodoc:
|
|
100
|
+
R_PPC_PLTCALL = 120 # :nodoc:
|
|
101
|
+
R_PPC_VLE_REL8 = 216 # :nodoc:
|
|
102
|
+
R_PPC_VLE_REL15 = 217 # :nodoc:
|
|
103
|
+
R_PPC_VLE_REL24 = 218 # :nodoc:
|
|
104
|
+
R_PPC_VLE_LO16A = 219 # :nodoc:
|
|
105
|
+
R_PPC_VLE_LO16D = 220 # :nodoc:
|
|
106
|
+
R_PPC_VLE_HI16A = 221 # :nodoc:
|
|
107
|
+
R_PPC_VLE_HI16D = 222 # :nodoc:
|
|
108
|
+
R_PPC_VLE_HA16A = 223 # :nodoc:
|
|
109
|
+
R_PPC_VLE_HA16D = 224 # :nodoc:
|
|
110
|
+
R_PPC_VLE_SDA21 = 225 # :nodoc:
|
|
111
|
+
R_PPC_VLE_SDA21_LO = 226 # :nodoc:
|
|
112
|
+
R_PPC_VLE_SDAREL_LO16A = 227 # :nodoc:
|
|
113
|
+
R_PPC_VLE_SDAREL_LO16D = 228 # :nodoc:
|
|
114
|
+
R_PPC_VLE_SDAREL_HI16A = 229 # :nodoc:
|
|
115
|
+
R_PPC_VLE_SDAREL_HI16D = 230 # :nodoc:
|
|
116
|
+
R_PPC_VLE_SDAREL_HA16A = 231 # :nodoc:
|
|
117
|
+
R_PPC_VLE_SDAREL_HA16D = 232 # :nodoc:
|
|
118
|
+
R_PPC_VLE_ADDR20 = 233 # :nodoc:
|
|
119
|
+
R_PPC_REL16DX_HA = 246 # :nodoc:
|
|
120
|
+
R_PPC_IRELATIVE = 248 # :nodoc:
|
|
121
|
+
R_PPC_REL16 = 249 # :nodoc:
|
|
122
|
+
R_PPC_REL16_LO = 250 # :nodoc:
|
|
123
|
+
R_PPC_REL16_HI = 251 # :nodoc:
|
|
124
|
+
R_PPC_REL16_HA = 252 # :nodoc:
|
|
125
|
+
R_PPC_GNU_VTINHERIT = 253 # :nodoc:
|
|
126
|
+
R_PPC_GNU_VTENTRY = 254 # :nodoc:
|
|
127
|
+
R_PPC_TOC16 = 255 # :nodoc:
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -0,0 +1,177 @@
|
|
|
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 PPC64.
|
|
10
|
+
module PPC64
|
|
11
|
+
R_PPC64_NONE = 0 # :nodoc:
|
|
12
|
+
R_PPC64_ADDR32 = 1 # :nodoc:
|
|
13
|
+
R_PPC64_ADDR24 = 2 # :nodoc:
|
|
14
|
+
R_PPC64_ADDR16 = 3 # :nodoc:
|
|
15
|
+
R_PPC64_ADDR16_LO = 4 # :nodoc:
|
|
16
|
+
R_PPC64_ADDR16_HI = 5 # :nodoc:
|
|
17
|
+
R_PPC64_ADDR16_HA = 6 # :nodoc:
|
|
18
|
+
R_PPC64_ADDR14 = 7 # :nodoc:
|
|
19
|
+
R_PPC64_ADDR14_BRTAKEN = 8 # :nodoc:
|
|
20
|
+
R_PPC64_ADDR14_BRNTAKEN = 9 # :nodoc:
|
|
21
|
+
R_PPC64_REL24 = 10 # :nodoc:
|
|
22
|
+
R_PPC64_REL14 = 11 # :nodoc:
|
|
23
|
+
R_PPC64_REL14_BRTAKEN = 12 # :nodoc:
|
|
24
|
+
R_PPC64_REL14_BRNTAKEN = 13 # :nodoc:
|
|
25
|
+
R_PPC64_GOT16 = 14 # :nodoc:
|
|
26
|
+
R_PPC64_GOT16_LO = 15 # :nodoc:
|
|
27
|
+
R_PPC64_GOT16_HI = 16 # :nodoc:
|
|
28
|
+
R_PPC64_GOT16_HA = 17 # :nodoc:
|
|
29
|
+
R_PPC64_COPY = 19 # :nodoc:
|
|
30
|
+
R_PPC64_GLOB_DAT = 20 # :nodoc:
|
|
31
|
+
R_PPC64_JMP_SLOT = 21 # :nodoc:
|
|
32
|
+
R_PPC64_RELATIVE = 22 # :nodoc:
|
|
33
|
+
R_PPC64_UADDR32 = 24 # :nodoc:
|
|
34
|
+
R_PPC64_UADDR16 = 25 # :nodoc:
|
|
35
|
+
R_PPC64_REL32 = 26 # :nodoc:
|
|
36
|
+
R_PPC64_PLT32 = 27 # :nodoc:
|
|
37
|
+
R_PPC64_PLTREL32 = 28 # :nodoc:
|
|
38
|
+
R_PPC64_PLT16_LO = 29 # :nodoc:
|
|
39
|
+
R_PPC64_PLT16_HI = 30 # :nodoc:
|
|
40
|
+
R_PPC64_PLT16_HA = 31 # :nodoc:
|
|
41
|
+
R_PPC64_SECTOFF = 33 # :nodoc:
|
|
42
|
+
R_PPC64_SECTOFF_LO = 34 # :nodoc:
|
|
43
|
+
R_PPC64_SECTOFF_HI = 35 # :nodoc:
|
|
44
|
+
R_PPC64_SECTOFF_HA = 36 # :nodoc:
|
|
45
|
+
R_PPC64_REL30 = 37 # :nodoc:
|
|
46
|
+
R_PPC64_ADDR64 = 38 # :nodoc:
|
|
47
|
+
R_PPC64_ADDR16_HIGHER = 39 # :nodoc:
|
|
48
|
+
R_PPC64_ADDR16_HIGHERA = 40 # :nodoc:
|
|
49
|
+
R_PPC64_ADDR16_HIGHEST = 41 # :nodoc:
|
|
50
|
+
R_PPC64_ADDR16_HIGHESTA = 42 # :nodoc:
|
|
51
|
+
R_PPC64_UADDR64 = 43 # :nodoc:
|
|
52
|
+
R_PPC64_REL64 = 44 # :nodoc:
|
|
53
|
+
R_PPC64_PLT64 = 45 # :nodoc:
|
|
54
|
+
R_PPC64_PLTREL64 = 46 # :nodoc:
|
|
55
|
+
R_PPC64_TOC16 = 47 # :nodoc:
|
|
56
|
+
R_PPC64_TOC16_LO = 48 # :nodoc:
|
|
57
|
+
R_PPC64_TOC16_HI = 49 # :nodoc:
|
|
58
|
+
R_PPC64_TOC16_HA = 50 # :nodoc:
|
|
59
|
+
R_PPC64_TOC = 51 # :nodoc:
|
|
60
|
+
R_PPC64_PLTGOT16 = 52 # :nodoc:
|
|
61
|
+
R_PPC64_PLTGOT16_LO = 53 # :nodoc:
|
|
62
|
+
R_PPC64_PLTGOT16_HI = 54 # :nodoc:
|
|
63
|
+
R_PPC64_PLTGOT16_HA = 55 # :nodoc:
|
|
64
|
+
R_PPC64_ADDR16_DS = 56 # :nodoc:
|
|
65
|
+
R_PPC64_ADDR16_LO_DS = 57 # :nodoc:
|
|
66
|
+
R_PPC64_GOT16_DS = 58 # :nodoc:
|
|
67
|
+
R_PPC64_GOT16_LO_DS = 59 # :nodoc:
|
|
68
|
+
R_PPC64_PLT16_LO_DS = 60 # :nodoc:
|
|
69
|
+
R_PPC64_SECTOFF_DS = 61 # :nodoc:
|
|
70
|
+
R_PPC64_SECTOFF_LO_DS = 62 # :nodoc:
|
|
71
|
+
R_PPC64_TOC16_DS = 63 # :nodoc:
|
|
72
|
+
R_PPC64_TOC16_LO_DS = 64 # :nodoc:
|
|
73
|
+
R_PPC64_PLTGOT16_DS = 65 # :nodoc:
|
|
74
|
+
R_PPC64_PLTGOT16_LO_DS = 66 # :nodoc:
|
|
75
|
+
R_PPC64_TLS = 67 # :nodoc:
|
|
76
|
+
R_PPC64_DTPMOD64 = 68 # :nodoc:
|
|
77
|
+
R_PPC64_TPREL16 = 69 # :nodoc:
|
|
78
|
+
R_PPC64_TPREL16_LO = 70 # :nodoc:
|
|
79
|
+
R_PPC64_TPREL16_HI = 71 # :nodoc:
|
|
80
|
+
R_PPC64_TPREL16_HA = 72 # :nodoc:
|
|
81
|
+
R_PPC64_TPREL64 = 73 # :nodoc:
|
|
82
|
+
R_PPC64_DTPREL16 = 74 # :nodoc:
|
|
83
|
+
R_PPC64_DTPREL16_LO = 75 # :nodoc:
|
|
84
|
+
R_PPC64_DTPREL16_HI = 76 # :nodoc:
|
|
85
|
+
R_PPC64_DTPREL16_HA = 77 # :nodoc:
|
|
86
|
+
R_PPC64_DTPREL64 = 78 # :nodoc:
|
|
87
|
+
R_PPC64_GOT_TLSGD16 = 79 # :nodoc:
|
|
88
|
+
R_PPC64_GOT_TLSGD16_LO = 80 # :nodoc:
|
|
89
|
+
R_PPC64_GOT_TLSGD16_HI = 81 # :nodoc:
|
|
90
|
+
R_PPC64_GOT_TLSGD16_HA = 82 # :nodoc:
|
|
91
|
+
R_PPC64_GOT_TLSLD16 = 83 # :nodoc:
|
|
92
|
+
R_PPC64_GOT_TLSLD16_LO = 84 # :nodoc:
|
|
93
|
+
R_PPC64_GOT_TLSLD16_HI = 85 # :nodoc:
|
|
94
|
+
R_PPC64_GOT_TLSLD16_HA = 86 # :nodoc:
|
|
95
|
+
R_PPC64_GOT_TPREL16_DS = 87 # :nodoc:
|
|
96
|
+
R_PPC64_GOT_TPREL16_LO_DS = 88 # :nodoc:
|
|
97
|
+
R_PPC64_GOT_TPREL16_HI = 89 # :nodoc:
|
|
98
|
+
R_PPC64_GOT_TPREL16_HA = 90 # :nodoc:
|
|
99
|
+
R_PPC64_GOT_DTPREL16_DS = 91 # :nodoc:
|
|
100
|
+
R_PPC64_GOT_DTPREL16_LO_DS = 92 # :nodoc:
|
|
101
|
+
R_PPC64_GOT_DTPREL16_HI = 93 # :nodoc:
|
|
102
|
+
R_PPC64_GOT_DTPREL16_HA = 94 # :nodoc:
|
|
103
|
+
R_PPC64_TPREL16_DS = 95 # :nodoc:
|
|
104
|
+
R_PPC64_TPREL16_LO_DS = 96 # :nodoc:
|
|
105
|
+
R_PPC64_TPREL16_HIGHER = 97 # :nodoc:
|
|
106
|
+
R_PPC64_TPREL16_HIGHERA = 98 # :nodoc:
|
|
107
|
+
R_PPC64_TPREL16_HIGHEST = 99 # :nodoc:
|
|
108
|
+
R_PPC64_TPREL16_HIGHESTA = 100 # :nodoc:
|
|
109
|
+
R_PPC64_DTPREL16_DS = 101 # :nodoc:
|
|
110
|
+
R_PPC64_DTPREL16_LO_DS = 102 # :nodoc:
|
|
111
|
+
R_PPC64_DTPREL16_HIGHER = 103 # :nodoc:
|
|
112
|
+
R_PPC64_DTPREL16_HIGHERA = 104 # :nodoc:
|
|
113
|
+
R_PPC64_DTPREL16_HIGHEST = 105 # :nodoc:
|
|
114
|
+
R_PPC64_DTPREL16_HIGHESTA = 106 # :nodoc:
|
|
115
|
+
R_PPC64_TLSGD = 107 # :nodoc:
|
|
116
|
+
R_PPC64_TLSLD = 108 # :nodoc:
|
|
117
|
+
R_PPC64_TOCSAVE = 109 # :nodoc:
|
|
118
|
+
R_PPC64_ADDR16_HIGH = 110 # :nodoc:
|
|
119
|
+
R_PPC64_ADDR16_HIGHA = 111 # :nodoc:
|
|
120
|
+
R_PPC64_TPREL16_HIGH = 112 # :nodoc:
|
|
121
|
+
R_PPC64_TPREL16_HIGHA = 113 # :nodoc:
|
|
122
|
+
R_PPC64_DTPREL16_HIGH = 114 # :nodoc:
|
|
123
|
+
R_PPC64_DTPREL16_HIGHA = 115 # :nodoc:
|
|
124
|
+
R_PPC64_REL24_NOTOC = 116 # :nodoc:
|
|
125
|
+
R_PPC64_ADDR64_LOCAL = 117 # :nodoc:
|
|
126
|
+
R_PPC64_ENTRY = 118 # :nodoc:
|
|
127
|
+
R_PPC64_PLTSEQ = 119 # :nodoc:
|
|
128
|
+
R_PPC64_PLTCALL = 120 # :nodoc:
|
|
129
|
+
R_PPC64_PLTSEQ_NOTOC = 121 # :nodoc:
|
|
130
|
+
R_PPC64_PLTCALL_NOTOC = 122 # :nodoc:
|
|
131
|
+
R_PPC64_PCREL_OPT = 123 # :nodoc:
|
|
132
|
+
R_PPC64_REL24_P9NOTOC = 124 # :nodoc:
|
|
133
|
+
R_PPC64_D34 = 128 # :nodoc:
|
|
134
|
+
R_PPC64_D34_LO = 129 # :nodoc:
|
|
135
|
+
R_PPC64_D34_HI30 = 130 # :nodoc:
|
|
136
|
+
R_PPC64_D34_HA30 = 131 # :nodoc:
|
|
137
|
+
R_PPC64_PCREL34 = 132 # :nodoc:
|
|
138
|
+
R_PPC64_GOT_PCREL34 = 133 # :nodoc:
|
|
139
|
+
R_PPC64_PLT_PCREL34 = 134 # :nodoc:
|
|
140
|
+
R_PPC64_PLT_PCREL34_NOTOC = 135 # :nodoc:
|
|
141
|
+
R_PPC64_ADDR16_HIGHER34 = 136 # :nodoc:
|
|
142
|
+
R_PPC64_ADDR16_HIGHERA34 = 137 # :nodoc:
|
|
143
|
+
R_PPC64_ADDR16_HIGHEST34 = 138 # :nodoc:
|
|
144
|
+
R_PPC64_ADDR16_HIGHESTA34 = 139 # :nodoc:
|
|
145
|
+
R_PPC64_REL16_HIGHER34 = 140 # :nodoc:
|
|
146
|
+
R_PPC64_REL16_HIGHERA34 = 141 # :nodoc:
|
|
147
|
+
R_PPC64_REL16_HIGHEST34 = 142 # :nodoc:
|
|
148
|
+
R_PPC64_REL16_HIGHESTA34 = 143 # :nodoc:
|
|
149
|
+
R_PPC64_D28 = 144 # :nodoc:
|
|
150
|
+
R_PPC64_PCREL28 = 145 # :nodoc:
|
|
151
|
+
R_PPC64_TPREL34 = 146 # :nodoc:
|
|
152
|
+
R_PPC64_DTPREL34 = 147 # :nodoc:
|
|
153
|
+
R_PPC64_GOT_TLSGD_PCREL34 = 148 # :nodoc:
|
|
154
|
+
R_PPC64_GOT_TLSLD_PCREL34 = 149 # :nodoc:
|
|
155
|
+
R_PPC64_GOT_TPREL_PCREL34 = 150 # :nodoc:
|
|
156
|
+
R_PPC64_GOT_DTPREL_PCREL34 = 151 # :nodoc:
|
|
157
|
+
R_PPC64_LO_DS_OPT = 200 # :nodoc:
|
|
158
|
+
R_PPC64_16DX_HA = 201 # :nodoc:
|
|
159
|
+
R_PPC64_REL16_HIGH = 240 # :nodoc:
|
|
160
|
+
R_PPC64_REL16_HIGHA = 241 # :nodoc:
|
|
161
|
+
R_PPC64_REL16_HIGHER = 242 # :nodoc:
|
|
162
|
+
R_PPC64_REL16_HIGHERA = 243 # :nodoc:
|
|
163
|
+
R_PPC64_REL16_HIGHEST = 244 # :nodoc:
|
|
164
|
+
R_PPC64_REL16_HIGHESTA = 245 # :nodoc:
|
|
165
|
+
R_PPC64_REL16DX_HA = 246 # :nodoc:
|
|
166
|
+
R_PPC64_JMP_IREL = 247 # :nodoc:
|
|
167
|
+
R_PPC64_IRELATIVE = 248 # :nodoc:
|
|
168
|
+
R_PPC64_REL16 = 249 # :nodoc:
|
|
169
|
+
R_PPC64_REL16_LO = 250 # :nodoc:
|
|
170
|
+
R_PPC64_REL16_HI = 251 # :nodoc:
|
|
171
|
+
R_PPC64_REL16_HA = 252 # :nodoc:
|
|
172
|
+
R_PPC64_GNU_VTINHERIT = 253 # :nodoc:
|
|
173
|
+
R_PPC64_GNU_VTENTRY = 254 # :nodoc:
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
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 PRU.
|
|
10
|
+
module PRU
|
|
11
|
+
R_PRU_NONE = 0 # :nodoc:
|
|
12
|
+
R_PRU_16_PMEM = 5 # :nodoc:
|
|
13
|
+
R_PRU_U16_PMEMIMM = 6 # :nodoc:
|
|
14
|
+
R_PRU_BFD_RELOC_16 = 8 # :nodoc:
|
|
15
|
+
R_PRU_U16 = 9 # :nodoc:
|
|
16
|
+
R_PRU_32_PMEM = 10 # :nodoc:
|
|
17
|
+
R_PRU_BFD_RELOC_32 = 11 # :nodoc:
|
|
18
|
+
R_PRU_S10_PCREL = 14 # :nodoc:
|
|
19
|
+
R_PRU_U8_PCREL = 15 # :nodoc:
|
|
20
|
+
R_PRU_LDI32 = 18 # :nodoc:
|
|
21
|
+
R_PRU_GNU_BFD_RELOC_8 = 64 # :nodoc:
|
|
22
|
+
R_PRU_GNU_DIFF8 = 65 # :nodoc:
|
|
23
|
+
R_PRU_GNU_DIFF16 = 66 # :nodoc:
|
|
24
|
+
R_PRU_GNU_DIFF32 = 67 # :nodoc:
|
|
25
|
+
R_PRU_GNU_DIFF16_PMEM = 68 # :nodoc:
|
|
26
|
+
R_PRU_GNU_DIFF32_PMEM = 69 # :nodoc:
|
|
27
|
+
R_PRU_ILLEGAL = 70 # :nodoc:
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
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 RISCV.
|
|
10
|
+
module RISCV
|
|
11
|
+
R_RISCV_NONE = 0 # :nodoc:
|
|
12
|
+
R_RISCV_32 = 1 # :nodoc:
|
|
13
|
+
R_RISCV_64 = 2 # :nodoc:
|
|
14
|
+
R_RISCV_RELATIVE = 3 # :nodoc:
|
|
15
|
+
R_RISCV_COPY = 4 # :nodoc:
|
|
16
|
+
R_RISCV_JUMP_SLOT = 5 # :nodoc:
|
|
17
|
+
R_RISCV_TLS_DTPMOD32 = 6 # :nodoc:
|
|
18
|
+
R_RISCV_TLS_DTPMOD64 = 7 # :nodoc:
|
|
19
|
+
R_RISCV_TLS_DTPREL32 = 8 # :nodoc:
|
|
20
|
+
R_RISCV_TLS_DTPREL64 = 9 # :nodoc:
|
|
21
|
+
R_RISCV_TLS_TPREL32 = 10 # :nodoc:
|
|
22
|
+
R_RISCV_TLS_TPREL64 = 11 # :nodoc:
|
|
23
|
+
R_RISCV_TLSDESC = 12 # :nodoc:
|
|
24
|
+
R_RISCV_BRANCH = 16 # :nodoc:
|
|
25
|
+
R_RISCV_JAL = 17 # :nodoc:
|
|
26
|
+
R_RISCV_CALL = 18 # :nodoc:
|
|
27
|
+
R_RISCV_CALL_PLT = 19 # :nodoc:
|
|
28
|
+
R_RISCV_GOT_HI20 = 20 # :nodoc:
|
|
29
|
+
R_RISCV_TLS_GOT_HI20 = 21 # :nodoc:
|
|
30
|
+
R_RISCV_TLS_GD_HI20 = 22 # :nodoc:
|
|
31
|
+
R_RISCV_PCREL_HI20 = 23 # :nodoc:
|
|
32
|
+
R_RISCV_PCREL_LO12_I = 24 # :nodoc:
|
|
33
|
+
R_RISCV_PCREL_LO12_S = 25 # :nodoc:
|
|
34
|
+
R_RISCV_HI20 = 26 # :nodoc:
|
|
35
|
+
R_RISCV_LO12_I = 27 # :nodoc:
|
|
36
|
+
R_RISCV_LO12_S = 28 # :nodoc:
|
|
37
|
+
R_RISCV_TPREL_HI20 = 29 # :nodoc:
|
|
38
|
+
R_RISCV_TPREL_LO12_I = 30 # :nodoc:
|
|
39
|
+
R_RISCV_TPREL_LO12_S = 31 # :nodoc:
|
|
40
|
+
R_RISCV_TPREL_ADD = 32 # :nodoc:
|
|
41
|
+
R_RISCV_ADD8 = 33 # :nodoc:
|
|
42
|
+
R_RISCV_ADD16 = 34 # :nodoc:
|
|
43
|
+
R_RISCV_ADD32 = 35 # :nodoc:
|
|
44
|
+
R_RISCV_ADD64 = 36 # :nodoc:
|
|
45
|
+
R_RISCV_SUB8 = 37 # :nodoc:
|
|
46
|
+
R_RISCV_SUB16 = 38 # :nodoc:
|
|
47
|
+
R_RISCV_SUB32 = 39 # :nodoc:
|
|
48
|
+
R_RISCV_SUB64 = 40 # :nodoc:
|
|
49
|
+
R_RISCV_ALIGN = 43 # :nodoc:
|
|
50
|
+
R_RISCV_RVC_BRANCH = 44 # :nodoc:
|
|
51
|
+
R_RISCV_RVC_JUMP = 45 # :nodoc:
|
|
52
|
+
R_RISCV_RVC_LUI = 46 # :nodoc:
|
|
53
|
+
R_RISCV_GPREL_I = 47 # :nodoc:
|
|
54
|
+
R_RISCV_GPREL_S = 48 # :nodoc:
|
|
55
|
+
R_RISCV_TPREL_I = 49 # :nodoc:
|
|
56
|
+
R_RISCV_TPREL_S = 50 # :nodoc:
|
|
57
|
+
R_RISCV_RELAX = 51 # :nodoc:
|
|
58
|
+
R_RISCV_SUB6 = 52 # :nodoc:
|
|
59
|
+
R_RISCV_SET6 = 53 # :nodoc:
|
|
60
|
+
R_RISCV_SET8 = 54 # :nodoc:
|
|
61
|
+
R_RISCV_SET16 = 55 # :nodoc:
|
|
62
|
+
R_RISCV_SET32 = 56 # :nodoc:
|
|
63
|
+
R_RISCV_32_PCREL = 57 # :nodoc:
|
|
64
|
+
R_RISCV_IRELATIVE = 58 # :nodoc:
|
|
65
|
+
R_RISCV_SET_ULEB128 = 60 # :nodoc:
|
|
66
|
+
R_RISCV_SUB_ULEB128 = 61 # :nodoc:
|
|
67
|
+
R_RISCV_TLSDESC_HI20 = 62 # :nodoc:
|
|
68
|
+
R_RISCV_TLSDESC_LOAD_LO12 = 63 # :nodoc:
|
|
69
|
+
R_RISCV_TLSDESC_ADD_LO12 = 64 # :nodoc:
|
|
70
|
+
R_RISCV_TLSDESC_CALL = 65 # :nodoc:
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
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 RL78.
|
|
10
|
+
module RL78
|
|
11
|
+
R_RL78_NONE = 0 # :nodoc:
|
|
12
|
+
R_RL78_DIR32 = 1 # Was: R_RL78_32
|
|
13
|
+
R_RL78_DIR24S = 2 # Was: R_RL78_24
|
|
14
|
+
R_RL78_DIR16 = 3 # :nodoc:
|
|
15
|
+
R_RL78_DIR16U = 4 # Was: R_RL78_16_UNS
|
|
16
|
+
R_RL78_DIR16S = 5 # Was: R_RL78_16
|
|
17
|
+
R_RL78_DIR8 = 6 # :nodoc:
|
|
18
|
+
R_RL78_DIR8U = 7 # Was: R_RL78_8_UNS
|
|
19
|
+
R_RL78_DIR8S = 8 # Was: R_RL78_8
|
|
20
|
+
R_RL78_DIR24S_PCREL = 9 # Was: R_RL78_24_PCREL
|
|
21
|
+
R_RL78_DIR16S_PCREL = 10 # Was: R_RL78_16_PCREL
|
|
22
|
+
R_RL78_DIR8S_PCREL = 11 # Was: R_RL78_8_PCREL
|
|
23
|
+
R_RL78_DIR16UL = 12 # :nodoc:
|
|
24
|
+
R_RL78_DIR16UW = 13 # :nodoc:
|
|
25
|
+
R_RL78_DIR8UL = 14 # :nodoc:
|
|
26
|
+
R_RL78_DIR8UW = 15 # :nodoc:
|
|
27
|
+
R_RL78_DIR32_REV = 16 # :nodoc:
|
|
28
|
+
R_RL78_DIR16_REV = 17 # :nodoc:
|
|
29
|
+
R_RL78_DIR3U_PCREL = 18 # :nodoc:
|
|
30
|
+
R_RL78_RH_RELAX = 45 # Marks opcodes suitable for linker relaxation
|
|
31
|
+
R_RL78_RH_SFR = 46 # SFR addresses - internal use only
|
|
32
|
+
R_RL78_RH_SADDR = 47 # SADDR addresses - internal use only.
|
|
33
|
+
R_RL78_ABS32 = 65 # :nodoc:
|
|
34
|
+
R_RL78_ABS24S = 66 # :nodoc:
|
|
35
|
+
R_RL78_ABS16 = 67 # :nodoc:
|
|
36
|
+
R_RL78_ABS16U = 68 # :nodoc:
|
|
37
|
+
R_RL78_ABS16S = 69 # :nodoc:
|
|
38
|
+
R_RL78_ABS8 = 70 # :nodoc:
|
|
39
|
+
R_RL78_ABS8U = 71 # :nodoc:
|
|
40
|
+
R_RL78_ABS8S = 72 # :nodoc:
|
|
41
|
+
R_RL78_ABS24S_PCREL = 73 # :nodoc:
|
|
42
|
+
R_RL78_ABS16S_PCREL = 74 # :nodoc:
|
|
43
|
+
R_RL78_ABS8S_PCREL = 75 # :nodoc:
|
|
44
|
+
R_RL78_ABS16UL = 76 # :nodoc:
|
|
45
|
+
R_RL78_ABS16UW = 77 # :nodoc:
|
|
46
|
+
R_RL78_ABS8UL = 78 # :nodoc:
|
|
47
|
+
R_RL78_ABS8UW = 79 # :nodoc:
|
|
48
|
+
R_RL78_ABS32_REV = 80 # :nodoc:
|
|
49
|
+
R_RL78_ABS16_REV = 81 # :nodoc:
|
|
50
|
+
R_RL78_SYM = 128 # :nodoc:
|
|
51
|
+
R_RL78_OPneg = 129 # :nodoc:
|
|
52
|
+
R_RL78_OPadd = 130 # :nodoc:
|
|
53
|
+
R_RL78_OPsub = 131 # :nodoc:
|
|
54
|
+
R_RL78_OPmul = 132 # :nodoc:
|
|
55
|
+
R_RL78_OPdiv = 133 # :nodoc:
|
|
56
|
+
R_RL78_OPshla = 134 # :nodoc:
|
|
57
|
+
R_RL78_OPshra = 135 # :nodoc:
|
|
58
|
+
R_RL78_OPsctsize = 136 # :nodoc:
|
|
59
|
+
R_RL78_OPscttop = 141 # :nodoc:
|
|
60
|
+
R_RL78_OPand = 144 # :nodoc:
|
|
61
|
+
R_RL78_OPor = 145 # :nodoc:
|
|
62
|
+
R_RL78_OPxor = 146 # :nodoc:
|
|
63
|
+
R_RL78_OPnot = 147 # :nodoc:
|
|
64
|
+
R_RL78_OPmod = 148 # :nodoc:
|
|
65
|
+
R_RL78_OPromtop = 149 # :nodoc:
|
|
66
|
+
R_RL78_OPramtop = 150 # :nodoc:
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|