1*4d9fdb46SRobert Mustacchi /* Copyright (c) 2019, David Anderson
2*4d9fdb46SRobert Mustacchi All rights reserved.
3*4d9fdb46SRobert Mustacchi 
4*4d9fdb46SRobert Mustacchi Redistribution and use in source and binary forms, with
5*4d9fdb46SRobert Mustacchi or without modification, are permitted provided that the
6*4d9fdb46SRobert Mustacchi following conditions are met:
7*4d9fdb46SRobert Mustacchi 
8*4d9fdb46SRobert Mustacchi     Redistributions of source code must retain the above
9*4d9fdb46SRobert Mustacchi     copyright notice, this list of conditions and the following
10*4d9fdb46SRobert Mustacchi     disclaimer.
11*4d9fdb46SRobert Mustacchi 
12*4d9fdb46SRobert Mustacchi     Redistributions in binary form must reproduce the above
13*4d9fdb46SRobert Mustacchi     copyright notice, this list of conditions and the following
14*4d9fdb46SRobert Mustacchi     disclaimer in the documentation and/or other materials
15*4d9fdb46SRobert Mustacchi     provided with the distribution.
16*4d9fdb46SRobert Mustacchi 
17*4d9fdb46SRobert Mustacchi THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
18*4d9fdb46SRobert Mustacchi CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
19*4d9fdb46SRobert Mustacchi INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20*4d9fdb46SRobert Mustacchi OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*4d9fdb46SRobert Mustacchi ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
22*4d9fdb46SRobert Mustacchi CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23*4d9fdb46SRobert Mustacchi SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24*4d9fdb46SRobert Mustacchi NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25*4d9fdb46SRobert Mustacchi LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26*4d9fdb46SRobert Mustacchi HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*4d9fdb46SRobert Mustacchi CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28*4d9fdb46SRobert Mustacchi OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29*4d9fdb46SRobert Mustacchi EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30*4d9fdb46SRobert Mustacchi 
31*4d9fdb46SRobert Mustacchi */
32*4d9fdb46SRobert Mustacchi #ifndef DWARF_ELF_DEFINES_H
33*4d9fdb46SRobert Mustacchi #define DWARF_ELF_DEFINES_H
34*4d9fdb46SRobert Mustacchi 
35*4d9fdb46SRobert Mustacchi #ifdef __cplusplus
36*4d9fdb46SRobert Mustacchi extern "C" {
37*4d9fdb46SRobert Mustacchi #endif /* __cplusplus */
38*4d9fdb46SRobert Mustacchi 
39*4d9fdb46SRobert Mustacchi /*  Use the system headers if they are available. */
40*4d9fdb46SRobert Mustacchi #ifdef HAVE_ELF_H
41*4d9fdb46SRobert Mustacchi #include <elf.h>
42*4d9fdb46SRobert Mustacchi #endif /* HAVE_ELF_H */
43*4d9fdb46SRobert Mustacchi 
44*4d9fdb46SRobert Mustacchi /*  Relocation definitions are in sys/elf_{mach}.h on Solaris.  */
45*4d9fdb46SRobert Mustacchi #ifdef HAVE_LIBELF_H
46*4d9fdb46SRobert Mustacchi #include <libelf.h>
47*4d9fdb46SRobert Mustacchi #else
48*4d9fdb46SRobert Mustacchi #ifdef HAVE_LIBELF_LIBELF_H
49*4d9fdb46SRobert Mustacchi #include <libelf/libelf.h>
50*4d9fdb46SRobert Mustacchi #endif /* HAVE_LIBELF_LIBELF_H */
51*4d9fdb46SRobert Mustacchi #endif /* HAVE_LIBELF_H */
52*4d9fdb46SRobert Mustacchi 
53*4d9fdb46SRobert Mustacchi /* Standard Elf section types. */
54*4d9fdb46SRobert Mustacchi #ifndef SHT_NULL
55*4d9fdb46SRobert Mustacchi #define SHT_NULL 0
56*4d9fdb46SRobert Mustacchi #endif
57*4d9fdb46SRobert Mustacchi #ifndef SHT_PROGBITS
58*4d9fdb46SRobert Mustacchi #define SHT_PROGBITS 1
59*4d9fdb46SRobert Mustacchi #endif
60*4d9fdb46SRobert Mustacchi #ifndef SHT_SYMTAB
61*4d9fdb46SRobert Mustacchi #define SHT_SYMTAB 2
62*4d9fdb46SRobert Mustacchi #endif
63*4d9fdb46SRobert Mustacchi #ifndef SHT_STRTAB
64*4d9fdb46SRobert Mustacchi #define SHT_STRTAB 3
65*4d9fdb46SRobert Mustacchi #endif
66*4d9fdb46SRobert Mustacchi #ifndef SHT_RELA
67*4d9fdb46SRobert Mustacchi #define SHT_RELA 4
68*4d9fdb46SRobert Mustacchi #endif
69*4d9fdb46SRobert Mustacchi #ifndef SHT_REL
70*4d9fdb46SRobert Mustacchi #define SHT_REL 9
71*4d9fdb46SRobert Mustacchi #endif
72*4d9fdb46SRobert Mustacchi 
73*4d9fdb46SRobert Mustacchi #ifndef DW_GROUPNUMBER_BASE
74*4d9fdb46SRobert Mustacchi #define DW_GROUPNUMBER_BASE 1
75*4d9fdb46SRobert Mustacchi #endif
76*4d9fdb46SRobert Mustacchi #ifndef DW_GROUPNUMBER_DWO
77*4d9fdb46SRobert Mustacchi #define DW_GROUPNUMBER_DWO  2
78*4d9fdb46SRobert Mustacchi #endif
79*4d9fdb46SRobert Mustacchi 
80*4d9fdb46SRobert Mustacchi #ifndef SHF_GROUP
81*4d9fdb46SRobert Mustacchi #define SHF_GROUP  (1 << 9)
82*4d9fdb46SRobert Mustacchi #endif /* SHF_GROUP */
83*4d9fdb46SRobert Mustacchi 
84*4d9fdb46SRobert Mustacchi #ifndef STN_UNDEF
85*4d9fdb46SRobert Mustacchi #define STN_UNDEF  0
86*4d9fdb46SRobert Mustacchi #endif /* STN_UNDEF */
87*4d9fdb46SRobert Mustacchi 
88*4d9fdb46SRobert Mustacchi #ifndef SHT_HASH
89*4d9fdb46SRobert Mustacchi #define SHT_HASH 5
90*4d9fdb46SRobert Mustacchi #endif
91*4d9fdb46SRobert Mustacchi #ifndef SHT_DYNAMIC
92*4d9fdb46SRobert Mustacchi #define SHT_DYNAMIC 6
93*4d9fdb46SRobert Mustacchi #endif
94*4d9fdb46SRobert Mustacchi #ifndef SHT_NOTE
95*4d9fdb46SRobert Mustacchi #define SHT_NOTE 7
96*4d9fdb46SRobert Mustacchi #endif
97*4d9fdb46SRobert Mustacchi #ifndef SHT_NOBITS
98*4d9fdb46SRobert Mustacchi #define SHT_NOBITS 8
99*4d9fdb46SRobert Mustacchi #endif
100*4d9fdb46SRobert Mustacchi #ifndef SHT_REL
101*4d9fdb46SRobert Mustacchi #define SHT_REL  9
102*4d9fdb46SRobert Mustacchi #endif
103*4d9fdb46SRobert Mustacchi #ifndef SHT_SHLIB
104*4d9fdb46SRobert Mustacchi #define SHT_SHLIB 10
105*4d9fdb46SRobert Mustacchi #endif
106*4d9fdb46SRobert Mustacchi #ifndef SHT_DYNSYM
107*4d9fdb46SRobert Mustacchi #define SHT_DYNSYM 11
108*4d9fdb46SRobert Mustacchi #endif
109*4d9fdb46SRobert Mustacchi #ifndef SHT_GROUP
110*4d9fdb46SRobert Mustacchi #define SHT_GROUP  17
111*4d9fdb46SRobert Mustacchi #endif /* SHT_GROUP */
112*4d9fdb46SRobert Mustacchi 
113*4d9fdb46SRobert Mustacchi /* Symbol Types, Elf standard. */
114*4d9fdb46SRobert Mustacchi #define STT_NOTYPE  0
115*4d9fdb46SRobert Mustacchi #define STT_OBJECT  1
116*4d9fdb46SRobert Mustacchi #define STT_FUNC    2
117*4d9fdb46SRobert Mustacchi #define STT_SECTION 3
118*4d9fdb46SRobert Mustacchi #define STT_FILE    4
119*4d9fdb46SRobert Mustacchi 
120*4d9fdb46SRobert Mustacchi #ifndef PT_NULL
121*4d9fdb46SRobert Mustacchi #define PT_NULL 0
122*4d9fdb46SRobert Mustacchi #endif
123*4d9fdb46SRobert Mustacchi #ifndef PT_LOAD
124*4d9fdb46SRobert Mustacchi #define PT_LOAD 1
125*4d9fdb46SRobert Mustacchi #endif
126*4d9fdb46SRobert Mustacchi #ifndef PT_DYNAMIC
127*4d9fdb46SRobert Mustacchi #define PT_DYNAMIC 2
128*4d9fdb46SRobert Mustacchi #endif
129*4d9fdb46SRobert Mustacchi #ifndef PT_INTERP
130*4d9fdb46SRobert Mustacchi #define PT_INTERP 3
131*4d9fdb46SRobert Mustacchi #endif
132*4d9fdb46SRobert Mustacchi #ifndef PT_NOTE
133*4d9fdb46SRobert Mustacchi #define PT_NOTE 4
134*4d9fdb46SRobert Mustacchi #endif
135*4d9fdb46SRobert Mustacchi #ifndef PT_SHLIB
136*4d9fdb46SRobert Mustacchi #define PT_SHLIB 5
137*4d9fdb46SRobert Mustacchi #endif
138*4d9fdb46SRobert Mustacchi #ifndef PT_PHDR
139*4d9fdb46SRobert Mustacchi #define PT_PHDR 6
140*4d9fdb46SRobert Mustacchi #endif
141*4d9fdb46SRobert Mustacchi #ifndef PT_LOPROC
142*4d9fdb46SRobert Mustacchi #define PT_LOPROC 0x70000000
143*4d9fdb46SRobert Mustacchi #endif
144*4d9fdb46SRobert Mustacchi #ifndef PT_HIPROC
145*4d9fdb46SRobert Mustacchi #define PT_HIPROC 0x7fffffff
146*4d9fdb46SRobert Mustacchi #endif
147*4d9fdb46SRobert Mustacchi 
148*4d9fdb46SRobert Mustacchi #ifndef PF_X
149*4d9fdb46SRobert Mustacchi #define PF_X            (1 << 0)
150*4d9fdb46SRobert Mustacchi #endif
151*4d9fdb46SRobert Mustacchi #ifndef PF_W
152*4d9fdb46SRobert Mustacchi #define PF_W            (1 << 1)
153*4d9fdb46SRobert Mustacchi #endif
154*4d9fdb46SRobert Mustacchi #ifndef PF_R
155*4d9fdb46SRobert Mustacchi #define PF_R            (1 << 2)
156*4d9fdb46SRobert Mustacchi #endif
157*4d9fdb46SRobert Mustacchi #ifndef PF_MASKOS
158*4d9fdb46SRobert Mustacchi #define PF_MASKOS       0x0ff00000
159*4d9fdb46SRobert Mustacchi #endif
160*4d9fdb46SRobert Mustacchi #ifndef PF_MASKPROC
161*4d9fdb46SRobert Mustacchi #define PF_MASKPROC     0xf0000000
162*4d9fdb46SRobert Mustacchi #endif
163*4d9fdb46SRobert Mustacchi 
164*4d9fdb46SRobert Mustacchi 
165*4d9fdb46SRobert Mustacchi #ifndef ET_NONE
166*4d9fdb46SRobert Mustacchi #define ET_NONE          0
167*4d9fdb46SRobert Mustacchi #endif
168*4d9fdb46SRobert Mustacchi #ifndef ET_REL
169*4d9fdb46SRobert Mustacchi #define ET_REL           1
170*4d9fdb46SRobert Mustacchi #endif
171*4d9fdb46SRobert Mustacchi #ifndef ET_EXEC
172*4d9fdb46SRobert Mustacchi #define ET_EXEC          2
173*4d9fdb46SRobert Mustacchi #endif
174*4d9fdb46SRobert Mustacchi #ifndef ET_DYN
175*4d9fdb46SRobert Mustacchi #define ET_DYN           3
176*4d9fdb46SRobert Mustacchi #endif
177*4d9fdb46SRobert Mustacchi #ifndef ET_CORE
178*4d9fdb46SRobert Mustacchi #define ET_CORE          4
179*4d9fdb46SRobert Mustacchi #endif
180*4d9fdb46SRobert Mustacchi #ifndef ET_NUM
181*4d9fdb46SRobert Mustacchi #define ET_NUM           5
182*4d9fdb46SRobert Mustacchi #endif
183*4d9fdb46SRobert Mustacchi #ifndef ET_LOOS
184*4d9fdb46SRobert Mustacchi #define ET_LOOS          0xfe00
185*4d9fdb46SRobert Mustacchi #endif
186*4d9fdb46SRobert Mustacchi #ifndef ET_HIOS
187*4d9fdb46SRobert Mustacchi #define ET_HIOS          0xfeff
188*4d9fdb46SRobert Mustacchi #endif
189*4d9fdb46SRobert Mustacchi #ifndef ET_LOPROC
190*4d9fdb46SRobert Mustacchi #define ET_LOPROC        0xff00
191*4d9fdb46SRobert Mustacchi #endif
192*4d9fdb46SRobert Mustacchi #ifndef ET_HIPROC
193*4d9fdb46SRobert Mustacchi #define ET_HIPROC        0xffff
194*4d9fdb46SRobert Mustacchi #endif
195*4d9fdb46SRobert Mustacchi 
196*4d9fdb46SRobert Mustacchi 
197*4d9fdb46SRobert Mustacchi #ifndef EM_NONE
198*4d9fdb46SRobert Mustacchi #define EM_NONE          0
199*4d9fdb46SRobert Mustacchi #endif
200*4d9fdb46SRobert Mustacchi #ifndef EM_M32
201*4d9fdb46SRobert Mustacchi #define EM_M32           1
202*4d9fdb46SRobert Mustacchi #endif
203*4d9fdb46SRobert Mustacchi #ifndef EM_SPARC
204*4d9fdb46SRobert Mustacchi #define EM_SPARC         2
205*4d9fdb46SRobert Mustacchi #endif
206*4d9fdb46SRobert Mustacchi #ifndef EM_386
207*4d9fdb46SRobert Mustacchi #define EM_386           3
208*4d9fdb46SRobert Mustacchi #endif
209*4d9fdb46SRobert Mustacchi #ifndef EM_68K
210*4d9fdb46SRobert Mustacchi #define EM_68K           4
211*4d9fdb46SRobert Mustacchi #endif
212*4d9fdb46SRobert Mustacchi #ifndef EM_88K
213*4d9fdb46SRobert Mustacchi #define EM_88K           5
214*4d9fdb46SRobert Mustacchi #endif
215*4d9fdb46SRobert Mustacchi #ifndef EM_IAMCU
216*4d9fdb46SRobert Mustacchi #define EM_IAMCU         6
217*4d9fdb46SRobert Mustacchi #endif
218*4d9fdb46SRobert Mustacchi #ifndef EM_860
219*4d9fdb46SRobert Mustacchi #define EM_860           7
220*4d9fdb46SRobert Mustacchi #endif
221*4d9fdb46SRobert Mustacchi #ifndef EM_MIPS
222*4d9fdb46SRobert Mustacchi #define EM_MIPS          8
223*4d9fdb46SRobert Mustacchi #endif
224*4d9fdb46SRobert Mustacchi #ifndef EM_S370
225*4d9fdb46SRobert Mustacchi #define EM_S370          9
226*4d9fdb46SRobert Mustacchi #endif
227*4d9fdb46SRobert Mustacchi #ifndef EM_MIPS_RS3_LE
228*4d9fdb46SRobert Mustacchi #define EM_MIPS_RS3_LE   10
229*4d9fdb46SRobert Mustacchi #endif
230*4d9fdb46SRobert Mustacchi #ifndef EM_PARISC
231*4d9fdb46SRobert Mustacchi #define EM_PARISC        15
232*4d9fdb46SRobert Mustacchi #endif
233*4d9fdb46SRobert Mustacchi #ifndef EM_VPP500
234*4d9fdb46SRobert Mustacchi #define EM_VPP500        17
235*4d9fdb46SRobert Mustacchi #endif
236*4d9fdb46SRobert Mustacchi #ifndef EM_SPARC32PLUS
237*4d9fdb46SRobert Mustacchi #define EM_SPARC32PLUS   18
238*4d9fdb46SRobert Mustacchi #endif
239*4d9fdb46SRobert Mustacchi #ifndef EM_960
240*4d9fdb46SRobert Mustacchi #define EM_960           19
241*4d9fdb46SRobert Mustacchi #endif
242*4d9fdb46SRobert Mustacchi #ifndef EM_PPC
243*4d9fdb46SRobert Mustacchi #define EM_PPC           20
244*4d9fdb46SRobert Mustacchi #endif
245*4d9fdb46SRobert Mustacchi #ifndef EM_PPC64
246*4d9fdb46SRobert Mustacchi #define EM_PPC64         21
247*4d9fdb46SRobert Mustacchi #endif
248*4d9fdb46SRobert Mustacchi #ifndef EM_S390
249*4d9fdb46SRobert Mustacchi #define EM_S390          22
250*4d9fdb46SRobert Mustacchi #endif
251*4d9fdb46SRobert Mustacchi #ifndef EM_SPU
252*4d9fdb46SRobert Mustacchi #define EM_SPU           23
253*4d9fdb46SRobert Mustacchi #endif
254*4d9fdb46SRobert Mustacchi #ifndef EM_V800
255*4d9fdb46SRobert Mustacchi #define EM_V800          36
256*4d9fdb46SRobert Mustacchi #endif
257*4d9fdb46SRobert Mustacchi #ifndef EM_FR20
258*4d9fdb46SRobert Mustacchi #define EM_FR20          37
259*4d9fdb46SRobert Mustacchi #endif
260*4d9fdb46SRobert Mustacchi #ifndef EM_RH32
261*4d9fdb46SRobert Mustacchi #define EM_RH32          38
262*4d9fdb46SRobert Mustacchi #endif
263*4d9fdb46SRobert Mustacchi #ifndef EM_RCE
264*4d9fdb46SRobert Mustacchi #define EM_RCE           39
265*4d9fdb46SRobert Mustacchi #endif
266*4d9fdb46SRobert Mustacchi #ifndef EM_ARM
267*4d9fdb46SRobert Mustacchi #define EM_ARM           40
268*4d9fdb46SRobert Mustacchi #endif
269*4d9fdb46SRobert Mustacchi #ifndef EM_FAKE_ALPHA
270*4d9fdb46SRobert Mustacchi #define EM_FAKE_ALPHA    41
271*4d9fdb46SRobert Mustacchi #endif
272*4d9fdb46SRobert Mustacchi #ifndef EM_SH
273*4d9fdb46SRobert Mustacchi #define EM_SH            42
274*4d9fdb46SRobert Mustacchi #endif
275*4d9fdb46SRobert Mustacchi #ifndef EM_SPARCV9
276*4d9fdb46SRobert Mustacchi #define EM_SPARCV9       43
277*4d9fdb46SRobert Mustacchi #endif
278*4d9fdb46SRobert Mustacchi #ifndef EM_TRICORE
279*4d9fdb46SRobert Mustacchi #define EM_TRICORE       44
280*4d9fdb46SRobert Mustacchi #endif
281*4d9fdb46SRobert Mustacchi #ifndef EM_ARC
282*4d9fdb46SRobert Mustacchi #define EM_ARC           45
283*4d9fdb46SRobert Mustacchi #endif
284*4d9fdb46SRobert Mustacchi #ifndef EM_H8_300
285*4d9fdb46SRobert Mustacchi #define EM_H8_300        46
286*4d9fdb46SRobert Mustacchi #endif
287*4d9fdb46SRobert Mustacchi #ifndef EM_H8_300H
288*4d9fdb46SRobert Mustacchi #define EM_H8_300H       47
289*4d9fdb46SRobert Mustacchi #endif
290*4d9fdb46SRobert Mustacchi #ifndef EM_H8S
291*4d9fdb46SRobert Mustacchi #define EM_H8S           48
292*4d9fdb46SRobert Mustacchi #endif
293*4d9fdb46SRobert Mustacchi #ifndef EM_H8_500
294*4d9fdb46SRobert Mustacchi #define EM_H8_500        49
295*4d9fdb46SRobert Mustacchi #endif
296*4d9fdb46SRobert Mustacchi #ifndef EM_IA_64
297*4d9fdb46SRobert Mustacchi #define EM_IA_64         50
298*4d9fdb46SRobert Mustacchi #endif
299*4d9fdb46SRobert Mustacchi #ifndef EM_MIPS_X
300*4d9fdb46SRobert Mustacchi #define EM_MIPS_X        51
301*4d9fdb46SRobert Mustacchi #endif
302*4d9fdb46SRobert Mustacchi #ifndef EM_COLDFIRE
303*4d9fdb46SRobert Mustacchi #define EM_COLDFIRE      52
304*4d9fdb46SRobert Mustacchi #endif
305*4d9fdb46SRobert Mustacchi #ifndef EM_68HC12
306*4d9fdb46SRobert Mustacchi #define EM_68HC12        53
307*4d9fdb46SRobert Mustacchi #endif
308*4d9fdb46SRobert Mustacchi #ifndef EM_MMA
309*4d9fdb46SRobert Mustacchi #define EM_MMA           54
310*4d9fdb46SRobert Mustacchi #endif
311*4d9fdb46SRobert Mustacchi #ifndef EM_PCP
312*4d9fdb46SRobert Mustacchi #define EM_PCP           55
313*4d9fdb46SRobert Mustacchi #endif
314*4d9fdb46SRobert Mustacchi #ifndef EM_NCPU
315*4d9fdb46SRobert Mustacchi #define EM_NCPU          56
316*4d9fdb46SRobert Mustacchi #endif
317*4d9fdb46SRobert Mustacchi #ifndef EM_NDR1
318*4d9fdb46SRobert Mustacchi #define EM_NDR1          57
319*4d9fdb46SRobert Mustacchi #endif
320*4d9fdb46SRobert Mustacchi #ifndef EM_STARCORE
321*4d9fdb46SRobert Mustacchi #define EM_STARCORE      58
322*4d9fdb46SRobert Mustacchi #endif
323*4d9fdb46SRobert Mustacchi #ifndef EM_ME16
324*4d9fdb46SRobert Mustacchi #define EM_ME16          59
325*4d9fdb46SRobert Mustacchi #endif
326*4d9fdb46SRobert Mustacchi #ifndef EM_ST100
327*4d9fdb46SRobert Mustacchi #define EM_ST100         60
328*4d9fdb46SRobert Mustacchi #endif
329*4d9fdb46SRobert Mustacchi #ifndef EM_TINYJ
330*4d9fdb46SRobert Mustacchi #define EM_TINYJ         61
331*4d9fdb46SRobert Mustacchi #endif
332*4d9fdb46SRobert Mustacchi #ifndef EM_X86_64
333*4d9fdb46SRobert Mustacchi #define EM_X86_64        62
334*4d9fdb46SRobert Mustacchi #endif
335*4d9fdb46SRobert Mustacchi #ifndef EM_PDSP
336*4d9fdb46SRobert Mustacchi #define EM_PDSP          63
337*4d9fdb46SRobert Mustacchi #endif
338*4d9fdb46SRobert Mustacchi #ifndef EM_PDP10
339*4d9fdb46SRobert Mustacchi #define EM_PDP10         64
340*4d9fdb46SRobert Mustacchi #endif
341*4d9fdb46SRobert Mustacchi #ifndef EM_PDP11
342*4d9fdb46SRobert Mustacchi #define EM_PDP11         65
343*4d9fdb46SRobert Mustacchi #endif
344*4d9fdb46SRobert Mustacchi #ifndef EM_FX66
345*4d9fdb46SRobert Mustacchi #define EM_FX66          66
346*4d9fdb46SRobert Mustacchi #endif
347*4d9fdb46SRobert Mustacchi #ifndef EM_ST9PLUS
348*4d9fdb46SRobert Mustacchi #define EM_ST9PLUS       67
349*4d9fdb46SRobert Mustacchi #endif
350*4d9fdb46SRobert Mustacchi #ifndef EM_ST7
351*4d9fdb46SRobert Mustacchi #define EM_ST7           68
352*4d9fdb46SRobert Mustacchi #endif
353*4d9fdb46SRobert Mustacchi #ifndef EM_68HC16
354*4d9fdb46SRobert Mustacchi #define EM_68HC16        69
355*4d9fdb46SRobert Mustacchi #endif
356*4d9fdb46SRobert Mustacchi #ifndef EM_68HC11
357*4d9fdb46SRobert Mustacchi #define EM_68HC11        70
358*4d9fdb46SRobert Mustacchi #endif
359*4d9fdb46SRobert Mustacchi #ifndef EM_68HC08
360*4d9fdb46SRobert Mustacchi #define EM_68HC08        71
361*4d9fdb46SRobert Mustacchi #endif
362*4d9fdb46SRobert Mustacchi #ifndef EM_68HC05
363*4d9fdb46SRobert Mustacchi #define EM_68HC05        72
364*4d9fdb46SRobert Mustacchi #endif
365*4d9fdb46SRobert Mustacchi #ifndef EM_SVX
366*4d9fdb46SRobert Mustacchi #define EM_SVX           73
367*4d9fdb46SRobert Mustacchi #endif
368*4d9fdb46SRobert Mustacchi #ifndef EM_ST19
369*4d9fdb46SRobert Mustacchi #define EM_ST19          74
370*4d9fdb46SRobert Mustacchi #endif
371*4d9fdb46SRobert Mustacchi #ifndef EM_VAX
372*4d9fdb46SRobert Mustacchi #define EM_VAX           75
373*4d9fdb46SRobert Mustacchi #endif
374*4d9fdb46SRobert Mustacchi #ifndef EM_CRIS
375*4d9fdb46SRobert Mustacchi #define EM_CRIS          76
376*4d9fdb46SRobert Mustacchi #endif
377*4d9fdb46SRobert Mustacchi #ifndef EM_JAVELIN
378*4d9fdb46SRobert Mustacchi #define EM_JAVELIN       77
379*4d9fdb46SRobert Mustacchi #endif
380*4d9fdb46SRobert Mustacchi #ifndef EM_FIREPATH
381*4d9fdb46SRobert Mustacchi #define EM_FIREPATH      78
382*4d9fdb46SRobert Mustacchi #endif
383*4d9fdb46SRobert Mustacchi #ifndef EM_ZSP
384*4d9fdb46SRobert Mustacchi #define EM_ZSP           79
385*4d9fdb46SRobert Mustacchi #endif
386*4d9fdb46SRobert Mustacchi #ifndef EM_MMIX
387*4d9fdb46SRobert Mustacchi #define EM_MMIX          80
388*4d9fdb46SRobert Mustacchi #endif
389*4d9fdb46SRobert Mustacchi #ifndef EM_HUANY
390*4d9fdb46SRobert Mustacchi #define EM_HUANY         81
391*4d9fdb46SRobert Mustacchi #endif
392*4d9fdb46SRobert Mustacchi #ifndef EM_PRISM
393*4d9fdb46SRobert Mustacchi #define EM_PRISM         82
394*4d9fdb46SRobert Mustacchi #endif
395*4d9fdb46SRobert Mustacchi #ifndef EM_AVR
396*4d9fdb46SRobert Mustacchi #define EM_AVR           83
397*4d9fdb46SRobert Mustacchi #endif
398*4d9fdb46SRobert Mustacchi #ifndef EM_FR30
399*4d9fdb46SRobert Mustacchi #define EM_FR30          84
400*4d9fdb46SRobert Mustacchi #endif
401*4d9fdb46SRobert Mustacchi #ifndef EM_D10V
402*4d9fdb46SRobert Mustacchi #define EM_D10V          85
403*4d9fdb46SRobert Mustacchi #endif
404*4d9fdb46SRobert Mustacchi #ifndef EM_D30V
405*4d9fdb46SRobert Mustacchi #define EM_D30V          86
406*4d9fdb46SRobert Mustacchi #endif
407*4d9fdb46SRobert Mustacchi #ifndef EM_V850
408*4d9fdb46SRobert Mustacchi #define EM_V850          87
409*4d9fdb46SRobert Mustacchi #endif
410*4d9fdb46SRobert Mustacchi #ifndef EM_M32R
411*4d9fdb46SRobert Mustacchi #define EM_M32R          88
412*4d9fdb46SRobert Mustacchi #endif
413*4d9fdb46SRobert Mustacchi #ifndef EM_MN10300
414*4d9fdb46SRobert Mustacchi #define EM_MN10300       89
415*4d9fdb46SRobert Mustacchi #endif
416*4d9fdb46SRobert Mustacchi #ifndef EM_MN10200
417*4d9fdb46SRobert Mustacchi #define EM_MN10200       90
418*4d9fdb46SRobert Mustacchi #endif
419*4d9fdb46SRobert Mustacchi #ifndef EM_PJ
420*4d9fdb46SRobert Mustacchi #define EM_PJ            91
421*4d9fdb46SRobert Mustacchi #endif
422*4d9fdb46SRobert Mustacchi #ifndef EM_OPENRISC
423*4d9fdb46SRobert Mustacchi #define EM_OPENRISC      92
424*4d9fdb46SRobert Mustacchi #endif
425*4d9fdb46SRobert Mustacchi #ifndef EM_ARC_COMPACT
426*4d9fdb46SRobert Mustacchi #define EM_ARC_COMPACT   93
427*4d9fdb46SRobert Mustacchi #endif
428*4d9fdb46SRobert Mustacchi #ifndef EM_XTENSA
429*4d9fdb46SRobert Mustacchi #define EM_XTENSA        94
430*4d9fdb46SRobert Mustacchi #endif
431*4d9fdb46SRobert Mustacchi #ifndef EM_VIDEOCORE
432*4d9fdb46SRobert Mustacchi #define EM_VIDEOCORE     95
433*4d9fdb46SRobert Mustacchi #endif
434*4d9fdb46SRobert Mustacchi #ifndef EM_TMM_GPP
435*4d9fdb46SRobert Mustacchi #define EM_TMM_GPP       96
436*4d9fdb46SRobert Mustacchi #endif
437*4d9fdb46SRobert Mustacchi #ifndef EM_NS32K
438*4d9fdb46SRobert Mustacchi #define EM_NS32K         97
439*4d9fdb46SRobert Mustacchi #endif
440*4d9fdb46SRobert Mustacchi #ifndef EM_TPC
441*4d9fdb46SRobert Mustacchi #define EM_TPC           98
442*4d9fdb46SRobert Mustacchi #endif
443*4d9fdb46SRobert Mustacchi #ifndef EM_SNP1K
444*4d9fdb46SRobert Mustacchi #define EM_SNP1K         99
445*4d9fdb46SRobert Mustacchi #endif
446*4d9fdb46SRobert Mustacchi #ifndef EM_ST200
447*4d9fdb46SRobert Mustacchi #define EM_ST200         100
448*4d9fdb46SRobert Mustacchi #endif
449*4d9fdb46SRobert Mustacchi #ifndef EM_IP2K
450*4d9fdb46SRobert Mustacchi #define EM_IP2K          101
451*4d9fdb46SRobert Mustacchi #endif
452*4d9fdb46SRobert Mustacchi #ifndef EM_MAX
453*4d9fdb46SRobert Mustacchi #define EM_MAX           102
454*4d9fdb46SRobert Mustacchi #endif
455*4d9fdb46SRobert Mustacchi #ifndef EM_CR
456*4d9fdb46SRobert Mustacchi #define EM_CR            103
457*4d9fdb46SRobert Mustacchi #endif
458*4d9fdb46SRobert Mustacchi #ifndef EM_F2MC16
459*4d9fdb46SRobert Mustacchi #define EM_F2MC16        104
460*4d9fdb46SRobert Mustacchi #endif
461*4d9fdb46SRobert Mustacchi #ifndef EM_MSP430
462*4d9fdb46SRobert Mustacchi #define EM_MSP430        105
463*4d9fdb46SRobert Mustacchi #endif
464*4d9fdb46SRobert Mustacchi #ifndef EM_BLACKFIN
465*4d9fdb46SRobert Mustacchi #define EM_BLACKFIN      106
466*4d9fdb46SRobert Mustacchi #endif
467*4d9fdb46SRobert Mustacchi #ifndef EM_SE_C33
468*4d9fdb46SRobert Mustacchi #define EM_SE_C33        107
469*4d9fdb46SRobert Mustacchi #endif
470*4d9fdb46SRobert Mustacchi #ifndef EM_SEP
471*4d9fdb46SRobert Mustacchi #define EM_SEP           108
472*4d9fdb46SRobert Mustacchi #endif
473*4d9fdb46SRobert Mustacchi #ifndef EM_ARCA
474*4d9fdb46SRobert Mustacchi #define EM_ARCA          109
475*4d9fdb46SRobert Mustacchi #endif
476*4d9fdb46SRobert Mustacchi #ifndef EM_UNICORE
477*4d9fdb46SRobert Mustacchi #define EM_UNICORE       110
478*4d9fdb46SRobert Mustacchi #endif
479*4d9fdb46SRobert Mustacchi #ifndef EM_EXCESS
480*4d9fdb46SRobert Mustacchi #define EM_EXCESS        111
481*4d9fdb46SRobert Mustacchi #endif
482*4d9fdb46SRobert Mustacchi #ifndef EM_DXP
483*4d9fdb46SRobert Mustacchi #define EM_DXP           112
484*4d9fdb46SRobert Mustacchi #endif
485*4d9fdb46SRobert Mustacchi #ifndef EM_ALTERA_NIOS2
486*4d9fdb46SRobert Mustacchi #define EM_ALTERA_NIOS2  113
487*4d9fdb46SRobert Mustacchi #endif
488*4d9fdb46SRobert Mustacchi #ifndef EM_CRX
489*4d9fdb46SRobert Mustacchi #define EM_CRX           114
490*4d9fdb46SRobert Mustacchi #endif
491*4d9fdb46SRobert Mustacchi #ifndef EM_XGATE
492*4d9fdb46SRobert Mustacchi #define EM_XGATE         115
493*4d9fdb46SRobert Mustacchi #endif
494*4d9fdb46SRobert Mustacchi #ifndef EM_C166
495*4d9fdb46SRobert Mustacchi #define EM_C166          116
496*4d9fdb46SRobert Mustacchi #endif
497*4d9fdb46SRobert Mustacchi #ifndef EM_M16C
498*4d9fdb46SRobert Mustacchi #define EM_M16C          117
499*4d9fdb46SRobert Mustacchi #endif
500*4d9fdb46SRobert Mustacchi #ifndef EM_DSPIC30F
501*4d9fdb46SRobert Mustacchi #define EM_DSPIC30F      118
502*4d9fdb46SRobert Mustacchi #endif
503*4d9fdb46SRobert Mustacchi #ifndef EM_CE
504*4d9fdb46SRobert Mustacchi #define EM_CE            119
505*4d9fdb46SRobert Mustacchi #endif
506*4d9fdb46SRobert Mustacchi #ifndef EM_M32C
507*4d9fdb46SRobert Mustacchi #define EM_M32C          120
508*4d9fdb46SRobert Mustacchi #endif
509*4d9fdb46SRobert Mustacchi #ifndef EM_TSK3000
510*4d9fdb46SRobert Mustacchi #define EM_TSK3000       131
511*4d9fdb46SRobert Mustacchi #endif
512*4d9fdb46SRobert Mustacchi #ifndef EM_RS08
513*4d9fdb46SRobert Mustacchi #define EM_RS08          132
514*4d9fdb46SRobert Mustacchi #endif
515*4d9fdb46SRobert Mustacchi #ifndef EM_SHARC
516*4d9fdb46SRobert Mustacchi #define EM_SHARC         133
517*4d9fdb46SRobert Mustacchi #endif
518*4d9fdb46SRobert Mustacchi #ifndef EM_ECOG2
519*4d9fdb46SRobert Mustacchi #define EM_ECOG2         134
520*4d9fdb46SRobert Mustacchi #endif
521*4d9fdb46SRobert Mustacchi #ifndef EM_SCORE7
522*4d9fdb46SRobert Mustacchi #define EM_SCORE7        135
523*4d9fdb46SRobert Mustacchi #endif
524*4d9fdb46SRobert Mustacchi #ifndef EM_DSP24
525*4d9fdb46SRobert Mustacchi #define EM_DSP24         136
526*4d9fdb46SRobert Mustacchi #endif
527*4d9fdb46SRobert Mustacchi #ifndef EM_VIDEOCORE3
528*4d9fdb46SRobert Mustacchi #define EM_VIDEOCORE3    137
529*4d9fdb46SRobert Mustacchi #endif
530*4d9fdb46SRobert Mustacchi #ifndef EM_LATTICEMICO32
531*4d9fdb46SRobert Mustacchi #define EM_LATTICEMICO32 138
532*4d9fdb46SRobert Mustacchi #endif
533*4d9fdb46SRobert Mustacchi #ifndef EM_SE_C17
534*4d9fdb46SRobert Mustacchi #define EM_SE_C17        139
535*4d9fdb46SRobert Mustacchi #endif
536*4d9fdb46SRobert Mustacchi #ifndef EM_TI_C6000
537*4d9fdb46SRobert Mustacchi #define EM_TI_C6000      140
538*4d9fdb46SRobert Mustacchi #endif
539*4d9fdb46SRobert Mustacchi #ifndef EM_TI_C2000
540*4d9fdb46SRobert Mustacchi #define EM_TI_C2000      141
541*4d9fdb46SRobert Mustacchi #endif
542*4d9fdb46SRobert Mustacchi #ifndef EM_TI_C5500
543*4d9fdb46SRobert Mustacchi #define EM_TI_C5500      142
544*4d9fdb46SRobert Mustacchi #endif
545*4d9fdb46SRobert Mustacchi #ifndef EM_TI_ARP32
546*4d9fdb46SRobert Mustacchi #define EM_TI_ARP32      143
547*4d9fdb46SRobert Mustacchi #endif
548*4d9fdb46SRobert Mustacchi #ifndef EM_TI_PRU
549*4d9fdb46SRobert Mustacchi #define EM_TI_PRU        144
550*4d9fdb46SRobert Mustacchi #endif
551*4d9fdb46SRobert Mustacchi #ifndef EM_MMDSP_PLUS
552*4d9fdb46SRobert Mustacchi #define EM_MMDSP_PLUS    160
553*4d9fdb46SRobert Mustacchi #endif
554*4d9fdb46SRobert Mustacchi #ifndef EM_CYPRESS_M8C
555*4d9fdb46SRobert Mustacchi #define EM_CYPRESS_M8C   161
556*4d9fdb46SRobert Mustacchi #endif
557*4d9fdb46SRobert Mustacchi #ifndef EM_R32C
558*4d9fdb46SRobert Mustacchi #define EM_R32C          162
559*4d9fdb46SRobert Mustacchi #endif
560*4d9fdb46SRobert Mustacchi #ifndef EM_TRIMEDIA
561*4d9fdb46SRobert Mustacchi #define EM_TRIMEDIA      163
562*4d9fdb46SRobert Mustacchi #endif
563*4d9fdb46SRobert Mustacchi #ifndef EM_QDSP6
564*4d9fdb46SRobert Mustacchi #define EM_QDSP6         164
565*4d9fdb46SRobert Mustacchi #endif
566*4d9fdb46SRobert Mustacchi #ifndef EM_QUALCOMM_DSP6
567*4d9fdb46SRobert Mustacchi #define EM_QUALCOMM_DSP6 164
568*4d9fdb46SRobert Mustacchi #endif
569*4d9fdb46SRobert Mustacchi #ifndef EM_8051
570*4d9fdb46SRobert Mustacchi #define EM_8051          165
571*4d9fdb46SRobert Mustacchi #endif
572*4d9fdb46SRobert Mustacchi #ifndef EM_STXP7X
573*4d9fdb46SRobert Mustacchi #define EM_STXP7X        166
574*4d9fdb46SRobert Mustacchi #endif
575*4d9fdb46SRobert Mustacchi #ifndef EM_NDS32
576*4d9fdb46SRobert Mustacchi #define EM_NDS32         167
577*4d9fdb46SRobert Mustacchi #endif
578*4d9fdb46SRobert Mustacchi #ifndef EM_ECOG1X
579*4d9fdb46SRobert Mustacchi #define EM_ECOG1X        168
580*4d9fdb46SRobert Mustacchi #endif
581*4d9fdb46SRobert Mustacchi #ifndef EM_MAXQ30
582*4d9fdb46SRobert Mustacchi #define EM_MAXQ30        169
583*4d9fdb46SRobert Mustacchi #endif
584*4d9fdb46SRobert Mustacchi #ifndef EM_XIMO16
585*4d9fdb46SRobert Mustacchi #define EM_XIMO16        170
586*4d9fdb46SRobert Mustacchi #endif
587*4d9fdb46SRobert Mustacchi #ifndef EM_MANIK
588*4d9fdb46SRobert Mustacchi #define EM_MANIK         171
589*4d9fdb46SRobert Mustacchi #endif
590*4d9fdb46SRobert Mustacchi #ifndef EM_CRAYNV2
591*4d9fdb46SRobert Mustacchi #define EM_CRAYNV2       172
592*4d9fdb46SRobert Mustacchi #endif
593*4d9fdb46SRobert Mustacchi #ifndef EM_RX
594*4d9fdb46SRobert Mustacchi #define EM_RX            173
595*4d9fdb46SRobert Mustacchi #endif
596*4d9fdb46SRobert Mustacchi #ifndef EM_METAG
597*4d9fdb46SRobert Mustacchi #define EM_METAG         174
598*4d9fdb46SRobert Mustacchi #endif
599*4d9fdb46SRobert Mustacchi #ifndef EM_MCST_ELBRUS
600*4d9fdb46SRobert Mustacchi #define EM_MCST_ELBRUS   175
601*4d9fdb46SRobert Mustacchi #endif
602*4d9fdb46SRobert Mustacchi #ifndef EM_ECOG16
603*4d9fdb46SRobert Mustacchi #define EM_ECOG16        176
604*4d9fdb46SRobert Mustacchi #endif
605*4d9fdb46SRobert Mustacchi #ifndef EM_CR16
606*4d9fdb46SRobert Mustacchi #define EM_CR16          177
607*4d9fdb46SRobert Mustacchi #endif
608*4d9fdb46SRobert Mustacchi #ifndef EM_ETPU
609*4d9fdb46SRobert Mustacchi #define EM_ETPU          178
610*4d9fdb46SRobert Mustacchi #endif
611*4d9fdb46SRobert Mustacchi #ifndef EM_SLE9X
612*4d9fdb46SRobert Mustacchi #define EM_SLE9X         179
613*4d9fdb46SRobert Mustacchi #endif
614*4d9fdb46SRobert Mustacchi #ifndef EM_L10M
615*4d9fdb46SRobert Mustacchi #define EM_L10M          180
616*4d9fdb46SRobert Mustacchi #endif
617*4d9fdb46SRobert Mustacchi #ifndef EM_K10M
618*4d9fdb46SRobert Mustacchi #define EM_K10M          181
619*4d9fdb46SRobert Mustacchi #endif
620*4d9fdb46SRobert Mustacchi #ifndef EM_AARCH64
621*4d9fdb46SRobert Mustacchi #define EM_AARCH64       183
622*4d9fdb46SRobert Mustacchi #endif
623*4d9fdb46SRobert Mustacchi #ifndef EM_AVR32
624*4d9fdb46SRobert Mustacchi #define EM_AVR32         185
625*4d9fdb46SRobert Mustacchi #endif
626*4d9fdb46SRobert Mustacchi #ifndef EM_STM8
627*4d9fdb46SRobert Mustacchi #define EM_STM8          186
628*4d9fdb46SRobert Mustacchi #endif
629*4d9fdb46SRobert Mustacchi #ifndef EM_TILE64
630*4d9fdb46SRobert Mustacchi #define EM_TILE64        187
631*4d9fdb46SRobert Mustacchi #endif
632*4d9fdb46SRobert Mustacchi #ifndef EM_TILEPRO
633*4d9fdb46SRobert Mustacchi #define EM_TILEPRO       188
634*4d9fdb46SRobert Mustacchi #endif
635*4d9fdb46SRobert Mustacchi #ifndef EM_MICROBLAZE
636*4d9fdb46SRobert Mustacchi #define EM_MICROBLAZE    189
637*4d9fdb46SRobert Mustacchi #endif
638*4d9fdb46SRobert Mustacchi #ifndef EM_CUDA
639*4d9fdb46SRobert Mustacchi #define EM_CUDA          190
640*4d9fdb46SRobert Mustacchi #endif
641*4d9fdb46SRobert Mustacchi #ifndef EM_TILEGX
642*4d9fdb46SRobert Mustacchi #define EM_TILEGX        191
643*4d9fdb46SRobert Mustacchi #endif
644*4d9fdb46SRobert Mustacchi #ifndef EM_CLOUDSHIELD
645*4d9fdb46SRobert Mustacchi #define EM_CLOUDSHIELD   192
646*4d9fdb46SRobert Mustacchi #endif
647*4d9fdb46SRobert Mustacchi #ifndef EM_COREA_1ST
648*4d9fdb46SRobert Mustacchi #define EM_COREA_1ST     193
649*4d9fdb46SRobert Mustacchi #endif
650*4d9fdb46SRobert Mustacchi #ifndef EM_COREA_2ND
651*4d9fdb46SRobert Mustacchi #define EM_COREA_2ND     194
652*4d9fdb46SRobert Mustacchi #endif
653*4d9fdb46SRobert Mustacchi #ifndef EM_ARC_COMPACT2
654*4d9fdb46SRobert Mustacchi #define EM_ARC_COMPACT2  195
655*4d9fdb46SRobert Mustacchi #endif
656*4d9fdb46SRobert Mustacchi #ifndef EM_OPEN8
657*4d9fdb46SRobert Mustacchi #define EM_OPEN8         196
658*4d9fdb46SRobert Mustacchi #endif
659*4d9fdb46SRobert Mustacchi #ifndef EM_RL78
660*4d9fdb46SRobert Mustacchi #define EM_RL78          197
661*4d9fdb46SRobert Mustacchi #endif
662*4d9fdb46SRobert Mustacchi #ifndef EM_VIDEOCORE5
663*4d9fdb46SRobert Mustacchi #define EM_VIDEOCORE5    198
664*4d9fdb46SRobert Mustacchi #endif
665*4d9fdb46SRobert Mustacchi #ifndef EM_78KOR
666*4d9fdb46SRobert Mustacchi #define EM_78KOR         199
667*4d9fdb46SRobert Mustacchi #endif
668*4d9fdb46SRobert Mustacchi #ifndef EM_56800EX
669*4d9fdb46SRobert Mustacchi #define EM_56800EX       200
670*4d9fdb46SRobert Mustacchi #endif
671*4d9fdb46SRobert Mustacchi #ifndef EM_BA1
672*4d9fdb46SRobert Mustacchi #define EM_BA1           201
673*4d9fdb46SRobert Mustacchi #endif
674*4d9fdb46SRobert Mustacchi #ifndef EM_BA2
675*4d9fdb46SRobert Mustacchi #define EM_BA2           202
676*4d9fdb46SRobert Mustacchi #endif
677*4d9fdb46SRobert Mustacchi #ifndef EM_XCORE
678*4d9fdb46SRobert Mustacchi #define EM_XCORE         203
679*4d9fdb46SRobert Mustacchi #endif
680*4d9fdb46SRobert Mustacchi #ifndef EM_MCHP_PIC
681*4d9fdb46SRobert Mustacchi #define EM_MCHP_PIC      204
682*4d9fdb46SRobert Mustacchi #endif
683*4d9fdb46SRobert Mustacchi #ifndef EM_KM32
684*4d9fdb46SRobert Mustacchi #define EM_KM32          210
685*4d9fdb46SRobert Mustacchi #endif
686*4d9fdb46SRobert Mustacchi #ifndef EM_KMX32
687*4d9fdb46SRobert Mustacchi #define EM_KMX32         211
688*4d9fdb46SRobert Mustacchi #endif
689*4d9fdb46SRobert Mustacchi #ifndef EM_EMX16
690*4d9fdb46SRobert Mustacchi #define EM_EMX16         212
691*4d9fdb46SRobert Mustacchi #endif
692*4d9fdb46SRobert Mustacchi #ifndef EM_EMX8
693*4d9fdb46SRobert Mustacchi #define EM_EMX8          213
694*4d9fdb46SRobert Mustacchi #endif
695*4d9fdb46SRobert Mustacchi #ifndef EM_KVARC
696*4d9fdb46SRobert Mustacchi #define EM_KVARC         214
697*4d9fdb46SRobert Mustacchi #endif
698*4d9fdb46SRobert Mustacchi #ifndef EM_CDP
699*4d9fdb46SRobert Mustacchi #define EM_CDP           215
700*4d9fdb46SRobert Mustacchi #endif
701*4d9fdb46SRobert Mustacchi #ifndef EM_COGE
702*4d9fdb46SRobert Mustacchi #define EM_COGE          216
703*4d9fdb46SRobert Mustacchi #endif
704*4d9fdb46SRobert Mustacchi #ifndef EM_COOL
705*4d9fdb46SRobert Mustacchi #define EM_COOL          217
706*4d9fdb46SRobert Mustacchi #endif
707*4d9fdb46SRobert Mustacchi #ifndef EM_NORC
708*4d9fdb46SRobert Mustacchi #define EM_NORC          218
709*4d9fdb46SRobert Mustacchi #endif
710*4d9fdb46SRobert Mustacchi #ifndef EM_CSR_KALIMBA
711*4d9fdb46SRobert Mustacchi #define EM_CSR_KALIMBA   219
712*4d9fdb46SRobert Mustacchi #endif
713*4d9fdb46SRobert Mustacchi #ifndef EM_Z80
714*4d9fdb46SRobert Mustacchi #define EM_Z80           220
715*4d9fdb46SRobert Mustacchi #endif
716*4d9fdb46SRobert Mustacchi #ifndef EM_VISIUM
717*4d9fdb46SRobert Mustacchi #define EM_VISIUM        221
718*4d9fdb46SRobert Mustacchi #endif
719*4d9fdb46SRobert Mustacchi #ifndef EM_FT32
720*4d9fdb46SRobert Mustacchi #define EM_FT32          222
721*4d9fdb46SRobert Mustacchi #endif
722*4d9fdb46SRobert Mustacchi #ifndef EM_MOXIE
723*4d9fdb46SRobert Mustacchi #define EM_MOXIE         223
724*4d9fdb46SRobert Mustacchi #endif
725*4d9fdb46SRobert Mustacchi #ifndef EM_AMDGPU
726*4d9fdb46SRobert Mustacchi #define EM_AMDGPU        224
727*4d9fdb46SRobert Mustacchi #endif
728*4d9fdb46SRobert Mustacchi #ifndef EM_RISCV
729*4d9fdb46SRobert Mustacchi #define EM_RISCV         243
730*4d9fdb46SRobert Mustacchi #endif
731*4d9fdb46SRobert Mustacchi #ifndef EM_BPF
732*4d9fdb46SRobert Mustacchi #define EM_BPF           247
733*4d9fdb46SRobert Mustacchi #endif
734*4d9fdb46SRobert Mustacchi 
735*4d9fdb46SRobert Mustacchi /* Standard Elf dynamic tags. */
736*4d9fdb46SRobert Mustacchi #ifndef DT_NULL
737*4d9fdb46SRobert Mustacchi #define DT_NULL 0
738*4d9fdb46SRobert Mustacchi #endif
739*4d9fdb46SRobert Mustacchi #ifndef DT_NEEDED
740*4d9fdb46SRobert Mustacchi #define DT_NEEDED 1
741*4d9fdb46SRobert Mustacchi #endif
742*4d9fdb46SRobert Mustacchi #ifndef DT_PLTRELSZ
743*4d9fdb46SRobert Mustacchi #define DT_PLTRELSZ 2
744*4d9fdb46SRobert Mustacchi #endif
745*4d9fdb46SRobert Mustacchi #ifndef DT_PLTGOT
746*4d9fdb46SRobert Mustacchi #define DT_PLTGOT 3
747*4d9fdb46SRobert Mustacchi #endif
748*4d9fdb46SRobert Mustacchi #ifndef DT_HASH
749*4d9fdb46SRobert Mustacchi #define DT_HASH 4
750*4d9fdb46SRobert Mustacchi #endif
751*4d9fdb46SRobert Mustacchi #ifndef DT_STRTAB
752*4d9fdb46SRobert Mustacchi #define DT_STRTAB 5
753*4d9fdb46SRobert Mustacchi #endif
754*4d9fdb46SRobert Mustacchi #ifndef DT_SYMTAB
755*4d9fdb46SRobert Mustacchi #define DT_SYMTAB 6
756*4d9fdb46SRobert Mustacchi #endif
757*4d9fdb46SRobert Mustacchi #ifndef DT_RELA
758*4d9fdb46SRobert Mustacchi #define DT_RELA 7
759*4d9fdb46SRobert Mustacchi #endif
760*4d9fdb46SRobert Mustacchi #ifndef DT_REL
761*4d9fdb46SRobert Mustacchi #define DT_REL 17
762*4d9fdb46SRobert Mustacchi #endif
763*4d9fdb46SRobert Mustacchi #ifndef DT_RELASZ
764*4d9fdb46SRobert Mustacchi #define DT_RELASZ 8
765*4d9fdb46SRobert Mustacchi #endif
766*4d9fdb46SRobert Mustacchi #ifndef DT_RELAENT
767*4d9fdb46SRobert Mustacchi #define DT_RELAENT 9
768*4d9fdb46SRobert Mustacchi #endif
769*4d9fdb46SRobert Mustacchi #ifndef DT_STRSZ
770*4d9fdb46SRobert Mustacchi #define DT_STRSZ  10
771*4d9fdb46SRobert Mustacchi #endif
772*4d9fdb46SRobert Mustacchi 
773*4d9fdb46SRobert Mustacchi #ifndef DT_SYMENT
774*4d9fdb46SRobert Mustacchi #define DT_SYMENT 11
775*4d9fdb46SRobert Mustacchi #endif
776*4d9fdb46SRobert Mustacchi 
777*4d9fdb46SRobert Mustacchi #ifndef DT_INIT
778*4d9fdb46SRobert Mustacchi #define DT_INIT 12
779*4d9fdb46SRobert Mustacchi #endif
780*4d9fdb46SRobert Mustacchi 
781*4d9fdb46SRobert Mustacchi #ifndef DT_FINI
782*4d9fdb46SRobert Mustacchi #define DT_FINI 13
783*4d9fdb46SRobert Mustacchi #endif
784*4d9fdb46SRobert Mustacchi 
785*4d9fdb46SRobert Mustacchi #ifndef DT_SONAME
786*4d9fdb46SRobert Mustacchi #define DT_SONAME 14
787*4d9fdb46SRobert Mustacchi #endif
788*4d9fdb46SRobert Mustacchi 
789*4d9fdb46SRobert Mustacchi #ifndef DT_RPATH
790*4d9fdb46SRobert Mustacchi #define DT_RPATH 15
791*4d9fdb46SRobert Mustacchi #endif
792*4d9fdb46SRobert Mustacchi 
793*4d9fdb46SRobert Mustacchi #ifndef DT_SYMBOLIC
794*4d9fdb46SRobert Mustacchi #define DT_SYMBOLIC 16
795*4d9fdb46SRobert Mustacchi #endif
796*4d9fdb46SRobert Mustacchi 
797*4d9fdb46SRobert Mustacchi #ifndef DT_REL
798*4d9fdb46SRobert Mustacchi #define DT_REL 17
799*4d9fdb46SRobert Mustacchi #endif
800*4d9fdb46SRobert Mustacchi #ifndef DT_RELSZ
801*4d9fdb46SRobert Mustacchi #define DT_RELSZ 18
802*4d9fdb46SRobert Mustacchi #endif
803*4d9fdb46SRobert Mustacchi 
804*4d9fdb46SRobert Mustacchi #ifndef DT_RELENT
805*4d9fdb46SRobert Mustacchi #define DT_RELENT 19
806*4d9fdb46SRobert Mustacchi #endif
807*4d9fdb46SRobert Mustacchi 
808*4d9fdb46SRobert Mustacchi #ifndef DT_PLTREL
809*4d9fdb46SRobert Mustacchi #define DT_PLTREL 20
810*4d9fdb46SRobert Mustacchi #endif
811*4d9fdb46SRobert Mustacchi 
812*4d9fdb46SRobert Mustacchi #ifndef DT_DEBUG
813*4d9fdb46SRobert Mustacchi #define DT_DEBUG 21
814*4d9fdb46SRobert Mustacchi #endif
815*4d9fdb46SRobert Mustacchi 
816*4d9fdb46SRobert Mustacchi #ifndef DT_TEXTREL
817*4d9fdb46SRobert Mustacchi #define DT_TEXTREL 22
818*4d9fdb46SRobert Mustacchi #endif
819*4d9fdb46SRobert Mustacchi 
820*4d9fdb46SRobert Mustacchi #ifndef DT_JMPREL
821*4d9fdb46SRobert Mustacchi #define DT_JMPREL 23
822*4d9fdb46SRobert Mustacchi #endif
823*4d9fdb46SRobert Mustacchi 
824*4d9fdb46SRobert Mustacchi #ifndef SHN_UNDEF
825*4d9fdb46SRobert Mustacchi #define SHN_UNDEF 0
826*4d9fdb46SRobert Mustacchi #endif
827*4d9fdb46SRobert Mustacchi #ifndef SHN_LORESERVE
828*4d9fdb46SRobert Mustacchi #define SHN_LORESERVE 0xff00
829*4d9fdb46SRobert Mustacchi #endif
830*4d9fdb46SRobert Mustacchi #ifndef SHN_LOPROC
831*4d9fdb46SRobert Mustacchi #define SHN_LOPROC 0xff00
832*4d9fdb46SRobert Mustacchi #endif
833*4d9fdb46SRobert Mustacchi #ifndef SHN_HIPROC
834*4d9fdb46SRobert Mustacchi #define SHN_HIPROC 0xff1f
835*4d9fdb46SRobert Mustacchi #endif
836*4d9fdb46SRobert Mustacchi #ifndef SHN_ABS
837*4d9fdb46SRobert Mustacchi #define SHN_ABS 0xfff1
838*4d9fdb46SRobert Mustacchi #endif
839*4d9fdb46SRobert Mustacchi #ifndef SHN_COMMON
840*4d9fdb46SRobert Mustacchi #define SHN_COMMON 0xfff2
841*4d9fdb46SRobert Mustacchi #endif
842*4d9fdb46SRobert Mustacchi #ifndef SHN_HIRESERVE
843*4d9fdb46SRobert Mustacchi #define SHN_HIRESERVE 0xffff
844*4d9fdb46SRobert Mustacchi #endif
845*4d9fdb46SRobert Mustacchi 
846*4d9fdb46SRobert Mustacchi #ifndef EV_CURRENT
847*4d9fdb46SRobert Mustacchi #define EV_CURRENT       1
848*4d9fdb46SRobert Mustacchi #endif
849*4d9fdb46SRobert Mustacchi #ifndef EV_NONE
850*4d9fdb46SRobert Mustacchi #define EV_NONE          0
851*4d9fdb46SRobert Mustacchi #endif
852*4d9fdb46SRobert Mustacchi 
853*4d9fdb46SRobert Mustacchi #ifndef EI_MAG0
854*4d9fdb46SRobert Mustacchi #define EI_MAG0          0
855*4d9fdb46SRobert Mustacchi #endif
856*4d9fdb46SRobert Mustacchi #ifndef EI_MAG1
857*4d9fdb46SRobert Mustacchi #define EI_MAG1          1
858*4d9fdb46SRobert Mustacchi #endif
859*4d9fdb46SRobert Mustacchi #ifndef EI_MAG2
860*4d9fdb46SRobert Mustacchi #define EI_MAG2          2
861*4d9fdb46SRobert Mustacchi #endif
862*4d9fdb46SRobert Mustacchi #ifndef EI_MAG3
863*4d9fdb46SRobert Mustacchi #define EI_MAG3          3
864*4d9fdb46SRobert Mustacchi #endif
865*4d9fdb46SRobert Mustacchi #ifndef EI_CLASS
866*4d9fdb46SRobert Mustacchi #define EI_CLASS         4
867*4d9fdb46SRobert Mustacchi #endif
868*4d9fdb46SRobert Mustacchi #ifndef EI_DATA
869*4d9fdb46SRobert Mustacchi #define EI_DATA          5
870*4d9fdb46SRobert Mustacchi #endif
871*4d9fdb46SRobert Mustacchi #ifndef EI_VERSION
872*4d9fdb46SRobert Mustacchi #define EI_VERSION       6
873*4d9fdb46SRobert Mustacchi #endif
874*4d9fdb46SRobert Mustacchi #ifndef EI_PAD
875*4d9fdb46SRobert Mustacchi #define EI_PAD           7
876*4d9fdb46SRobert Mustacchi #endif
877*4d9fdb46SRobert Mustacchi #ifndef EI_OSABI
878*4d9fdb46SRobert Mustacchi #define EI_OSABI         7
879*4d9fdb46SRobert Mustacchi #endif
880*4d9fdb46SRobert Mustacchi #ifndef EI_NIDENT
881*4d9fdb46SRobert Mustacchi #define EI_NIDENT        16
882*4d9fdb46SRobert Mustacchi #endif
883*4d9fdb46SRobert Mustacchi #ifndef EI_ABIVERSION
884*4d9fdb46SRobert Mustacchi #define EI_ABIVERSION       8
885*4d9fdb46SRobert Mustacchi #endif
886*4d9fdb46SRobert Mustacchi 
887*4d9fdb46SRobert Mustacchi #ifndef ELFMAG0
888*4d9fdb46SRobert Mustacchi #define ELFMAG0          0x7f
889*4d9fdb46SRobert Mustacchi #endif
890*4d9fdb46SRobert Mustacchi #ifndef ELFMAG1
891*4d9fdb46SRobert Mustacchi #define ELFMAG1          'E'
892*4d9fdb46SRobert Mustacchi #endif
893*4d9fdb46SRobert Mustacchi #ifndef ELFMAG2
894*4d9fdb46SRobert Mustacchi #define ELFMAG2          'L'
895*4d9fdb46SRobert Mustacchi #endif
896*4d9fdb46SRobert Mustacchi #ifndef ELFMAG3
897*4d9fdb46SRobert Mustacchi #define ELFMAG3          'F'
898*4d9fdb46SRobert Mustacchi #endif
899*4d9fdb46SRobert Mustacchi #ifndef ELFCLASSNONE
900*4d9fdb46SRobert Mustacchi #define ELFCLASSNONE     0
901*4d9fdb46SRobert Mustacchi #endif
902*4d9fdb46SRobert Mustacchi #ifndef ELFCLASS32
903*4d9fdb46SRobert Mustacchi #define ELFCLASS32       1
904*4d9fdb46SRobert Mustacchi #endif
905*4d9fdb46SRobert Mustacchi #ifndef ELFCLASS64
906*4d9fdb46SRobert Mustacchi #define ELFCLASS64       2
907*4d9fdb46SRobert Mustacchi #endif
908*4d9fdb46SRobert Mustacchi #ifndef ELFDATANONE
909*4d9fdb46SRobert Mustacchi #define ELFDATANONE      0
910*4d9fdb46SRobert Mustacchi #endif
911*4d9fdb46SRobert Mustacchi #ifndef ELFDATA2LSB
912*4d9fdb46SRobert Mustacchi #define ELFDATA2LSB      1
913*4d9fdb46SRobert Mustacchi #endif
914*4d9fdb46SRobert Mustacchi #ifndef ELFDATA2MSB
915*4d9fdb46SRobert Mustacchi #define ELFDATA2MSB      2
916*4d9fdb46SRobert Mustacchi #endif
917*4d9fdb46SRobert Mustacchi 
918*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_NONE
919*4d9fdb46SRobert Mustacchi #define ELFOSABI_NONE       0
920*4d9fdb46SRobert Mustacchi #endif
921*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_SYSV
922*4d9fdb46SRobert Mustacchi #define ELFOSABI_SYSV       0
923*4d9fdb46SRobert Mustacchi #endif
924*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_HPUX
925*4d9fdb46SRobert Mustacchi #define ELFOSABI_HPUX       1
926*4d9fdb46SRobert Mustacchi #endif
927*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_NETBSD
928*4d9fdb46SRobert Mustacchi #define ELFOSABI_NETBSD     2
929*4d9fdb46SRobert Mustacchi #endif
930*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_GNU
931*4d9fdb46SRobert Mustacchi #define ELFOSABI_GNU        3
932*4d9fdb46SRobert Mustacchi #endif
933*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_LINUX
934*4d9fdb46SRobert Mustacchi #define ELFOSABI_LINUX      ELFOSABI_GNU
935*4d9fdb46SRobert Mustacchi #endif
936*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_SOLARIS
937*4d9fdb46SRobert Mustacchi #define ELFOSABI_SOLARIS    6
938*4d9fdb46SRobert Mustacchi #endif
939*4d9fdb46SRobert Mustacchi #ifndef ELFOSABI_AIX
940