LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
ELF/enums.hpp
Go to the documentation of this file.
1/* Copyright 2017 - 2026 R. Thomas
2 * Copyright 2017 - 2026 Quarkslab
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef LIEF_ELF_ENUMS_H
17#define LIEF_ELF_ENUMS_H
18#include "LIEF/enums.hpp"
19#include <cstdint>
20#include <cstddef>
21
22namespace LIEF {
23namespace ELF {
24
30enum class ARCH {
31 NONE = 0,
32 M32 = 1,
33 SPARC = 2,
34 I386 = 3,
35 M68K = 4,
36 M88K = 5,
37 IAMCU = 6,
38 I860 = 7,
39 MIPS = 8,
40 S370 = 9,
42 PARISC = 15,
43 VPP500 = 17,
45 I60 = 19,
46 PPC = 20,
47 PPC64 = 21,
48 S390 = 22,
49 SPU = 23,
50 V800 = 36,
51 FR20 = 37,
52 RH32 = 38,
53 RCE = 39,
54 ARM = 40,
55 ALPHA = 41,
56 SH = 42,
57 SPARCV9 = 43,
58 TRICORE = 44,
59 ARC = 45,
60 H8_300 = 46,
61 H8_300H = 47,
62 H8S = 48,
63 H8_500 = 49,
64 IA_64 = 50,
65 MIPS_X = 51,
66 COLDFIRE = 52,
67 M68HC12 = 53,
68 MMA = 54,
69 PCP = 55,
70 NCPU = 56,
71 NDR1 = 57,
72 STARCORE = 58,
73 ME16 = 59,
74 ST100 = 60,
75 TINYJ = 61,
76 X86_64 = 62,
77 PDSP = 63,
78 PDP10 = 64,
79 PDP11 = 65,
80 FX66 = 66,
81 ST9PLUS = 67,
82 ST7 = 68,
83 M68HC16 = 69,
84 M68HC11 = 70,
85 M68HC08 = 71,
86 M68HC05 = 72,
87 SVX = 73,
88 ST19 = 74,
89 VAX = 75,
90 CRIS = 76,
91 JAVELIN = 77,
92 FIREPATH = 78,
93 ZSP = 79,
94 MMIX = 80,
95 HUANY = 81,
96 PRISM = 82,
97 AVR = 83,
98 FR30 = 84,
99 D10V = 85,
100 D30V = 86,
101 V850 = 87,
102 M32R = 88,
103 MN10300 = 89,
104 MN10200 = 90,
105 PJ = 91,
106 OPENRISC = 92,
109 XTENSA = 94,
111 TMM_GPP = 96,
112 NS32K = 97,
113 TPC = 98,
114 SNP1K = 99,
115 ST200 = 100,
116 IP2K = 101,
117 MAX = 102,
118 CR = 103,
119 F2MC16 = 104,
120 MSP430 = 105,
121 BLACKFIN = 106,
122 SE_C33 = 107,
123 SEP = 108,
124 ARCA = 109,
125 UNICORE = 110,
127 EXCESS = 111,
128 DXP = 112,
130 CRX = 114,
131 XGATE = 115,
132 C166 = 116,
133 M16C = 117,
134 DSPIC30F = 118,
135 CE = 119,
136 M32C = 120,
137 TSK3000 = 131,
138 RS08 = 132,
139 SHARC = 133,
140 ECOG2 = 134,
141 SCORE7 = 135,
142 DSP24 = 136,
145 SE_C17 = 139,
146 TI_C6000 = 140,
147 TI_C2000 = 141,
148 TI_C5500 = 142,
151 R32C = 162,
152 TRIMEDIA = 163,
153 HEXAGON = 164,
154 M8051 = 165,
155 STXP7X = 166,
156 NDS32 = 167, /* Andes Technology compact code size embedded RISC */
157 ECOG1 = 168,
158 ECOG1X = 168,
159 MAXQ30 = 169,
160 XIMO16 = 170,
161 MANIK = 171,
162 CRAYNV2 = 172,
163 RX = 173,
164 METAG = 174,
166 ECOG16 = 176,
167 CR16 = 177,
168 ETPU = 178,
169 SLE9X = 179,
170 L10M = 180,
171 K10M = 181,
172 AARCH64 = 183,
173 AVR32 = 185,
174 STM8 = 186,
175 TILE64 = 187,
176 TILEPRO = 188,
177 CUDA = 190,
178 TILEGX = 191,
180 COREA_1ST = 193,
181 COREA_2ND = 194,
183 OPEN8 = 196,
184 RL78 = 197,
186 M78KOR = 199,
187 M56800EX = 200,
188 BA1 = 201,
189 BA2 = 202,
190 XCORE = 203,
191 MCHP_PIC = 204,
192 INTEL205 = 205,
193 INTEL206 = 206,
194 INTEL207 = 207,
195 INTEL208 = 208,
196 INTEL209 = 209,
197 KM32 = 210,
198 KMX32 = 211,
199 KMX16 = 212,
200 KMX8 = 213,
201 KVARC = 214,
202 CDP = 215,
203 COGE = 216,
204 COOL = 217,
205 NORC = 218,
207 AMDGPU = 224,
208 RISCV = 243,
209 BPF = 247,
210 CSKY = 252,
211 LOONGARCH = 258,
212
213 ALPHA_ALT = 0x9026,
214};
215
216}
217}
218
219#endif
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
ARCH
Definition ELF/enums.hpp:30
@ ALPHA
Definition ELF/enums.hpp:55
@ INTEL208
Definition ELF/enums.hpp:195
@ I860
Definition ELF/enums.hpp:38
@ SVX
Definition ELF/enums.hpp:87
@ AARCH64
Definition ELF/enums.hpp:172
@ MMA
Definition ELF/enums.hpp:68
@ M32C
Definition ELF/enums.hpp:136
@ JAVELIN
Definition ELF/enums.hpp:91
@ LOONGARCH
Definition ELF/enums.hpp:211
@ CRX
Definition ELF/enums.hpp:130
@ METAG
Definition ELF/enums.hpp:164
@ PDSP
Definition ELF/enums.hpp:77
@ PJ
Definition ELF/enums.hpp:105
@ M32R
Definition ELF/enums.hpp:102
@ NDS32
Definition ELF/enums.hpp:156
@ PCP
Definition ELF/enums.hpp:69
@ I60
Definition ELF/enums.hpp:45
@ ECOG16
Definition ELF/enums.hpp:166
@ H8_300H
Definition ELF/enums.hpp:61
@ MIPS
Definition ELF/enums.hpp:39
@ CRAYNV2
Definition ELF/enums.hpp:162
@ CR
Definition ELF/enums.hpp:118
@ INTEL209
Definition ELF/enums.hpp:196
@ MN10200
Definition ELF/enums.hpp:104
@ S370
Definition ELF/enums.hpp:40
@ H8S
Definition ELF/enums.hpp:62
@ RL78
Definition ELF/enums.hpp:184
@ ARC_COMPACT2
Definition ELF/enums.hpp:182
@ TI_C5500
Definition ELF/enums.hpp:148
@ PRISM
Definition ELF/enums.hpp:96
@ DSPIC30F
Definition ELF/enums.hpp:134
@ MAX
Definition ELF/enums.hpp:117
@ HEXAGON
Definition ELF/enums.hpp:153
@ KVARC
Definition ELF/enums.hpp:201
@ ALPHA_ALT
Definition ELF/enums.hpp:213
@ EXCESS
Definition ELF/enums.hpp:127
@ CR16
Definition ELF/enums.hpp:167
@ CRIS
Definition ELF/enums.hpp:90
@ F2MC16
Definition ELF/enums.hpp:119
@ MCHP_PIC
Definition ELF/enums.hpp:191
@ BPF
Definition ELF/enums.hpp:209
@ TSK3000
Definition ELF/enums.hpp:137
@ SLE9X
Definition ELF/enums.hpp:169
@ ZSP
Definition ELF/enums.hpp:93
@ TRIMEDIA
Definition ELF/enums.hpp:152
@ PDP10
Definition ELF/enums.hpp:78
@ BA1
Definition ELF/enums.hpp:188
@ INTEL205
Definition ELF/enums.hpp:192
@ M68HC11
Definition ELF/enums.hpp:84
@ ETPU
Definition ELF/enums.hpp:168
@ NCPU
Definition ELF/enums.hpp:70
@ ST100
Definition ELF/enums.hpp:74
@ MANIK
Definition ELF/enums.hpp:161
@ FX66
Definition ELF/enums.hpp:80
@ KMX8
Definition ELF/enums.hpp:200
@ XIMO16
Definition ELF/enums.hpp:160
@ ARM
Definition ELF/enums.hpp:54
@ MMDSP_PLUS
Definition ELF/enums.hpp:149
@ CLOUDSHIELD
Definition ELF/enums.hpp:179
@ TRICORE
Definition ELF/enums.hpp:58
@ NDR1
Definition ELF/enums.hpp:71
@ V850
Definition ELF/enums.hpp:101
@ M78KOR
Definition ELF/enums.hpp:186
@ PDP11
Definition ELF/enums.hpp:79
@ KMX16
Definition ELF/enums.hpp:199
@ M88K
Definition ELF/enums.hpp:36
@ UNICORE
Definition ELF/enums.hpp:125
@ IA_64
Definition ELF/enums.hpp:64
@ HUANY
Definition ELF/enums.hpp:95
@ K10M
Definition ELF/enums.hpp:171
@ ARCA
Definition ELF/enums.hpp:124
@ RCE
Definition ELF/enums.hpp:53
@ AMDGPU
Definition ELF/enums.hpp:207
@ M68HC12
Definition ELF/enums.hpp:67
@ ARC_COMPACT
Definition ELF/enums.hpp:107
@ TILEPRO
Definition ELF/enums.hpp:176
@ ST19
Definition ELF/enums.hpp:88
@ CSKY
Definition ELF/enums.hpp:210
@ CSR_KALIMBA
Definition ELF/enums.hpp:206
@ COOL
Definition ELF/enums.hpp:204
@ CE
Definition ELF/enums.hpp:135
@ CYPRESS_M8C
Definition ELF/enums.hpp:150
@ VIDEOCORE3
Definition ELF/enums.hpp:143
@ OPEN8
Definition ELF/enums.hpp:183
@ XTENSA
Definition ELF/enums.hpp:109
@ X86_64
Definition ELF/enums.hpp:76
@ V800
Definition ELF/enums.hpp:50
@ SE_C17
Definition ELF/enums.hpp:145
@ L10M
Definition ELF/enums.hpp:170
@ RISCV
Definition ELF/enums.hpp:208
@ SPARC32PLUS
Definition ELF/enums.hpp:44
@ DSP24
Definition ELF/enums.hpp:142
@ NS32K
Definition ELF/enums.hpp:112
@ TI_C2000
Definition ELF/enums.hpp:147
@ IAMCU
Definition ELF/enums.hpp:37
@ XCORE
Definition ELF/enums.hpp:190
@ ECOG1
Definition ELF/enums.hpp:157
@ AVR
Definition ELF/enums.hpp:97
@ RS08
Definition ELF/enums.hpp:138
@ PPC64
Definition ELF/enums.hpp:47
@ M32
Definition ELF/enums.hpp:32
@ FR20
Definition ELF/enums.hpp:51
@ TILE64
Definition ELF/enums.hpp:175
@ COREA_1ST
Definition ELF/enums.hpp:180
@ M8051
Definition ELF/enums.hpp:154
@ MSP430
Definition ELF/enums.hpp:120
@ COGE
Definition ELF/enums.hpp:203
@ MAXQ30
Definition ELF/enums.hpp:159
@ SHARC
Definition ELF/enums.hpp:139
@ MCST_ELBRUS
Definition ELF/enums.hpp:165
@ COLDFIRE
Definition ELF/enums.hpp:66
@ M68HC08
Definition ELF/enums.hpp:85
@ VAX
Definition ELF/enums.hpp:89
@ ECOG1X
Definition ELF/enums.hpp:158
@ CUDA
Definition ELF/enums.hpp:177
@ STARCORE
Definition ELF/enums.hpp:72
@ M16C
Definition ELF/enums.hpp:133
@ ST200
Definition ELF/enums.hpp:115
@ TINYJ
Definition ELF/enums.hpp:75
@ SPARCV9
Definition ELF/enums.hpp:57
@ M68K
Definition ELF/enums.hpp:35
@ SPARC
Definition ELF/enums.hpp:33
@ TI_C6000
Definition ELF/enums.hpp:146
@ INTEL206
Definition ELF/enums.hpp:193
@ OPENRISC
Definition ELF/enums.hpp:106
@ NORC
Definition ELF/enums.hpp:205
@ FIREPATH
Definition ELF/enums.hpp:92
@ R32C
Definition ELF/enums.hpp:151
@ AVR32
Definition ELF/enums.hpp:173
@ LATTICEMICO32
Definition ELF/enums.hpp:144
@ NONE
Definition ELF/enums.hpp:31
@ M68HC16
Definition ELF/enums.hpp:83
@ D30V
Definition ELF/enums.hpp:100
@ STM8
Definition ELF/enums.hpp:174
@ BA2
Definition ELF/enums.hpp:189
@ ME16
Definition ELF/enums.hpp:73
@ MMIX
Definition ELF/enums.hpp:94
@ COREA_2ND
Definition ELF/enums.hpp:181
@ TPC
Definition ELF/enums.hpp:113
@ VIDEOCORE
Definition ELF/enums.hpp:110
@ CDP
Definition ELF/enums.hpp:202
@ BLACKFIN
Definition ELF/enums.hpp:121
@ ST7
Definition ELF/enums.hpp:82
@ D10V
Definition ELF/enums.hpp:99
@ VIDEOCORE5
Definition ELF/enums.hpp:185
@ TILEGX
Definition ELF/enums.hpp:178
@ VPP500
Definition ELF/enums.hpp:43
@ INTEL207
Definition ELF/enums.hpp:194
@ MIPS_RS3_LE
Definition ELF/enums.hpp:41
@ MIPS_X
Definition ELF/enums.hpp:65
@ ARC
Definition ELF/enums.hpp:59
@ I386
Definition ELF/enums.hpp:34
@ ECOG2
Definition ELF/enums.hpp:140
@ KMX32
Definition ELF/enums.hpp:198
@ RH32
Definition ELF/enums.hpp:52
@ SCORE7
Definition ELF/enums.hpp:141
@ SPU
Definition ELF/enums.hpp:49
@ IP2K
Definition ELF/enums.hpp:116
@ SNP1K
Definition ELF/enums.hpp:114
@ M68HC05
Definition ELF/enums.hpp:86
@ SE_C33
Definition ELF/enums.hpp:122
@ XGATE
Definition ELF/enums.hpp:131
@ ST9PLUS
Definition ELF/enums.hpp:81
@ ALTERA_NIOS2
Definition ELF/enums.hpp:129
@ STXP7X
Definition ELF/enums.hpp:155
@ MN10300
Definition ELF/enums.hpp:103
@ PPC
Definition ELF/enums.hpp:46
@ TMM_GPP
Definition ELF/enums.hpp:111
@ SH
Definition ELF/enums.hpp:56
@ SEP
Definition ELF/enums.hpp:123
@ KM32
Definition ELF/enums.hpp:197
@ FR30
Definition ELF/enums.hpp:98
@ H8_500
Definition ELF/enums.hpp:63
@ S390
Definition ELF/enums.hpp:48
@ PARISC
Definition ELF/enums.hpp:42
@ H8_300
Definition ELF/enums.hpp:60
@ RX
Definition ELF/enums.hpp:163
@ C166
Definition ELF/enums.hpp:132
@ DXP
Definition ELF/enums.hpp:128
@ M56800EX
Definition ELF/enums.hpp:187
LIEF namespace.
Definition Abstract/Binary.hpp:40