tinygrad 0.9.1__py3-none-any.whl → 0.9.2__py3-none-any.whl

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.
Files changed (56) hide show
  1. tinygrad/codegen/kernel.py +248 -115
  2. tinygrad/codegen/lowerer.py +215 -0
  3. tinygrad/codegen/transcendental.py +310 -0
  4. tinygrad/codegen/uopgraph.py +622 -0
  5. tinygrad/codegen/uops.py +235 -393
  6. tinygrad/device.py +428 -69
  7. tinygrad/dtype.py +18 -4
  8. tinygrad/engine/graph.py +19 -32
  9. tinygrad/engine/jit.py +148 -70
  10. tinygrad/engine/realize.py +127 -51
  11. tinygrad/engine/schedule.py +259 -216
  12. tinygrad/engine/search.py +29 -22
  13. tinygrad/function.py +9 -0
  14. tinygrad/helpers.py +87 -49
  15. tinygrad/lazy.py +34 -35
  16. tinygrad/multi.py +41 -36
  17. tinygrad/nn/__init__.py +39 -22
  18. tinygrad/nn/state.py +3 -3
  19. tinygrad/ops.py +63 -62
  20. tinygrad/renderer/__init__.py +43 -21
  21. tinygrad/renderer/assembly.py +104 -106
  22. tinygrad/renderer/cstyle.py +87 -60
  23. tinygrad/renderer/llvmir.py +21 -30
  24. tinygrad/runtime/autogen/amd_gpu.py +25208 -5753
  25. tinygrad/runtime/autogen/cuda.py +6 -162
  26. tinygrad/runtime/autogen/kfd.py +32 -0
  27. tinygrad/runtime/autogen/libc.py +4260 -0
  28. tinygrad/runtime/autogen/nvrtc.py +579 -0
  29. tinygrad/runtime/graph/clang.py +2 -2
  30. tinygrad/runtime/graph/cuda.py +8 -11
  31. tinygrad/runtime/graph/hcq.py +120 -107
  32. tinygrad/runtime/graph/metal.py +18 -15
  33. tinygrad/runtime/ops_amd.py +197 -305
  34. tinygrad/runtime/ops_clang.py +2 -2
  35. tinygrad/runtime/ops_cuda.py +36 -94
  36. tinygrad/runtime/ops_disk.py +3 -7
  37. tinygrad/runtime/ops_gpu.py +4 -2
  38. tinygrad/runtime/ops_hip.py +70 -0
  39. tinygrad/runtime/ops_metal.py +38 -27
  40. tinygrad/runtime/ops_nv.py +283 -363
  41. tinygrad/runtime/ops_python.py +26 -30
  42. tinygrad/runtime/support/compiler_cuda.py +78 -0
  43. tinygrad/runtime/{driver/hip_comgr.py → support/compiler_hip.py} +15 -1
  44. tinygrad/runtime/support/elf.py +38 -0
  45. tinygrad/shape/shapetracker.py +5 -14
  46. tinygrad/shape/symbolic.py +4 -8
  47. tinygrad/shape/view.py +34 -22
  48. tinygrad/tensor.py +399 -97
  49. {tinygrad-0.9.1.dist-info → tinygrad-0.9.2.dist-info}/METADATA +49 -48
  50. tinygrad-0.9.2.dist-info/RECORD +70 -0
  51. {tinygrad-0.9.1.dist-info → tinygrad-0.9.2.dist-info}/WHEEL +1 -1
  52. tinygrad/codegen/linearizer.py +0 -528
  53. tinygrad-0.9.1.dist-info/RECORD +0 -63
  54. /tinygrad/runtime/{driver → support}/__init__.py +0 -0
  55. {tinygrad-0.9.1.dist-info → tinygrad-0.9.2.dist-info}/LICENSE +0 -0
  56. {tinygrad-0.9.1.dist-info → tinygrad-0.9.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4260 @@
1
+ # mypy: ignore-errors
2
+ # -*- coding: utf-8 -*-
3
+ #
4
+ # TARGET arch is: []
5
+ # WORD_SIZE is: 8
6
+ # POINTER_SIZE is: 8
7
+ # LONGDOUBLE_SIZE is: 16
8
+ #
9
+ import ctypes, ctypes.util, os
10
+
11
+
12
+ c_int128 = ctypes.c_ubyte*16
13
+ c_uint128 = c_int128
14
+ void = None
15
+ if ctypes.sizeof(ctypes.c_longdouble) == 16:
16
+ c_long_double_t = ctypes.c_longdouble
17
+ else:
18
+ c_long_double_t = ctypes.c_ubyte*16
19
+
20
+ class FunctionFactoryStub:
21
+ def __getattr__(self, _):
22
+ return ctypes.CFUNCTYPE(lambda y:y)
23
+
24
+ # libraries['libc'] explanation
25
+ # As you did not list (-l libraryname.so) a library that exports this function
26
+ # This is a non-working stub instead.
27
+ # You can either re-run clan2py with -l /path/to/library.so
28
+ # Or manually fix this by comment the ctypes.CDLL loading
29
+ _libraries = {}
30
+ _libraries['libc'] = ctypes.CDLL(ctypes.util.find_library('c')) # ctypes.CDLL('libc')
31
+ def string_cast(char_pointer, encoding='utf-8', errors='strict'):
32
+ value = ctypes.cast(char_pointer, ctypes.c_char_p).value
33
+ if value is not None and encoding is not None:
34
+ value = value.decode(encoding, errors=errors)
35
+ return value
36
+
37
+
38
+ def char_pointer_cast(string, encoding='utf-8'):
39
+ if encoding is not None:
40
+ try:
41
+ string = string.encode(encoding)
42
+ except AttributeError:
43
+ # In Python3, bytes has no encode attribute
44
+ pass
45
+ string = ctypes.c_char_p(string)
46
+ return ctypes.cast(string, ctypes.POINTER(ctypes.c_char))
47
+
48
+
49
+
50
+ class AsDictMixin:
51
+ @classmethod
52
+ def as_dict(cls, self):
53
+ result = {}
54
+ if not isinstance(self, AsDictMixin):
55
+ # not a structure, assume it's already a python object
56
+ return self
57
+ if not hasattr(cls, "_fields_"):
58
+ return result
59
+ # sys.version_info >= (3, 5)
60
+ # for (field, *_) in cls._fields_: # noqa
61
+ for field_tuple in cls._fields_: # noqa
62
+ field = field_tuple[0]
63
+ if field.startswith('PADDING_'):
64
+ continue
65
+ value = getattr(self, field)
66
+ type_ = type(value)
67
+ if hasattr(value, "_length_") and hasattr(value, "_type_"):
68
+ # array
69
+ if not hasattr(type_, "as_dict"):
70
+ value = [v for v in value]
71
+ else:
72
+ type_ = type_._type_
73
+ value = [type_.as_dict(v) for v in value]
74
+ elif hasattr(value, "contents") and hasattr(value, "_type_"):
75
+ # pointer
76
+ try:
77
+ if not hasattr(type_, "as_dict"):
78
+ value = value.contents
79
+ else:
80
+ type_ = type_._type_
81
+ value = type_.as_dict(value.contents)
82
+ except ValueError:
83
+ # nullptr
84
+ value = None
85
+ elif isinstance(value, AsDictMixin):
86
+ # other structure
87
+ value = type_.as_dict(value)
88
+ result[field] = value
89
+ return result
90
+
91
+
92
+ class Structure(ctypes.Structure, AsDictMixin):
93
+
94
+ def __init__(self, *args, **kwds):
95
+ # We don't want to use positional arguments fill PADDING_* fields
96
+
97
+ args = dict(zip(self.__class__._field_names_(), args))
98
+ args.update(kwds)
99
+ super(Structure, self).__init__(**args)
100
+
101
+ @classmethod
102
+ def _field_names_(cls):
103
+ if hasattr(cls, '_fields_'):
104
+ return (f[0] for f in cls._fields_ if not f[0].startswith('PADDING'))
105
+ else:
106
+ return ()
107
+
108
+ @classmethod
109
+ def get_type(cls, field):
110
+ for f in cls._fields_:
111
+ if f[0] == field:
112
+ return f[1]
113
+ return None
114
+
115
+ @classmethod
116
+ def bind(cls, bound_fields):
117
+ fields = {}
118
+ for name, type_ in cls._fields_:
119
+ if hasattr(type_, "restype"):
120
+ if name in bound_fields:
121
+ if bound_fields[name] is None:
122
+ fields[name] = type_()
123
+ else:
124
+ # use a closure to capture the callback from the loop scope
125
+ fields[name] = (
126
+ type_((lambda callback: lambda *args: callback(*args))(
127
+ bound_fields[name]))
128
+ )
129
+ del bound_fields[name]
130
+ else:
131
+ # default callback implementation (does nothing)
132
+ try:
133
+ default_ = type_(0).restype().value
134
+ except TypeError:
135
+ default_ = None
136
+ fields[name] = type_((
137
+ lambda default_: lambda *args: default_)(default_))
138
+ else:
139
+ # not a callback function, use default initialization
140
+ if name in bound_fields:
141
+ fields[name] = bound_fields[name]
142
+ del bound_fields[name]
143
+ else:
144
+ fields[name] = type_()
145
+ if len(bound_fields) != 0:
146
+ raise ValueError(
147
+ "Cannot bind the following unknown callback(s) {}.{}".format(
148
+ cls.__name__, bound_fields.keys()
149
+ ))
150
+ return cls(**fields)
151
+
152
+
153
+ class Union(ctypes.Union, AsDictMixin):
154
+ pass
155
+
156
+
157
+
158
+
159
+
160
+ off_t = ctypes.c_int64
161
+ mode_t = ctypes.c_uint32
162
+ size_t = ctypes.c_uint64
163
+ __off_t = ctypes.c_int64
164
+ try:
165
+ mmap = _libraries['libc'].mmap
166
+ mmap.restype = ctypes.POINTER(None)
167
+ mmap.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, __off_t]
168
+ except AttributeError:
169
+ pass
170
+ try:
171
+ munmap = _libraries['libc'].munmap
172
+ munmap.restype = ctypes.c_int32
173
+ munmap.argtypes = [ctypes.POINTER(None), size_t]
174
+ except AttributeError:
175
+ pass
176
+ try:
177
+ mprotect = _libraries['libc'].mprotect
178
+ mprotect.restype = ctypes.c_int32
179
+ mprotect.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
180
+ except AttributeError:
181
+ pass
182
+ try:
183
+ msync = _libraries['libc'].msync
184
+ msync.restype = ctypes.c_int32
185
+ msync.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
186
+ except AttributeError:
187
+ pass
188
+ try:
189
+ madvise = _libraries['libc'].madvise
190
+ madvise.restype = ctypes.c_int32
191
+ madvise.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
192
+ except AttributeError:
193
+ pass
194
+ try:
195
+ posix_madvise = _libraries['libc'].posix_madvise
196
+ posix_madvise.restype = ctypes.c_int32
197
+ posix_madvise.argtypes = [ctypes.POINTER(None), size_t, ctypes.c_int32]
198
+ except AttributeError:
199
+ pass
200
+ try:
201
+ mlock = _libraries['libc'].mlock
202
+ mlock.restype = ctypes.c_int32
203
+ mlock.argtypes = [ctypes.POINTER(None), size_t]
204
+ except AttributeError:
205
+ pass
206
+ try:
207
+ munlock = _libraries['libc'].munlock
208
+ munlock.restype = ctypes.c_int32
209
+ munlock.argtypes = [ctypes.POINTER(None), size_t]
210
+ except AttributeError:
211
+ pass
212
+ try:
213
+ mlockall = _libraries['libc'].mlockall
214
+ mlockall.restype = ctypes.c_int32
215
+ mlockall.argtypes = [ctypes.c_int32]
216
+ except AttributeError:
217
+ pass
218
+ try:
219
+ munlockall = _libraries['libc'].munlockall
220
+ munlockall.restype = ctypes.c_int32
221
+ munlockall.argtypes = []
222
+ except AttributeError:
223
+ pass
224
+ try:
225
+ mincore = _libraries['libc'].mincore
226
+ mincore.restype = ctypes.c_int32
227
+ mincore.argtypes = [ctypes.POINTER(None), size_t, ctypes.POINTER(ctypes.c_ubyte)]
228
+ except AttributeError:
229
+ pass
230
+ try:
231
+ shm_open = _libraries['libc'].shm_open
232
+ shm_open.restype = ctypes.c_int32
233
+ shm_open.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, mode_t]
234
+ except AttributeError:
235
+ pass
236
+ try:
237
+ shm_unlink = _libraries['libc'].shm_unlink
238
+ shm_unlink.restype = ctypes.c_int32
239
+ shm_unlink.argtypes = [ctypes.POINTER(ctypes.c_char)]
240
+ except AttributeError:
241
+ pass
242
+ Elf32_Half = ctypes.c_uint16
243
+ Elf64_Half = ctypes.c_uint16
244
+ Elf32_Word = ctypes.c_uint32
245
+ Elf32_Sword = ctypes.c_int32
246
+ Elf64_Word = ctypes.c_uint32
247
+ Elf64_Sword = ctypes.c_int32
248
+ Elf32_Xword = ctypes.c_uint64
249
+ Elf32_Sxword = ctypes.c_int64
250
+ Elf64_Xword = ctypes.c_uint64
251
+ Elf64_Sxword = ctypes.c_int64
252
+ Elf32_Addr = ctypes.c_uint32
253
+ Elf64_Addr = ctypes.c_uint64
254
+ Elf32_Off = ctypes.c_uint32
255
+ Elf64_Off = ctypes.c_uint64
256
+ Elf32_Section = ctypes.c_uint16
257
+ Elf64_Section = ctypes.c_uint16
258
+ Elf32_Versym = ctypes.c_uint16
259
+ Elf64_Versym = ctypes.c_uint16
260
+ class struct_c__SA_Elf32_Ehdr(Structure):
261
+ pass
262
+
263
+ struct_c__SA_Elf32_Ehdr._pack_ = 1 # source:False
264
+ struct_c__SA_Elf32_Ehdr._fields_ = [
265
+ ('e_ident', ctypes.c_ubyte * 16),
266
+ ('e_type', ctypes.c_uint16),
267
+ ('e_machine', ctypes.c_uint16),
268
+ ('e_version', ctypes.c_uint32),
269
+ ('e_entry', ctypes.c_uint32),
270
+ ('e_phoff', ctypes.c_uint32),
271
+ ('e_shoff', ctypes.c_uint32),
272
+ ('e_flags', ctypes.c_uint32),
273
+ ('e_ehsize', ctypes.c_uint16),
274
+ ('e_phentsize', ctypes.c_uint16),
275
+ ('e_phnum', ctypes.c_uint16),
276
+ ('e_shentsize', ctypes.c_uint16),
277
+ ('e_shnum', ctypes.c_uint16),
278
+ ('e_shstrndx', ctypes.c_uint16),
279
+ ]
280
+
281
+ Elf32_Ehdr = struct_c__SA_Elf32_Ehdr
282
+ class struct_c__SA_Elf64_Ehdr(Structure):
283
+ pass
284
+
285
+ struct_c__SA_Elf64_Ehdr._pack_ = 1 # source:False
286
+ struct_c__SA_Elf64_Ehdr._fields_ = [
287
+ ('e_ident', ctypes.c_ubyte * 16),
288
+ ('e_type', ctypes.c_uint16),
289
+ ('e_machine', ctypes.c_uint16),
290
+ ('e_version', ctypes.c_uint32),
291
+ ('e_entry', ctypes.c_uint64),
292
+ ('e_phoff', ctypes.c_uint64),
293
+ ('e_shoff', ctypes.c_uint64),
294
+ ('e_flags', ctypes.c_uint32),
295
+ ('e_ehsize', ctypes.c_uint16),
296
+ ('e_phentsize', ctypes.c_uint16),
297
+ ('e_phnum', ctypes.c_uint16),
298
+ ('e_shentsize', ctypes.c_uint16),
299
+ ('e_shnum', ctypes.c_uint16),
300
+ ('e_shstrndx', ctypes.c_uint16),
301
+ ]
302
+
303
+ Elf64_Ehdr = struct_c__SA_Elf64_Ehdr
304
+ class struct_c__SA_Elf32_Shdr(Structure):
305
+ pass
306
+
307
+ struct_c__SA_Elf32_Shdr._pack_ = 1 # source:False
308
+ struct_c__SA_Elf32_Shdr._fields_ = [
309
+ ('sh_name', ctypes.c_uint32),
310
+ ('sh_type', ctypes.c_uint32),
311
+ ('sh_flags', ctypes.c_uint32),
312
+ ('sh_addr', ctypes.c_uint32),
313
+ ('sh_offset', ctypes.c_uint32),
314
+ ('sh_size', ctypes.c_uint32),
315
+ ('sh_link', ctypes.c_uint32),
316
+ ('sh_info', ctypes.c_uint32),
317
+ ('sh_addralign', ctypes.c_uint32),
318
+ ('sh_entsize', ctypes.c_uint32),
319
+ ]
320
+
321
+ Elf32_Shdr = struct_c__SA_Elf32_Shdr
322
+ class struct_c__SA_Elf64_Shdr(Structure):
323
+ pass
324
+
325
+ struct_c__SA_Elf64_Shdr._pack_ = 1 # source:False
326
+ struct_c__SA_Elf64_Shdr._fields_ = [
327
+ ('sh_name', ctypes.c_uint32),
328
+ ('sh_type', ctypes.c_uint32),
329
+ ('sh_flags', ctypes.c_uint64),
330
+ ('sh_addr', ctypes.c_uint64),
331
+ ('sh_offset', ctypes.c_uint64),
332
+ ('sh_size', ctypes.c_uint64),
333
+ ('sh_link', ctypes.c_uint32),
334
+ ('sh_info', ctypes.c_uint32),
335
+ ('sh_addralign', ctypes.c_uint64),
336
+ ('sh_entsize', ctypes.c_uint64),
337
+ ]
338
+
339
+ Elf64_Shdr = struct_c__SA_Elf64_Shdr
340
+ class struct_c__SA_Elf32_Chdr(Structure):
341
+ pass
342
+
343
+ struct_c__SA_Elf32_Chdr._pack_ = 1 # source:False
344
+ struct_c__SA_Elf32_Chdr._fields_ = [
345
+ ('ch_type', ctypes.c_uint32),
346
+ ('ch_size', ctypes.c_uint32),
347
+ ('ch_addralign', ctypes.c_uint32),
348
+ ]
349
+
350
+ Elf32_Chdr = struct_c__SA_Elf32_Chdr
351
+ class struct_c__SA_Elf64_Chdr(Structure):
352
+ pass
353
+
354
+ struct_c__SA_Elf64_Chdr._pack_ = 1 # source:False
355
+ struct_c__SA_Elf64_Chdr._fields_ = [
356
+ ('ch_type', ctypes.c_uint32),
357
+ ('ch_reserved', ctypes.c_uint32),
358
+ ('ch_size', ctypes.c_uint64),
359
+ ('ch_addralign', ctypes.c_uint64),
360
+ ]
361
+
362
+ Elf64_Chdr = struct_c__SA_Elf64_Chdr
363
+ class struct_c__SA_Elf32_Sym(Structure):
364
+ pass
365
+
366
+ struct_c__SA_Elf32_Sym._pack_ = 1 # source:False
367
+ struct_c__SA_Elf32_Sym._fields_ = [
368
+ ('st_name', ctypes.c_uint32),
369
+ ('st_value', ctypes.c_uint32),
370
+ ('st_size', ctypes.c_uint32),
371
+ ('st_info', ctypes.c_ubyte),
372
+ ('st_other', ctypes.c_ubyte),
373
+ ('st_shndx', ctypes.c_uint16),
374
+ ]
375
+
376
+ Elf32_Sym = struct_c__SA_Elf32_Sym
377
+ class struct_c__SA_Elf64_Sym(Structure):
378
+ pass
379
+
380
+ struct_c__SA_Elf64_Sym._pack_ = 1 # source:False
381
+ struct_c__SA_Elf64_Sym._fields_ = [
382
+ ('st_name', ctypes.c_uint32),
383
+ ('st_info', ctypes.c_ubyte),
384
+ ('st_other', ctypes.c_ubyte),
385
+ ('st_shndx', ctypes.c_uint16),
386
+ ('st_value', ctypes.c_uint64),
387
+ ('st_size', ctypes.c_uint64),
388
+ ]
389
+
390
+ Elf64_Sym = struct_c__SA_Elf64_Sym
391
+ class struct_c__SA_Elf32_Syminfo(Structure):
392
+ pass
393
+
394
+ struct_c__SA_Elf32_Syminfo._pack_ = 1 # source:False
395
+ struct_c__SA_Elf32_Syminfo._fields_ = [
396
+ ('si_boundto', ctypes.c_uint16),
397
+ ('si_flags', ctypes.c_uint16),
398
+ ]
399
+
400
+ Elf32_Syminfo = struct_c__SA_Elf32_Syminfo
401
+ class struct_c__SA_Elf64_Syminfo(Structure):
402
+ pass
403
+
404
+ struct_c__SA_Elf64_Syminfo._pack_ = 1 # source:False
405
+ struct_c__SA_Elf64_Syminfo._fields_ = [
406
+ ('si_boundto', ctypes.c_uint16),
407
+ ('si_flags', ctypes.c_uint16),
408
+ ]
409
+
410
+ Elf64_Syminfo = struct_c__SA_Elf64_Syminfo
411
+ class struct_c__SA_Elf32_Rel(Structure):
412
+ pass
413
+
414
+ struct_c__SA_Elf32_Rel._pack_ = 1 # source:False
415
+ struct_c__SA_Elf32_Rel._fields_ = [
416
+ ('r_offset', ctypes.c_uint32),
417
+ ('r_info', ctypes.c_uint32),
418
+ ]
419
+
420
+ Elf32_Rel = struct_c__SA_Elf32_Rel
421
+ class struct_c__SA_Elf64_Rel(Structure):
422
+ pass
423
+
424
+ struct_c__SA_Elf64_Rel._pack_ = 1 # source:False
425
+ struct_c__SA_Elf64_Rel._fields_ = [
426
+ ('r_offset', ctypes.c_uint64),
427
+ ('r_info', ctypes.c_uint64),
428
+ ]
429
+
430
+ Elf64_Rel = struct_c__SA_Elf64_Rel
431
+ class struct_c__SA_Elf32_Rela(Structure):
432
+ pass
433
+
434
+ struct_c__SA_Elf32_Rela._pack_ = 1 # source:False
435
+ struct_c__SA_Elf32_Rela._fields_ = [
436
+ ('r_offset', ctypes.c_uint32),
437
+ ('r_info', ctypes.c_uint32),
438
+ ('r_addend', ctypes.c_int32),
439
+ ]
440
+
441
+ Elf32_Rela = struct_c__SA_Elf32_Rela
442
+ class struct_c__SA_Elf64_Rela(Structure):
443
+ pass
444
+
445
+ struct_c__SA_Elf64_Rela._pack_ = 1 # source:False
446
+ struct_c__SA_Elf64_Rela._fields_ = [
447
+ ('r_offset', ctypes.c_uint64),
448
+ ('r_info', ctypes.c_uint64),
449
+ ('r_addend', ctypes.c_int64),
450
+ ]
451
+
452
+ Elf64_Rela = struct_c__SA_Elf64_Rela
453
+ class struct_c__SA_Elf32_Phdr(Structure):
454
+ pass
455
+
456
+ struct_c__SA_Elf32_Phdr._pack_ = 1 # source:False
457
+ struct_c__SA_Elf32_Phdr._fields_ = [
458
+ ('p_type', ctypes.c_uint32),
459
+ ('p_offset', ctypes.c_uint32),
460
+ ('p_vaddr', ctypes.c_uint32),
461
+ ('p_paddr', ctypes.c_uint32),
462
+ ('p_filesz', ctypes.c_uint32),
463
+ ('p_memsz', ctypes.c_uint32),
464
+ ('p_flags', ctypes.c_uint32),
465
+ ('p_align', ctypes.c_uint32),
466
+ ]
467
+
468
+ Elf32_Phdr = struct_c__SA_Elf32_Phdr
469
+ class struct_c__SA_Elf64_Phdr(Structure):
470
+ pass
471
+
472
+ struct_c__SA_Elf64_Phdr._pack_ = 1 # source:False
473
+ struct_c__SA_Elf64_Phdr._fields_ = [
474
+ ('p_type', ctypes.c_uint32),
475
+ ('p_flags', ctypes.c_uint32),
476
+ ('p_offset', ctypes.c_uint64),
477
+ ('p_vaddr', ctypes.c_uint64),
478
+ ('p_paddr', ctypes.c_uint64),
479
+ ('p_filesz', ctypes.c_uint64),
480
+ ('p_memsz', ctypes.c_uint64),
481
+ ('p_align', ctypes.c_uint64),
482
+ ]
483
+
484
+ Elf64_Phdr = struct_c__SA_Elf64_Phdr
485
+ class struct_c__SA_Elf32_Dyn(Structure):
486
+ pass
487
+
488
+ class union_c__SA_Elf32_Dyn_d_un(Union):
489
+ pass
490
+
491
+ union_c__SA_Elf32_Dyn_d_un._pack_ = 1 # source:False
492
+ union_c__SA_Elf32_Dyn_d_un._fields_ = [
493
+ ('d_val', ctypes.c_uint32),
494
+ ('d_ptr', ctypes.c_uint32),
495
+ ]
496
+
497
+ struct_c__SA_Elf32_Dyn._pack_ = 1 # source:False
498
+ struct_c__SA_Elf32_Dyn._fields_ = [
499
+ ('d_tag', ctypes.c_int32),
500
+ ('d_un', union_c__SA_Elf32_Dyn_d_un),
501
+ ]
502
+
503
+ Elf32_Dyn = struct_c__SA_Elf32_Dyn
504
+ class struct_c__SA_Elf64_Dyn(Structure):
505
+ pass
506
+
507
+ class union_c__SA_Elf64_Dyn_d_un(Union):
508
+ pass
509
+
510
+ union_c__SA_Elf64_Dyn_d_un._pack_ = 1 # source:False
511
+ union_c__SA_Elf64_Dyn_d_un._fields_ = [
512
+ ('d_val', ctypes.c_uint64),
513
+ ('d_ptr', ctypes.c_uint64),
514
+ ]
515
+
516
+ struct_c__SA_Elf64_Dyn._pack_ = 1 # source:False
517
+ struct_c__SA_Elf64_Dyn._fields_ = [
518
+ ('d_tag', ctypes.c_int64),
519
+ ('d_un', union_c__SA_Elf64_Dyn_d_un),
520
+ ]
521
+
522
+ Elf64_Dyn = struct_c__SA_Elf64_Dyn
523
+ class struct_c__SA_Elf32_Verdef(Structure):
524
+ pass
525
+
526
+ struct_c__SA_Elf32_Verdef._pack_ = 1 # source:False
527
+ struct_c__SA_Elf32_Verdef._fields_ = [
528
+ ('vd_version', ctypes.c_uint16),
529
+ ('vd_flags', ctypes.c_uint16),
530
+ ('vd_ndx', ctypes.c_uint16),
531
+ ('vd_cnt', ctypes.c_uint16),
532
+ ('vd_hash', ctypes.c_uint32),
533
+ ('vd_aux', ctypes.c_uint32),
534
+ ('vd_next', ctypes.c_uint32),
535
+ ]
536
+
537
+ Elf32_Verdef = struct_c__SA_Elf32_Verdef
538
+ class struct_c__SA_Elf64_Verdef(Structure):
539
+ pass
540
+
541
+ struct_c__SA_Elf64_Verdef._pack_ = 1 # source:False
542
+ struct_c__SA_Elf64_Verdef._fields_ = [
543
+ ('vd_version', ctypes.c_uint16),
544
+ ('vd_flags', ctypes.c_uint16),
545
+ ('vd_ndx', ctypes.c_uint16),
546
+ ('vd_cnt', ctypes.c_uint16),
547
+ ('vd_hash', ctypes.c_uint32),
548
+ ('vd_aux', ctypes.c_uint32),
549
+ ('vd_next', ctypes.c_uint32),
550
+ ]
551
+
552
+ Elf64_Verdef = struct_c__SA_Elf64_Verdef
553
+ class struct_c__SA_Elf32_Verdaux(Structure):
554
+ pass
555
+
556
+ struct_c__SA_Elf32_Verdaux._pack_ = 1 # source:False
557
+ struct_c__SA_Elf32_Verdaux._fields_ = [
558
+ ('vda_name', ctypes.c_uint32),
559
+ ('vda_next', ctypes.c_uint32),
560
+ ]
561
+
562
+ Elf32_Verdaux = struct_c__SA_Elf32_Verdaux
563
+ class struct_c__SA_Elf64_Verdaux(Structure):
564
+ pass
565
+
566
+ struct_c__SA_Elf64_Verdaux._pack_ = 1 # source:False
567
+ struct_c__SA_Elf64_Verdaux._fields_ = [
568
+ ('vda_name', ctypes.c_uint32),
569
+ ('vda_next', ctypes.c_uint32),
570
+ ]
571
+
572
+ Elf64_Verdaux = struct_c__SA_Elf64_Verdaux
573
+ class struct_c__SA_Elf32_Verneed(Structure):
574
+ pass
575
+
576
+ struct_c__SA_Elf32_Verneed._pack_ = 1 # source:False
577
+ struct_c__SA_Elf32_Verneed._fields_ = [
578
+ ('vn_version', ctypes.c_uint16),
579
+ ('vn_cnt', ctypes.c_uint16),
580
+ ('vn_file', ctypes.c_uint32),
581
+ ('vn_aux', ctypes.c_uint32),
582
+ ('vn_next', ctypes.c_uint32),
583
+ ]
584
+
585
+ Elf32_Verneed = struct_c__SA_Elf32_Verneed
586
+ class struct_c__SA_Elf64_Verneed(Structure):
587
+ pass
588
+
589
+ struct_c__SA_Elf64_Verneed._pack_ = 1 # source:False
590
+ struct_c__SA_Elf64_Verneed._fields_ = [
591
+ ('vn_version', ctypes.c_uint16),
592
+ ('vn_cnt', ctypes.c_uint16),
593
+ ('vn_file', ctypes.c_uint32),
594
+ ('vn_aux', ctypes.c_uint32),
595
+ ('vn_next', ctypes.c_uint32),
596
+ ]
597
+
598
+ Elf64_Verneed = struct_c__SA_Elf64_Verneed
599
+ class struct_c__SA_Elf32_Vernaux(Structure):
600
+ pass
601
+
602
+ struct_c__SA_Elf32_Vernaux._pack_ = 1 # source:False
603
+ struct_c__SA_Elf32_Vernaux._fields_ = [
604
+ ('vna_hash', ctypes.c_uint32),
605
+ ('vna_flags', ctypes.c_uint16),
606
+ ('vna_other', ctypes.c_uint16),
607
+ ('vna_name', ctypes.c_uint32),
608
+ ('vna_next', ctypes.c_uint32),
609
+ ]
610
+
611
+ Elf32_Vernaux = struct_c__SA_Elf32_Vernaux
612
+ class struct_c__SA_Elf64_Vernaux(Structure):
613
+ pass
614
+
615
+ struct_c__SA_Elf64_Vernaux._pack_ = 1 # source:False
616
+ struct_c__SA_Elf64_Vernaux._fields_ = [
617
+ ('vna_hash', ctypes.c_uint32),
618
+ ('vna_flags', ctypes.c_uint16),
619
+ ('vna_other', ctypes.c_uint16),
620
+ ('vna_name', ctypes.c_uint32),
621
+ ('vna_next', ctypes.c_uint32),
622
+ ]
623
+
624
+ Elf64_Vernaux = struct_c__SA_Elf64_Vernaux
625
+ class struct_c__SA_Elf32_auxv_t(Structure):
626
+ pass
627
+
628
+ class union_c__SA_Elf32_auxv_t_a_un(Union):
629
+ pass
630
+
631
+ union_c__SA_Elf32_auxv_t_a_un._pack_ = 1 # source:False
632
+ union_c__SA_Elf32_auxv_t_a_un._fields_ = [
633
+ ('a_val', ctypes.c_uint32),
634
+ ]
635
+
636
+ struct_c__SA_Elf32_auxv_t._pack_ = 1 # source:False
637
+ struct_c__SA_Elf32_auxv_t._fields_ = [
638
+ ('a_type', ctypes.c_uint32),
639
+ ('a_un', union_c__SA_Elf32_auxv_t_a_un),
640
+ ]
641
+
642
+ Elf32_auxv_t = struct_c__SA_Elf32_auxv_t
643
+ class struct_c__SA_Elf64_auxv_t(Structure):
644
+ pass
645
+
646
+ class union_c__SA_Elf64_auxv_t_a_un(Union):
647
+ pass
648
+
649
+ union_c__SA_Elf64_auxv_t_a_un._pack_ = 1 # source:False
650
+ union_c__SA_Elf64_auxv_t_a_un._fields_ = [
651
+ ('a_val', ctypes.c_uint64),
652
+ ]
653
+
654
+ struct_c__SA_Elf64_auxv_t._pack_ = 1 # source:False
655
+ struct_c__SA_Elf64_auxv_t._fields_ = [
656
+ ('a_type', ctypes.c_uint64),
657
+ ('a_un', union_c__SA_Elf64_auxv_t_a_un),
658
+ ]
659
+
660
+ Elf64_auxv_t = struct_c__SA_Elf64_auxv_t
661
+ class struct_c__SA_Elf32_Nhdr(Structure):
662
+ pass
663
+
664
+ struct_c__SA_Elf32_Nhdr._pack_ = 1 # source:False
665
+ struct_c__SA_Elf32_Nhdr._fields_ = [
666
+ ('n_namesz', ctypes.c_uint32),
667
+ ('n_descsz', ctypes.c_uint32),
668
+ ('n_type', ctypes.c_uint32),
669
+ ]
670
+
671
+ Elf32_Nhdr = struct_c__SA_Elf32_Nhdr
672
+ class struct_c__SA_Elf64_Nhdr(Structure):
673
+ pass
674
+
675
+ struct_c__SA_Elf64_Nhdr._pack_ = 1 # source:False
676
+ struct_c__SA_Elf64_Nhdr._fields_ = [
677
+ ('n_namesz', ctypes.c_uint32),
678
+ ('n_descsz', ctypes.c_uint32),
679
+ ('n_type', ctypes.c_uint32),
680
+ ]
681
+
682
+ Elf64_Nhdr = struct_c__SA_Elf64_Nhdr
683
+ class struct_c__SA_Elf32_Move(Structure):
684
+ pass
685
+
686
+ struct_c__SA_Elf32_Move._pack_ = 1 # source:False
687
+ struct_c__SA_Elf32_Move._fields_ = [
688
+ ('m_value', ctypes.c_uint64),
689
+ ('m_info', ctypes.c_uint32),
690
+ ('m_poffset', ctypes.c_uint32),
691
+ ('m_repeat', ctypes.c_uint16),
692
+ ('m_stride', ctypes.c_uint16),
693
+ ('PADDING_0', ctypes.c_ubyte * 4),
694
+ ]
695
+
696
+ Elf32_Move = struct_c__SA_Elf32_Move
697
+ class struct_c__SA_Elf64_Move(Structure):
698
+ pass
699
+
700
+ struct_c__SA_Elf64_Move._pack_ = 1 # source:False
701
+ struct_c__SA_Elf64_Move._fields_ = [
702
+ ('m_value', ctypes.c_uint64),
703
+ ('m_info', ctypes.c_uint64),
704
+ ('m_poffset', ctypes.c_uint64),
705
+ ('m_repeat', ctypes.c_uint16),
706
+ ('m_stride', ctypes.c_uint16),
707
+ ('PADDING_0', ctypes.c_ubyte * 4),
708
+ ]
709
+
710
+ Elf64_Move = struct_c__SA_Elf64_Move
711
+ class union_c__UA_Elf32_gptab(Union):
712
+ pass
713
+
714
+ class struct_c__UA_Elf32_gptab_gt_header(Structure):
715
+ pass
716
+
717
+ struct_c__UA_Elf32_gptab_gt_header._pack_ = 1 # source:False
718
+ struct_c__UA_Elf32_gptab_gt_header._fields_ = [
719
+ ('gt_current_g_value', ctypes.c_uint32),
720
+ ('gt_unused', ctypes.c_uint32),
721
+ ]
722
+
723
+ class struct_c__UA_Elf32_gptab_gt_entry(Structure):
724
+ pass
725
+
726
+ struct_c__UA_Elf32_gptab_gt_entry._pack_ = 1 # source:False
727
+ struct_c__UA_Elf32_gptab_gt_entry._fields_ = [
728
+ ('gt_g_value', ctypes.c_uint32),
729
+ ('gt_bytes', ctypes.c_uint32),
730
+ ]
731
+
732
+ union_c__UA_Elf32_gptab._pack_ = 1 # source:False
733
+ union_c__UA_Elf32_gptab._fields_ = [
734
+ ('gt_header', struct_c__UA_Elf32_gptab_gt_header),
735
+ ('gt_entry', struct_c__UA_Elf32_gptab_gt_entry),
736
+ ]
737
+
738
+ Elf32_gptab = union_c__UA_Elf32_gptab
739
+ class struct_c__SA_Elf32_RegInfo(Structure):
740
+ pass
741
+
742
+ struct_c__SA_Elf32_RegInfo._pack_ = 1 # source:False
743
+ struct_c__SA_Elf32_RegInfo._fields_ = [
744
+ ('ri_gprmask', ctypes.c_uint32),
745
+ ('ri_cprmask', ctypes.c_uint32 * 4),
746
+ ('ri_gp_value', ctypes.c_int32),
747
+ ]
748
+
749
+ Elf32_RegInfo = struct_c__SA_Elf32_RegInfo
750
+ class struct_c__SA_Elf_Options(Structure):
751
+ pass
752
+
753
+ struct_c__SA_Elf_Options._pack_ = 1 # source:False
754
+ struct_c__SA_Elf_Options._fields_ = [
755
+ ('kind', ctypes.c_ubyte),
756
+ ('size', ctypes.c_ubyte),
757
+ ('section', ctypes.c_uint16),
758
+ ('info', ctypes.c_uint32),
759
+ ]
760
+
761
+ Elf_Options = struct_c__SA_Elf_Options
762
+ class struct_c__SA_Elf_Options_Hw(Structure):
763
+ pass
764
+
765
+ struct_c__SA_Elf_Options_Hw._pack_ = 1 # source:False
766
+ struct_c__SA_Elf_Options_Hw._fields_ = [
767
+ ('hwp_flags1', ctypes.c_uint32),
768
+ ('hwp_flags2', ctypes.c_uint32),
769
+ ]
770
+
771
+ Elf_Options_Hw = struct_c__SA_Elf_Options_Hw
772
+ class struct_c__SA_Elf32_Lib(Structure):
773
+ pass
774
+
775
+ struct_c__SA_Elf32_Lib._pack_ = 1 # source:False
776
+ struct_c__SA_Elf32_Lib._fields_ = [
777
+ ('l_name', ctypes.c_uint32),
778
+ ('l_time_stamp', ctypes.c_uint32),
779
+ ('l_checksum', ctypes.c_uint32),
780
+ ('l_version', ctypes.c_uint32),
781
+ ('l_flags', ctypes.c_uint32),
782
+ ]
783
+
784
+ Elf32_Lib = struct_c__SA_Elf32_Lib
785
+ class struct_c__SA_Elf64_Lib(Structure):
786
+ pass
787
+
788
+ struct_c__SA_Elf64_Lib._pack_ = 1 # source:False
789
+ struct_c__SA_Elf64_Lib._fields_ = [
790
+ ('l_name', ctypes.c_uint32),
791
+ ('l_time_stamp', ctypes.c_uint32),
792
+ ('l_checksum', ctypes.c_uint32),
793
+ ('l_version', ctypes.c_uint32),
794
+ ('l_flags', ctypes.c_uint32),
795
+ ]
796
+
797
+ Elf64_Lib = struct_c__SA_Elf64_Lib
798
+ Elf32_Conflict = ctypes.c_uint32
799
+ class struct_c__SA_Elf_MIPS_ABIFlags_v0(Structure):
800
+ pass
801
+
802
+ struct_c__SA_Elf_MIPS_ABIFlags_v0._pack_ = 1 # source:False
803
+ struct_c__SA_Elf_MIPS_ABIFlags_v0._fields_ = [
804
+ ('version', ctypes.c_uint16),
805
+ ('isa_level', ctypes.c_ubyte),
806
+ ('isa_rev', ctypes.c_ubyte),
807
+ ('gpr_size', ctypes.c_ubyte),
808
+ ('cpr1_size', ctypes.c_ubyte),
809
+ ('cpr2_size', ctypes.c_ubyte),
810
+ ('fp_abi', ctypes.c_ubyte),
811
+ ('isa_ext', ctypes.c_uint32),
812
+ ('ases', ctypes.c_uint32),
813
+ ('flags1', ctypes.c_uint32),
814
+ ('flags2', ctypes.c_uint32),
815
+ ]
816
+
817
+ Elf_MIPS_ABIFlags_v0 = struct_c__SA_Elf_MIPS_ABIFlags_v0
818
+
819
+ # values for enumeration 'c__Ea_Val_GNU_MIPS_ABI_FP_ANY'
820
+ c__Ea_Val_GNU_MIPS_ABI_FP_ANY__enumvalues = {
821
+ 0: 'Val_GNU_MIPS_ABI_FP_ANY',
822
+ 1: 'Val_GNU_MIPS_ABI_FP_DOUBLE',
823
+ 2: 'Val_GNU_MIPS_ABI_FP_SINGLE',
824
+ 3: 'Val_GNU_MIPS_ABI_FP_SOFT',
825
+ 4: 'Val_GNU_MIPS_ABI_FP_OLD_64',
826
+ 5: 'Val_GNU_MIPS_ABI_FP_XX',
827
+ 6: 'Val_GNU_MIPS_ABI_FP_64',
828
+ 7: 'Val_GNU_MIPS_ABI_FP_64A',
829
+ 7: 'Val_GNU_MIPS_ABI_FP_MAX',
830
+ }
831
+ Val_GNU_MIPS_ABI_FP_ANY = 0
832
+ Val_GNU_MIPS_ABI_FP_DOUBLE = 1
833
+ Val_GNU_MIPS_ABI_FP_SINGLE = 2
834
+ Val_GNU_MIPS_ABI_FP_SOFT = 3
835
+ Val_GNU_MIPS_ABI_FP_OLD_64 = 4
836
+ Val_GNU_MIPS_ABI_FP_XX = 5
837
+ Val_GNU_MIPS_ABI_FP_64 = 6
838
+ Val_GNU_MIPS_ABI_FP_64A = 7
839
+ Val_GNU_MIPS_ABI_FP_MAX = 7
840
+ c__Ea_Val_GNU_MIPS_ABI_FP_ANY = ctypes.c_uint32 # enum
841
+ ssize_t = ctypes.c_int64
842
+ gid_t = ctypes.c_uint32
843
+ uid_t = ctypes.c_uint32
844
+ useconds_t = ctypes.c_uint32
845
+ pid_t = ctypes.c_int32
846
+ intptr_t = ctypes.c_int64
847
+ socklen_t = ctypes.c_uint32
848
+ try:
849
+ access = _libraries['libc'].access
850
+ access.restype = ctypes.c_int32
851
+ access.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
852
+ except AttributeError:
853
+ pass
854
+ try:
855
+ faccessat = _libraries['libc'].faccessat
856
+ faccessat.restype = ctypes.c_int32
857
+ faccessat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.c_int32]
858
+ except AttributeError:
859
+ pass
860
+ try:
861
+ lseek = _libraries['libc'].lseek
862
+ lseek.restype = __off_t
863
+ lseek.argtypes = [ctypes.c_int32, __off_t, ctypes.c_int32]
864
+ except AttributeError:
865
+ pass
866
+ try:
867
+ close = _libraries['libc'].close
868
+ close.restype = ctypes.c_int32
869
+ close.argtypes = [ctypes.c_int32]
870
+ except AttributeError:
871
+ pass
872
+ try:
873
+ closefrom = _libraries['libc'].closefrom
874
+ closefrom.restype = None
875
+ closefrom.argtypes = [ctypes.c_int32]
876
+ except AttributeError:
877
+ pass
878
+ try:
879
+ read = _libraries['libc'].read
880
+ read.restype = ssize_t
881
+ read.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t]
882
+ except AttributeError:
883
+ pass
884
+ try:
885
+ write = _libraries['libc'].write
886
+ write.restype = ssize_t
887
+ write.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t]
888
+ except AttributeError:
889
+ pass
890
+ try:
891
+ pread = _libraries['libc'].pread
892
+ pread.restype = ssize_t
893
+ pread.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t, __off_t]
894
+ except AttributeError:
895
+ pass
896
+ try:
897
+ pwrite = _libraries['libc'].pwrite
898
+ pwrite.restype = ssize_t
899
+ pwrite.argtypes = [ctypes.c_int32, ctypes.POINTER(None), size_t, __off_t]
900
+ except AttributeError:
901
+ pass
902
+ try:
903
+ pipe = _libraries['libc'].pipe
904
+ pipe.restype = ctypes.c_int32
905
+ pipe.argtypes = [ctypes.c_int32 * 2]
906
+ except AttributeError:
907
+ pass
908
+ try:
909
+ alarm = _libraries['libc'].alarm
910
+ alarm.restype = ctypes.c_uint32
911
+ alarm.argtypes = [ctypes.c_uint32]
912
+ except AttributeError:
913
+ pass
914
+ try:
915
+ sleep = _libraries['libc'].sleep
916
+ sleep.restype = ctypes.c_uint32
917
+ sleep.argtypes = [ctypes.c_uint32]
918
+ except AttributeError:
919
+ pass
920
+ __useconds_t = ctypes.c_uint32
921
+ try:
922
+ ualarm = _libraries['libc'].ualarm
923
+ ualarm.restype = __useconds_t
924
+ ualarm.argtypes = [__useconds_t, __useconds_t]
925
+ except AttributeError:
926
+ pass
927
+ try:
928
+ usleep = _libraries['libc'].usleep
929
+ usleep.restype = ctypes.c_int32
930
+ usleep.argtypes = [__useconds_t]
931
+ except AttributeError:
932
+ pass
933
+ try:
934
+ pause = _libraries['libc'].pause
935
+ pause.restype = ctypes.c_int32
936
+ pause.argtypes = []
937
+ except AttributeError:
938
+ pass
939
+ __uid_t = ctypes.c_uint32
940
+ __gid_t = ctypes.c_uint32
941
+ try:
942
+ chown = _libraries['libc'].chown
943
+ chown.restype = ctypes.c_int32
944
+ chown.argtypes = [ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t]
945
+ except AttributeError:
946
+ pass
947
+ try:
948
+ fchown = _libraries['libc'].fchown
949
+ fchown.restype = ctypes.c_int32
950
+ fchown.argtypes = [ctypes.c_int32, __uid_t, __gid_t]
951
+ except AttributeError:
952
+ pass
953
+ try:
954
+ lchown = _libraries['libc'].lchown
955
+ lchown.restype = ctypes.c_int32
956
+ lchown.argtypes = [ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t]
957
+ except AttributeError:
958
+ pass
959
+ try:
960
+ fchownat = _libraries['libc'].fchownat
961
+ fchownat.restype = ctypes.c_int32
962
+ fchownat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), __uid_t, __gid_t, ctypes.c_int32]
963
+ except AttributeError:
964
+ pass
965
+ try:
966
+ chdir = _libraries['libc'].chdir
967
+ chdir.restype = ctypes.c_int32
968
+ chdir.argtypes = [ctypes.POINTER(ctypes.c_char)]
969
+ except AttributeError:
970
+ pass
971
+ try:
972
+ fchdir = _libraries['libc'].fchdir
973
+ fchdir.restype = ctypes.c_int32
974
+ fchdir.argtypes = [ctypes.c_int32]
975
+ except AttributeError:
976
+ pass
977
+ try:
978
+ getcwd = _libraries['libc'].getcwd
979
+ getcwd.restype = ctypes.POINTER(ctypes.c_char)
980
+ getcwd.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
981
+ except AttributeError:
982
+ pass
983
+ try:
984
+ getwd = _libraries['libc'].getwd
985
+ getwd.restype = ctypes.POINTER(ctypes.c_char)
986
+ getwd.argtypes = [ctypes.POINTER(ctypes.c_char)]
987
+ except AttributeError:
988
+ pass
989
+ try:
990
+ dup = _libraries['libc'].dup
991
+ dup.restype = ctypes.c_int32
992
+ dup.argtypes = [ctypes.c_int32]
993
+ except AttributeError:
994
+ pass
995
+ try:
996
+ dup2 = _libraries['libc'].dup2
997
+ dup2.restype = ctypes.c_int32
998
+ dup2.argtypes = [ctypes.c_int32, ctypes.c_int32]
999
+ except AttributeError:
1000
+ pass
1001
+ __environ = ctypes.POINTER(ctypes.POINTER(ctypes.c_char))() # Variable ctypes.POINTER(ctypes.POINTER(ctypes.c_char))
1002
+ try:
1003
+ execve = _libraries['libc'].execve
1004
+ execve.restype = ctypes.c_int32
1005
+ execve.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0, ctypes.POINTER(ctypes.c_char) * 0]
1006
+ except AttributeError:
1007
+ pass
1008
+ try:
1009
+ fexecve = _libraries['libc'].fexecve
1010
+ fexecve.restype = ctypes.c_int32
1011
+ fexecve.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char) * 0, ctypes.POINTER(ctypes.c_char) * 0]
1012
+ except AttributeError:
1013
+ pass
1014
+ try:
1015
+ execv = _libraries['libc'].execv
1016
+ execv.restype = ctypes.c_int32
1017
+ execv.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0]
1018
+ except AttributeError:
1019
+ pass
1020
+ try:
1021
+ execle = _libraries['libc'].execle
1022
+ execle.restype = ctypes.c_int32
1023
+ execle.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1024
+ except AttributeError:
1025
+ pass
1026
+ try:
1027
+ execl = _libraries['libc'].execl
1028
+ execl.restype = ctypes.c_int32
1029
+ execl.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1030
+ except AttributeError:
1031
+ pass
1032
+ try:
1033
+ execvp = _libraries['libc'].execvp
1034
+ execvp.restype = ctypes.c_int32
1035
+ execvp.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char) * 0]
1036
+ except AttributeError:
1037
+ pass
1038
+ try:
1039
+ execlp = _libraries['libc'].execlp
1040
+ execlp.restype = ctypes.c_int32
1041
+ execlp.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1042
+ except AttributeError:
1043
+ pass
1044
+ try:
1045
+ nice = _libraries['libc'].nice
1046
+ nice.restype = ctypes.c_int32
1047
+ nice.argtypes = [ctypes.c_int32]
1048
+ except AttributeError:
1049
+ pass
1050
+ try:
1051
+ _exit = _libraries['libc']._exit
1052
+ _exit.restype = None
1053
+ _exit.argtypes = [ctypes.c_int32]
1054
+ except AttributeError:
1055
+ pass
1056
+ try:
1057
+ pathconf = _libraries['libc'].pathconf
1058
+ pathconf.restype = ctypes.c_int64
1059
+ pathconf.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
1060
+ except AttributeError:
1061
+ pass
1062
+ try:
1063
+ fpathconf = _libraries['libc'].fpathconf
1064
+ fpathconf.restype = ctypes.c_int64
1065
+ fpathconf.argtypes = [ctypes.c_int32, ctypes.c_int32]
1066
+ except AttributeError:
1067
+ pass
1068
+ try:
1069
+ sysconf = _libraries['libc'].sysconf
1070
+ sysconf.restype = ctypes.c_int64
1071
+ sysconf.argtypes = [ctypes.c_int32]
1072
+ except AttributeError:
1073
+ pass
1074
+ try:
1075
+ confstr = _libraries['libc'].confstr
1076
+ confstr.restype = size_t
1077
+ confstr.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), size_t]
1078
+ except AttributeError:
1079
+ pass
1080
+ __pid_t = ctypes.c_int32
1081
+ try:
1082
+ getpid = _libraries['libc'].getpid
1083
+ getpid.restype = __pid_t
1084
+ getpid.argtypes = []
1085
+ except AttributeError:
1086
+ pass
1087
+ try:
1088
+ getppid = _libraries['libc'].getppid
1089
+ getppid.restype = __pid_t
1090
+ getppid.argtypes = []
1091
+ except AttributeError:
1092
+ pass
1093
+ try:
1094
+ getpgrp = _libraries['libc'].getpgrp
1095
+ getpgrp.restype = __pid_t
1096
+ getpgrp.argtypes = []
1097
+ except AttributeError:
1098
+ pass
1099
+ try:
1100
+ __getpgid = _libraries['libc'].__getpgid
1101
+ __getpgid.restype = __pid_t
1102
+ __getpgid.argtypes = [__pid_t]
1103
+ except AttributeError:
1104
+ pass
1105
+ try:
1106
+ getpgid = _libraries['libc'].getpgid
1107
+ getpgid.restype = __pid_t
1108
+ getpgid.argtypes = [__pid_t]
1109
+ except AttributeError:
1110
+ pass
1111
+ try:
1112
+ setpgid = _libraries['libc'].setpgid
1113
+ setpgid.restype = ctypes.c_int32
1114
+ setpgid.argtypes = [__pid_t, __pid_t]
1115
+ except AttributeError:
1116
+ pass
1117
+ try:
1118
+ setpgrp = _libraries['libc'].setpgrp
1119
+ setpgrp.restype = ctypes.c_int32
1120
+ setpgrp.argtypes = []
1121
+ except AttributeError:
1122
+ pass
1123
+ try:
1124
+ setsid = _libraries['libc'].setsid
1125
+ setsid.restype = __pid_t
1126
+ setsid.argtypes = []
1127
+ except AttributeError:
1128
+ pass
1129
+ try:
1130
+ getsid = _libraries['libc'].getsid
1131
+ getsid.restype = __pid_t
1132
+ getsid.argtypes = [__pid_t]
1133
+ except AttributeError:
1134
+ pass
1135
+ try:
1136
+ getuid = _libraries['libc'].getuid
1137
+ getuid.restype = __uid_t
1138
+ getuid.argtypes = []
1139
+ except AttributeError:
1140
+ pass
1141
+ try:
1142
+ geteuid = _libraries['libc'].geteuid
1143
+ geteuid.restype = __uid_t
1144
+ geteuid.argtypes = []
1145
+ except AttributeError:
1146
+ pass
1147
+ try:
1148
+ getgid = _libraries['libc'].getgid
1149
+ getgid.restype = __gid_t
1150
+ getgid.argtypes = []
1151
+ except AttributeError:
1152
+ pass
1153
+ try:
1154
+ getegid = _libraries['libc'].getegid
1155
+ getegid.restype = __gid_t
1156
+ getegid.argtypes = []
1157
+ except AttributeError:
1158
+ pass
1159
+ try:
1160
+ getgroups = _libraries['libc'].getgroups
1161
+ getgroups.restype = ctypes.c_int32
1162
+ getgroups.argtypes = [ctypes.c_int32, ctypes.c_uint32 * 0]
1163
+ except AttributeError:
1164
+ pass
1165
+ try:
1166
+ setuid = _libraries['libc'].setuid
1167
+ setuid.restype = ctypes.c_int32
1168
+ setuid.argtypes = [__uid_t]
1169
+ except AttributeError:
1170
+ pass
1171
+ try:
1172
+ setreuid = _libraries['libc'].setreuid
1173
+ setreuid.restype = ctypes.c_int32
1174
+ setreuid.argtypes = [__uid_t, __uid_t]
1175
+ except AttributeError:
1176
+ pass
1177
+ try:
1178
+ seteuid = _libraries['libc'].seteuid
1179
+ seteuid.restype = ctypes.c_int32
1180
+ seteuid.argtypes = [__uid_t]
1181
+ except AttributeError:
1182
+ pass
1183
+ try:
1184
+ setgid = _libraries['libc'].setgid
1185
+ setgid.restype = ctypes.c_int32
1186
+ setgid.argtypes = [__gid_t]
1187
+ except AttributeError:
1188
+ pass
1189
+ try:
1190
+ setregid = _libraries['libc'].setregid
1191
+ setregid.restype = ctypes.c_int32
1192
+ setregid.argtypes = [__gid_t, __gid_t]
1193
+ except AttributeError:
1194
+ pass
1195
+ try:
1196
+ setegid = _libraries['libc'].setegid
1197
+ setegid.restype = ctypes.c_int32
1198
+ setegid.argtypes = [__gid_t]
1199
+ except AttributeError:
1200
+ pass
1201
+ try:
1202
+ fork = _libraries['libc'].fork
1203
+ fork.restype = __pid_t
1204
+ fork.argtypes = []
1205
+ except AttributeError:
1206
+ pass
1207
+ try:
1208
+ vfork = _libraries['libc'].vfork
1209
+ vfork.restype = ctypes.c_int32
1210
+ vfork.argtypes = []
1211
+ except AttributeError:
1212
+ pass
1213
+ try:
1214
+ ttyname = _libraries['libc'].ttyname
1215
+ ttyname.restype = ctypes.POINTER(ctypes.c_char)
1216
+ ttyname.argtypes = [ctypes.c_int32]
1217
+ except AttributeError:
1218
+ pass
1219
+ try:
1220
+ ttyname_r = _libraries['libc'].ttyname_r
1221
+ ttyname_r.restype = ctypes.c_int32
1222
+ ttyname_r.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), size_t]
1223
+ except AttributeError:
1224
+ pass
1225
+ try:
1226
+ isatty = _libraries['libc'].isatty
1227
+ isatty.restype = ctypes.c_int32
1228
+ isatty.argtypes = [ctypes.c_int32]
1229
+ except AttributeError:
1230
+ pass
1231
+ try:
1232
+ ttyslot = _libraries['libc'].ttyslot
1233
+ ttyslot.restype = ctypes.c_int32
1234
+ ttyslot.argtypes = []
1235
+ except AttributeError:
1236
+ pass
1237
+ try:
1238
+ link = _libraries['libc'].link
1239
+ link.restype = ctypes.c_int32
1240
+ link.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1241
+ except AttributeError:
1242
+ pass
1243
+ try:
1244
+ linkat = _libraries['libc'].linkat
1245
+ linkat.restype = ctypes.c_int32
1246
+ linkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
1247
+ except AttributeError:
1248
+ pass
1249
+ try:
1250
+ symlink = _libraries['libc'].symlink
1251
+ symlink.restype = ctypes.c_int32
1252
+ symlink.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1253
+ except AttributeError:
1254
+ pass
1255
+ try:
1256
+ readlink = _libraries['libc'].readlink
1257
+ readlink.restype = ssize_t
1258
+ readlink.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), size_t]
1259
+ except AttributeError:
1260
+ pass
1261
+ try:
1262
+ symlinkat = _libraries['libc'].symlinkat
1263
+ symlinkat.restype = ctypes.c_int32
1264
+ symlinkat.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_char)]
1265
+ except AttributeError:
1266
+ pass
1267
+ try:
1268
+ readlinkat = _libraries['libc'].readlinkat
1269
+ readlinkat.restype = ssize_t
1270
+ readlinkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), size_t]
1271
+ except AttributeError:
1272
+ pass
1273
+ try:
1274
+ unlink = _libraries['libc'].unlink
1275
+ unlink.restype = ctypes.c_int32
1276
+ unlink.argtypes = [ctypes.POINTER(ctypes.c_char)]
1277
+ except AttributeError:
1278
+ pass
1279
+ try:
1280
+ unlinkat = _libraries['libc'].unlinkat
1281
+ unlinkat.restype = ctypes.c_int32
1282
+ unlinkat.argtypes = [ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
1283
+ except AttributeError:
1284
+ pass
1285
+ try:
1286
+ rmdir = _libraries['libc'].rmdir
1287
+ rmdir.restype = ctypes.c_int32
1288
+ rmdir.argtypes = [ctypes.POINTER(ctypes.c_char)]
1289
+ except AttributeError:
1290
+ pass
1291
+ try:
1292
+ tcgetpgrp = _libraries['libc'].tcgetpgrp
1293
+ tcgetpgrp.restype = __pid_t
1294
+ tcgetpgrp.argtypes = [ctypes.c_int32]
1295
+ except AttributeError:
1296
+ pass
1297
+ try:
1298
+ tcsetpgrp = _libraries['libc'].tcsetpgrp
1299
+ tcsetpgrp.restype = ctypes.c_int32
1300
+ tcsetpgrp.argtypes = [ctypes.c_int32, __pid_t]
1301
+ except AttributeError:
1302
+ pass
1303
+ try:
1304
+ getlogin = _libraries['libc'].getlogin
1305
+ getlogin.restype = ctypes.POINTER(ctypes.c_char)
1306
+ getlogin.argtypes = []
1307
+ except AttributeError:
1308
+ pass
1309
+ try:
1310
+ getlogin_r = _libraries['libc'].getlogin_r
1311
+ getlogin_r.restype = ctypes.c_int32
1312
+ getlogin_r.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
1313
+ except AttributeError:
1314
+ pass
1315
+ try:
1316
+ setlogin = _libraries['libc'].setlogin
1317
+ setlogin.restype = ctypes.c_int32
1318
+ setlogin.argtypes = [ctypes.POINTER(ctypes.c_char)]
1319
+ except AttributeError:
1320
+ pass
1321
+ try:
1322
+ gethostname = _libraries['libc'].gethostname
1323
+ gethostname.restype = ctypes.c_int32
1324
+ gethostname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
1325
+ except AttributeError:
1326
+ pass
1327
+ try:
1328
+ sethostname = _libraries['libc'].sethostname
1329
+ sethostname.restype = ctypes.c_int32
1330
+ sethostname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
1331
+ except AttributeError:
1332
+ pass
1333
+ try:
1334
+ sethostid = _libraries['libc'].sethostid
1335
+ sethostid.restype = ctypes.c_int32
1336
+ sethostid.argtypes = [ctypes.c_int64]
1337
+ except AttributeError:
1338
+ pass
1339
+ try:
1340
+ getdomainname = _libraries['libc'].getdomainname
1341
+ getdomainname.restype = ctypes.c_int32
1342
+ getdomainname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
1343
+ except AttributeError:
1344
+ pass
1345
+ try:
1346
+ setdomainname = _libraries['libc'].setdomainname
1347
+ setdomainname.restype = ctypes.c_int32
1348
+ setdomainname.argtypes = [ctypes.POINTER(ctypes.c_char), size_t]
1349
+ except AttributeError:
1350
+ pass
1351
+ try:
1352
+ vhangup = _libraries['libc'].vhangup
1353
+ vhangup.restype = ctypes.c_int32
1354
+ vhangup.argtypes = []
1355
+ except AttributeError:
1356
+ pass
1357
+ try:
1358
+ revoke = _libraries['libc'].revoke
1359
+ revoke.restype = ctypes.c_int32
1360
+ revoke.argtypes = [ctypes.POINTER(ctypes.c_char)]
1361
+ except AttributeError:
1362
+ pass
1363
+ try:
1364
+ profil = _libraries['libc'].profil
1365
+ profil.restype = ctypes.c_int32
1366
+ profil.argtypes = [ctypes.POINTER(ctypes.c_uint16), size_t, size_t, ctypes.c_uint32]
1367
+ except AttributeError:
1368
+ pass
1369
+ try:
1370
+ acct = _libraries['libc'].acct
1371
+ acct.restype = ctypes.c_int32
1372
+ acct.argtypes = [ctypes.POINTER(ctypes.c_char)]
1373
+ except AttributeError:
1374
+ pass
1375
+ try:
1376
+ getusershell = _libraries['libc'].getusershell
1377
+ getusershell.restype = ctypes.POINTER(ctypes.c_char)
1378
+ getusershell.argtypes = []
1379
+ except AttributeError:
1380
+ pass
1381
+ try:
1382
+ endusershell = _libraries['libc'].endusershell
1383
+ endusershell.restype = None
1384
+ endusershell.argtypes = []
1385
+ except AttributeError:
1386
+ pass
1387
+ try:
1388
+ setusershell = _libraries['libc'].setusershell
1389
+ setusershell.restype = None
1390
+ setusershell.argtypes = []
1391
+ except AttributeError:
1392
+ pass
1393
+ try:
1394
+ daemon = _libraries['libc'].daemon
1395
+ daemon.restype = ctypes.c_int32
1396
+ daemon.argtypes = [ctypes.c_int32, ctypes.c_int32]
1397
+ except AttributeError:
1398
+ pass
1399
+ try:
1400
+ chroot = _libraries['libc'].chroot
1401
+ chroot.restype = ctypes.c_int32
1402
+ chroot.argtypes = [ctypes.POINTER(ctypes.c_char)]
1403
+ except AttributeError:
1404
+ pass
1405
+ try:
1406
+ getpass = _libraries['libc'].getpass
1407
+ getpass.restype = ctypes.POINTER(ctypes.c_char)
1408
+ getpass.argtypes = [ctypes.POINTER(ctypes.c_char)]
1409
+ except AttributeError:
1410
+ pass
1411
+ try:
1412
+ fsync = _libraries['libc'].fsync
1413
+ fsync.restype = ctypes.c_int32
1414
+ fsync.argtypes = [ctypes.c_int32]
1415
+ except AttributeError:
1416
+ pass
1417
+ try:
1418
+ gethostid = _libraries['libc'].gethostid
1419
+ gethostid.restype = ctypes.c_int64
1420
+ gethostid.argtypes = []
1421
+ except AttributeError:
1422
+ pass
1423
+ try:
1424
+ sync = _libraries['libc'].sync
1425
+ sync.restype = None
1426
+ sync.argtypes = []
1427
+ except AttributeError:
1428
+ pass
1429
+ try:
1430
+ getpagesize = _libraries['libc'].getpagesize
1431
+ getpagesize.restype = ctypes.c_int32
1432
+ getpagesize.argtypes = []
1433
+ except AttributeError:
1434
+ pass
1435
+ try:
1436
+ getdtablesize = _libraries['libc'].getdtablesize
1437
+ getdtablesize.restype = ctypes.c_int32
1438
+ getdtablesize.argtypes = []
1439
+ except AttributeError:
1440
+ pass
1441
+ try:
1442
+ truncate = _libraries['libc'].truncate
1443
+ truncate.restype = ctypes.c_int32
1444
+ truncate.argtypes = [ctypes.POINTER(ctypes.c_char), __off_t]
1445
+ except AttributeError:
1446
+ pass
1447
+ try:
1448
+ ftruncate = _libraries['libc'].ftruncate
1449
+ ftruncate.restype = ctypes.c_int32
1450
+ ftruncate.argtypes = [ctypes.c_int32, __off_t]
1451
+ except AttributeError:
1452
+ pass
1453
+ try:
1454
+ brk = _libraries['libc'].brk
1455
+ brk.restype = ctypes.c_int32
1456
+ brk.argtypes = [ctypes.POINTER(None)]
1457
+ except AttributeError:
1458
+ pass
1459
+ try:
1460
+ sbrk = _libraries['libc'].sbrk
1461
+ sbrk.restype = ctypes.POINTER(None)
1462
+ sbrk.argtypes = [intptr_t]
1463
+ except AttributeError:
1464
+ pass
1465
+ try:
1466
+ syscall = _libraries['libc'].syscall
1467
+ syscall.restype = ctypes.c_int64
1468
+ syscall.argtypes = [ctypes.c_int64]
1469
+ except AttributeError:
1470
+ pass
1471
+ try:
1472
+ lockf = _libraries['libc'].lockf
1473
+ lockf.restype = ctypes.c_int32
1474
+ lockf.argtypes = [ctypes.c_int32, ctypes.c_int32, __off_t]
1475
+ except AttributeError:
1476
+ pass
1477
+ try:
1478
+ fdatasync = _libraries['libc'].fdatasync
1479
+ fdatasync.restype = ctypes.c_int32
1480
+ fdatasync.argtypes = [ctypes.c_int32]
1481
+ except AttributeError:
1482
+ pass
1483
+ try:
1484
+ crypt = _libraries['libc'].crypt
1485
+ crypt.restype = ctypes.POINTER(ctypes.c_char)
1486
+ crypt.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
1487
+ except AttributeError:
1488
+ pass
1489
+ try:
1490
+ getentropy = _libraries['libc'].getentropy
1491
+ getentropy.restype = ctypes.c_int32
1492
+ getentropy.argtypes = [ctypes.POINTER(None), size_t]
1493
+ except AttributeError:
1494
+ pass
1495
+ __all__ = \
1496
+ ['Elf32_Addr', 'Elf32_Chdr', 'Elf32_Conflict', 'Elf32_Dyn',
1497
+ 'Elf32_Ehdr', 'Elf32_Half', 'Elf32_Lib', 'Elf32_Move',
1498
+ 'Elf32_Nhdr', 'Elf32_Off', 'Elf32_Phdr', 'Elf32_RegInfo',
1499
+ 'Elf32_Rel', 'Elf32_Rela', 'Elf32_Section', 'Elf32_Shdr',
1500
+ 'Elf32_Sword', 'Elf32_Sxword', 'Elf32_Sym', 'Elf32_Syminfo',
1501
+ 'Elf32_Verdaux', 'Elf32_Verdef', 'Elf32_Vernaux', 'Elf32_Verneed',
1502
+ 'Elf32_Versym', 'Elf32_Word', 'Elf32_Xword', 'Elf32_auxv_t',
1503
+ 'Elf32_gptab', 'Elf64_Addr', 'Elf64_Chdr', 'Elf64_Dyn',
1504
+ 'Elf64_Ehdr', 'Elf64_Half', 'Elf64_Lib', 'Elf64_Move',
1505
+ 'Elf64_Nhdr', 'Elf64_Off', 'Elf64_Phdr', 'Elf64_Rel',
1506
+ 'Elf64_Rela', 'Elf64_Section', 'Elf64_Shdr', 'Elf64_Sword',
1507
+ 'Elf64_Sxword', 'Elf64_Sym', 'Elf64_Syminfo', 'Elf64_Verdaux',
1508
+ 'Elf64_Verdef', 'Elf64_Vernaux', 'Elf64_Verneed', 'Elf64_Versym',
1509
+ 'Elf64_Word', 'Elf64_Xword', 'Elf64_auxv_t',
1510
+ 'Elf_MIPS_ABIFlags_v0', 'Elf_Options', 'Elf_Options_Hw',
1511
+ 'Val_GNU_MIPS_ABI_FP_64', 'Val_GNU_MIPS_ABI_FP_64A',
1512
+ 'Val_GNU_MIPS_ABI_FP_ANY', 'Val_GNU_MIPS_ABI_FP_DOUBLE',
1513
+ 'Val_GNU_MIPS_ABI_FP_MAX', 'Val_GNU_MIPS_ABI_FP_OLD_64',
1514
+ 'Val_GNU_MIPS_ABI_FP_SINGLE', 'Val_GNU_MIPS_ABI_FP_SOFT',
1515
+ 'Val_GNU_MIPS_ABI_FP_XX', '__environ', '__getpgid', '__gid_t',
1516
+ '__off_t', '__pid_t', '__uid_t', '__useconds_t', '_exit',
1517
+ 'access', 'acct', 'alarm', 'brk', 'c__Ea_Val_GNU_MIPS_ABI_FP_ANY',
1518
+ 'chdir', 'chown', 'chroot', 'close', 'closefrom', 'confstr',
1519
+ 'crypt', 'daemon', 'dup', 'dup2', 'endusershell', 'execl',
1520
+ 'execle', 'execlp', 'execv', 'execve', 'execvp', 'faccessat',
1521
+ 'fchdir', 'fchown', 'fchownat', 'fdatasync', 'fexecve', 'fork',
1522
+ 'fpathconf', 'fsync', 'ftruncate', 'getcwd', 'getdomainname',
1523
+ 'getdtablesize', 'getegid', 'getentropy', 'geteuid', 'getgid',
1524
+ 'getgroups', 'gethostid', 'gethostname', 'getlogin', 'getlogin_r',
1525
+ 'getpagesize', 'getpass', 'getpgid', 'getpgrp', 'getpid',
1526
+ 'getppid', 'getsid', 'getuid', 'getusershell', 'getwd', 'gid_t',
1527
+ 'intptr_t', 'isatty', 'lchown', 'link', 'linkat', 'lockf',
1528
+ 'lseek', 'madvise', 'mincore', 'mlock', 'mlockall', 'mmap',
1529
+ 'mode_t', 'mprotect', 'msync', 'munlock', 'munlockall', 'munmap',
1530
+ 'nice', 'off_t', 'pathconf', 'pause', 'pid_t', 'pipe',
1531
+ 'posix_madvise', 'pread', 'profil', 'pwrite', 'read', 'readlink',
1532
+ 'readlinkat', 'revoke', 'rmdir', 'sbrk', 'setdomainname',
1533
+ 'setegid', 'seteuid', 'setgid', 'sethostid', 'sethostname',
1534
+ 'setlogin', 'setpgid', 'setpgrp', 'setregid', 'setreuid',
1535
+ 'setsid', 'setuid', 'setusershell', 'shm_open', 'shm_unlink',
1536
+ 'size_t', 'sleep', 'socklen_t', 'ssize_t',
1537
+ 'struct_c__SA_Elf32_Chdr', 'struct_c__SA_Elf32_Dyn',
1538
+ 'struct_c__SA_Elf32_Ehdr', 'struct_c__SA_Elf32_Lib',
1539
+ 'struct_c__SA_Elf32_Move', 'struct_c__SA_Elf32_Nhdr',
1540
+ 'struct_c__SA_Elf32_Phdr', 'struct_c__SA_Elf32_RegInfo',
1541
+ 'struct_c__SA_Elf32_Rel', 'struct_c__SA_Elf32_Rela',
1542
+ 'struct_c__SA_Elf32_Shdr', 'struct_c__SA_Elf32_Sym',
1543
+ 'struct_c__SA_Elf32_Syminfo', 'struct_c__SA_Elf32_Verdaux',
1544
+ 'struct_c__SA_Elf32_Verdef', 'struct_c__SA_Elf32_Vernaux',
1545
+ 'struct_c__SA_Elf32_Verneed', 'struct_c__SA_Elf32_auxv_t',
1546
+ 'struct_c__SA_Elf64_Chdr', 'struct_c__SA_Elf64_Dyn',
1547
+ 'struct_c__SA_Elf64_Ehdr', 'struct_c__SA_Elf64_Lib',
1548
+ 'struct_c__SA_Elf64_Move', 'struct_c__SA_Elf64_Nhdr',
1549
+ 'struct_c__SA_Elf64_Phdr', 'struct_c__SA_Elf64_Rel',
1550
+ 'struct_c__SA_Elf64_Rela', 'struct_c__SA_Elf64_Shdr',
1551
+ 'struct_c__SA_Elf64_Sym', 'struct_c__SA_Elf64_Syminfo',
1552
+ 'struct_c__SA_Elf64_Verdaux', 'struct_c__SA_Elf64_Verdef',
1553
+ 'struct_c__SA_Elf64_Vernaux', 'struct_c__SA_Elf64_Verneed',
1554
+ 'struct_c__SA_Elf64_auxv_t', 'struct_c__SA_Elf_MIPS_ABIFlags_v0',
1555
+ 'struct_c__SA_Elf_Options', 'struct_c__SA_Elf_Options_Hw',
1556
+ 'struct_c__UA_Elf32_gptab_gt_entry',
1557
+ 'struct_c__UA_Elf32_gptab_gt_header', 'symlink', 'symlinkat',
1558
+ 'sync', 'syscall', 'sysconf', 'tcgetpgrp', 'tcsetpgrp',
1559
+ 'truncate', 'ttyname', 'ttyname_r', 'ttyslot', 'ualarm', 'uid_t',
1560
+ 'union_c__SA_Elf32_Dyn_d_un', 'union_c__SA_Elf32_auxv_t_a_un',
1561
+ 'union_c__SA_Elf64_Dyn_d_un', 'union_c__SA_Elf64_auxv_t_a_un',
1562
+ 'union_c__UA_Elf32_gptab', 'unlink', 'unlinkat', 'useconds_t',
1563
+ 'usleep', 'vfork', 'vhangup', 'write']
1564
+ _ELF_H = 1
1565
+ EI_NIDENT = (16)
1566
+ EI_MAG0 = 0
1567
+ ELFMAG0 = 0x7f
1568
+ EI_MAG1 = 1
1569
+ ELFMAG1 = 'E'
1570
+ EI_MAG2 = 2
1571
+ ELFMAG2 = 'L'
1572
+ EI_MAG3 = 3
1573
+ ELFMAG3 = 'F'
1574
+ ELFMAG = "\177ELF"
1575
+ SELFMAG = 4
1576
+ EI_CLASS = 4
1577
+ ELFCLASSNONE = 0
1578
+ ELFCLASS32 = 1
1579
+ ELFCLASS64 = 2
1580
+ ELFCLASSNUM = 3
1581
+ EI_DATA = 5
1582
+ ELFDATANONE = 0
1583
+ ELFDATA2LSB = 1
1584
+ ELFDATA2MSB = 2
1585
+ ELFDATANUM = 3
1586
+ EI_VERSION = 6
1587
+ EI_OSABI = 7
1588
+ ELFOSABI_NONE = 0
1589
+ ELFOSABI_SYSV = 0
1590
+ ELFOSABI_HPUX = 1
1591
+ ELFOSABI_NETBSD = 2
1592
+ ELFOSABI_GNU = 3
1593
+ ELFOSABI_LINUX = ELFOSABI_GNU
1594
+ ELFOSABI_SOLARIS = 6
1595
+ ELFOSABI_AIX = 7
1596
+ ELFOSABI_IRIX = 8
1597
+ ELFOSABI_FREEBSD = 9
1598
+ ELFOSABI_TRU64 = 10
1599
+ ELFOSABI_MODESTO = 11
1600
+ ELFOSABI_OPENBSD = 12
1601
+ ELFOSABI_ARM_AEABI = 64
1602
+ ELFOSABI_ARM = 97
1603
+ ELFOSABI_STANDALONE = 255
1604
+ EI_ABIVERSION = 8
1605
+ EI_PAD = 9
1606
+ ET_NONE = 0
1607
+ ET_REL = 1
1608
+ ET_EXEC = 2
1609
+ ET_DYN = 3
1610
+ ET_CORE = 4
1611
+ ET_NUM = 5
1612
+ ET_LOOS = 0xfe00
1613
+ ET_HIOS = 0xfeff
1614
+ ET_LOPROC = 0xff00
1615
+ ET_HIPROC = 0xffff
1616
+ EM_NONE = 0
1617
+ EM_M32 = 1
1618
+ EM_SPARC = 2
1619
+ EM_386 = 3
1620
+ EM_68K = 4
1621
+ EM_88K = 5
1622
+ EM_IAMCU = 6
1623
+ EM_860 = 7
1624
+ EM_MIPS = 8
1625
+ EM_S370 = 9
1626
+ EM_MIPS_RS3_LE = 10
1627
+ EM_PARISC = 15
1628
+ EM_VPP500 = 17
1629
+ EM_SPARC32PLUS = 18
1630
+ EM_960 = 19
1631
+ EM_PPC = 20
1632
+ EM_PPC64 = 21
1633
+ EM_S390 = 22
1634
+ EM_SPU = 23
1635
+ EM_V800 = 36
1636
+ EM_FR20 = 37
1637
+ EM_RH32 = 38
1638
+ EM_RCE = 39
1639
+ EM_ARM = 40
1640
+ EM_FAKE_ALPHA = 41
1641
+ EM_SH = 42
1642
+ EM_SPARCV9 = 43
1643
+ EM_TRICORE = 44
1644
+ EM_ARC = 45
1645
+ EM_H8_300 = 46
1646
+ EM_H8_300H = 47
1647
+ EM_H8S = 48
1648
+ EM_H8_500 = 49
1649
+ EM_IA_64 = 50
1650
+ EM_MIPS_X = 51
1651
+ EM_COLDFIRE = 52
1652
+ EM_68HC12 = 53
1653
+ EM_MMA = 54
1654
+ EM_PCP = 55
1655
+ EM_NCPU = 56
1656
+ EM_NDR1 = 57
1657
+ EM_STARCORE = 58
1658
+ EM_ME16 = 59
1659
+ EM_ST100 = 60
1660
+ EM_TINYJ = 61
1661
+ EM_X86_64 = 62
1662
+ EM_PDSP = 63
1663
+ EM_PDP10 = 64
1664
+ EM_PDP11 = 65
1665
+ EM_FX66 = 66
1666
+ EM_ST9PLUS = 67
1667
+ EM_ST7 = 68
1668
+ EM_68HC16 = 69
1669
+ EM_68HC11 = 70
1670
+ EM_68HC08 = 71
1671
+ EM_68HC05 = 72
1672
+ EM_SVX = 73
1673
+ EM_ST19 = 74
1674
+ EM_VAX = 75
1675
+ EM_CRIS = 76
1676
+ EM_JAVELIN = 77
1677
+ EM_FIREPATH = 78
1678
+ EM_ZSP = 79
1679
+ EM_MMIX = 80
1680
+ EM_HUANY = 81
1681
+ EM_PRISM = 82
1682
+ EM_AVR = 83
1683
+ EM_FR30 = 84
1684
+ EM_D10V = 85
1685
+ EM_D30V = 86
1686
+ EM_V850 = 87
1687
+ EM_M32R = 88
1688
+ EM_MN10300 = 89
1689
+ EM_MN10200 = 90
1690
+ EM_PJ = 91
1691
+ EM_OPENRISC = 92
1692
+ EM_ARC_COMPACT = 93
1693
+ EM_XTENSA = 94
1694
+ EM_VIDEOCORE = 95
1695
+ EM_TMM_GPP = 96
1696
+ EM_NS32K = 97
1697
+ EM_TPC = 98
1698
+ EM_SNP1K = 99
1699
+ EM_ST200 = 100
1700
+ EM_IP2K = 101
1701
+ EM_MAX = 102
1702
+ EM_CR = 103
1703
+ EM_F2MC16 = 104
1704
+ EM_MSP430 = 105
1705
+ EM_BLACKFIN = 106
1706
+ EM_SE_C33 = 107
1707
+ EM_SEP = 108
1708
+ EM_ARCA = 109
1709
+ EM_UNICORE = 110
1710
+ EM_EXCESS = 111
1711
+ EM_DXP = 112
1712
+ EM_ALTERA_NIOS2 = 113
1713
+ EM_CRX = 114
1714
+ EM_XGATE = 115
1715
+ EM_C166 = 116
1716
+ EM_M16C = 117
1717
+ EM_DSPIC30F = 118
1718
+ EM_CE = 119
1719
+ EM_M32C = 120
1720
+ EM_TSK3000 = 131
1721
+ EM_RS08 = 132
1722
+ EM_SHARC = 133
1723
+ EM_ECOG2 = 134
1724
+ EM_SCORE7 = 135
1725
+ EM_DSP24 = 136
1726
+ EM_VIDEOCORE3 = 137
1727
+ EM_LATTICEMICO32 = 138
1728
+ EM_SE_C17 = 139
1729
+ EM_TI_C6000 = 140
1730
+ EM_TI_C2000 = 141
1731
+ EM_TI_C5500 = 142
1732
+ EM_TI_ARP32 = 143
1733
+ EM_TI_PRU = 144
1734
+ EM_MMDSP_PLUS = 160
1735
+ EM_CYPRESS_M8C = 161
1736
+ EM_R32C = 162
1737
+ EM_TRIMEDIA = 163
1738
+ EM_QDSP6 = 164
1739
+ EM_8051 = 165
1740
+ EM_STXP7X = 166
1741
+ EM_NDS32 = 167
1742
+ EM_ECOG1X = 168
1743
+ EM_MAXQ30 = 169
1744
+ EM_XIMO16 = 170
1745
+ EM_MANIK = 171
1746
+ EM_CRAYNV2 = 172
1747
+ EM_RX = 173
1748
+ EM_METAG = 174
1749
+ EM_MCST_ELBRUS = 175
1750
+ EM_ECOG16 = 176
1751
+ EM_CR16 = 177
1752
+ EM_ETPU = 178
1753
+ EM_SLE9X = 179
1754
+ EM_L10M = 180
1755
+ EM_K10M = 181
1756
+ EM_AARCH64 = 183
1757
+ EM_AVR32 = 185
1758
+ EM_STM8 = 186
1759
+ EM_TILE64 = 187
1760
+ EM_TILEPRO = 188
1761
+ EM_MICROBLAZE = 189
1762
+ EM_CUDA = 190
1763
+ EM_TILEGX = 191
1764
+ EM_CLOUDSHIELD = 192
1765
+ EM_COREA_1ST = 193
1766
+ EM_COREA_2ND = 194
1767
+ EM_ARCV2 = 195
1768
+ EM_OPEN8 = 196
1769
+ EM_RL78 = 197
1770
+ EM_VIDEOCORE5 = 198
1771
+ EM_78KOR = 199
1772
+ EM_56800EX = 200
1773
+ EM_BA1 = 201
1774
+ EM_BA2 = 202
1775
+ EM_XCORE = 203
1776
+ EM_MCHP_PIC = 204
1777
+ EM_INTELGT = 205
1778
+ EM_KM32 = 210
1779
+ EM_KMX32 = 211
1780
+ EM_EMX16 = 212
1781
+ EM_EMX8 = 213
1782
+ EM_KVARC = 214
1783
+ EM_CDP = 215
1784
+ EM_COGE = 216
1785
+ EM_COOL = 217
1786
+ EM_NORC = 218
1787
+ EM_CSR_KALIMBA = 219
1788
+ EM_Z80 = 220
1789
+ EM_VISIUM = 221
1790
+ EM_FT32 = 222
1791
+ EM_MOXIE = 223
1792
+ EM_AMDGPU = 224
1793
+ EM_RISCV = 243
1794
+ EM_BPF = 247
1795
+ EM_CSKY = 252
1796
+ EM_NUM = 253
1797
+ EM_ARC_A5 = EM_ARC_COMPACT
1798
+ EM_ALPHA = 0x9026
1799
+ EV_NONE = 0
1800
+ EV_CURRENT = 1
1801
+ EV_NUM = 2
1802
+ SHN_UNDEF = 0
1803
+ SHN_LORESERVE = 0xff00
1804
+ SHN_LOPROC = 0xff00
1805
+ SHN_HIPROC = 0xff1f
1806
+ SHN_LOOS = 0xff20
1807
+ SHN_HIOS = 0xff3f
1808
+ SHN_ABS = 0xfff1
1809
+ SHN_COMMON = 0xfff2
1810
+ SHN_XINDEX = 0xffff
1811
+ SHN_HIRESERVE = 0xffff
1812
+ SHT_NULL = 0
1813
+ SHT_PROGBITS = 1
1814
+ SHT_SYMTAB = 2
1815
+ SHT_STRTAB = 3
1816
+ SHT_RELA = 4
1817
+ SHT_HASH = 5
1818
+ SHT_DYNAMIC = 6
1819
+ SHT_NOTE = 7
1820
+ SHT_NOBITS = 8
1821
+ SHT_REL = 9
1822
+ SHT_SHLIB = 10
1823
+ SHT_DYNSYM = 11
1824
+ SHT_INIT_ARRAY = 14
1825
+ SHT_FINI_ARRAY = 15
1826
+ SHT_PREINIT_ARRAY = 16
1827
+ SHT_GROUP = 17
1828
+ SHT_SYMTAB_SHNDX = 18
1829
+ SHT_NUM = 19
1830
+ SHT_LOOS = 0x60000000
1831
+ SHT_GNU_ATTRIBUTES = 0x6ffffff5
1832
+ SHT_GNU_HASH = 0x6ffffff6
1833
+ SHT_GNU_LIBLIST = 0x6ffffff7
1834
+ SHT_CHECKSUM = 0x6ffffff8
1835
+ SHT_LOSUNW = 0x6ffffffa
1836
+ SHT_SUNW_move = 0x6ffffffa
1837
+ SHT_SUNW_COMDAT = 0x6ffffffb
1838
+ SHT_SUNW_syminfo = 0x6ffffffc
1839
+ SHT_GNU_verdef = 0x6ffffffd
1840
+ SHT_GNU_verneed = 0x6ffffffe
1841
+ SHT_GNU_versym = 0x6fffffff
1842
+ SHT_HISUNW = 0x6fffffff
1843
+ SHT_HIOS = 0x6fffffff
1844
+ SHT_LOPROC = 0x70000000
1845
+ SHT_HIPROC = 0x7fffffff
1846
+ SHT_LOUSER = 0x80000000
1847
+ SHT_HIUSER = 0x8fffffff
1848
+ SHF_WRITE = (1 << 0)
1849
+ SHF_ALLOC = (1 << 1)
1850
+ SHF_EXECINSTR = (1 << 2)
1851
+ SHF_MERGE = (1 << 4)
1852
+ SHF_STRINGS = (1 << 5)
1853
+ SHF_INFO_LINK = (1 << 6)
1854
+ SHF_LINK_ORDER = (1 << 7)
1855
+ SHF_GROUP = (1 << 9)
1856
+ SHF_TLS = (1 << 10)
1857
+ SHF_COMPRESSED = (1 << 11)
1858
+ SHF_MASKOS = 0x0ff00000
1859
+ SHF_MASKPROC = 0xf0000000
1860
+ SHF_GNU_RETAIN = (1 << 21)
1861
+ ELFCOMPRESS_ZLIB = 1
1862
+ ELFCOMPRESS_LOOS = 0x60000000
1863
+ ELFCOMPRESS_HIOS = 0x6fffffff
1864
+ ELFCOMPRESS_LOPROC = 0x70000000
1865
+ ELFCOMPRESS_HIPROC = 0x7fffffff
1866
+ GRP_COMDAT = 0x1
1867
+ SYMINFO_BT_SELF = 0xffff
1868
+ SYMINFO_BT_PARENT = 0xfffe
1869
+ SYMINFO_BT_LOWRESERVE = 0xff00
1870
+ SYMINFO_FLG_DIRECT = 0x0001
1871
+ SYMINFO_FLG_PASSTHRU = 0x0002
1872
+ SYMINFO_FLG_COPY = 0x0004
1873
+ SYMINFO_NONE = 0
1874
+ SYMINFO_CURRENT = 1
1875
+ SYMINFO_NUM = 2
1876
+ def ELF32_ST_BIND(val): return (((ctypes.c_ubyte) (val)) >> 4)
1877
+ def ELF32_ST_TYPE(val): return ((val) & 0xf)
1878
+ def ELF32_ST_INFO(bind, type): return (((bind) << 4) + ((type) & 0xf))
1879
+ def ELF64_ST_BIND(val): return ELF32_ST_BIND (val)
1880
+ def ELF64_ST_TYPE(val): return ELF32_ST_TYPE (val)
1881
+ def ELF64_ST_INFO(bind, type): return ELF32_ST_INFO ((bind), (type))
1882
+ STB_LOCAL = 0
1883
+ STB_GLOBAL = 1
1884
+ STB_WEAK = 2
1885
+ STB_NUM = 3
1886
+ STB_LOOS = 10
1887
+ STB_GNU_UNIQUE = 10
1888
+ STB_HIOS = 12
1889
+ STB_LOPROC = 13
1890
+ STB_HIPROC = 15
1891
+ STT_NOTYPE = 0
1892
+ STT_OBJECT = 1
1893
+ STT_FUNC = 2
1894
+ STT_SECTION = 3
1895
+ STT_FILE = 4
1896
+ STT_COMMON = 5
1897
+ STT_TLS = 6
1898
+ STT_NUM = 7
1899
+ STT_LOOS = 10
1900
+ STT_GNU_IFUNC = 10
1901
+ STT_HIOS = 12
1902
+ STT_LOPROC = 13
1903
+ STT_HIPROC = 15
1904
+ STN_UNDEF = 0
1905
+ def ELF32_ST_VISIBILITY(o): return ((o) & 0x03)
1906
+ def ELF64_ST_VISIBILITY(o): return ELF32_ST_VISIBILITY (o)
1907
+ STV_DEFAULT = 0
1908
+ STV_INTERNAL = 1
1909
+ STV_HIDDEN = 2
1910
+ STV_PROTECTED = 3
1911
+ def ELF32_R_SYM(val): return ((val) >> 8)
1912
+ def ELF32_R_TYPE(val): return ((val) & 0xff)
1913
+ def ELF32_R_INFO(sym, type): return (((sym) << 8) + ((type) & 0xff))
1914
+ def ELF64_R_SYM(i): return ((i) >> 32)
1915
+ def ELF64_R_TYPE(i): return ((i) & 0xffffffff)
1916
+ def ELF64_R_INFO(sym,type): return ((((Elf64_Xword) (sym)) << 32) + (type))
1917
+ PN_XNUM = 0xffff
1918
+ PT_NULL = 0
1919
+ PT_LOAD = 1
1920
+ PT_DYNAMIC = 2
1921
+ PT_INTERP = 3
1922
+ PT_NOTE = 4
1923
+ PT_SHLIB = 5
1924
+ PT_PHDR = 6
1925
+ PT_TLS = 7
1926
+ PT_NUM = 8
1927
+ PT_LOOS = 0x60000000
1928
+ PT_GNU_EH_FRAME = 0x6474e550
1929
+ PT_GNU_STACK = 0x6474e551
1930
+ PT_GNU_RELRO = 0x6474e552
1931
+ PT_GNU_PROPERTY = 0x6474e553
1932
+ PT_LOSUNW = 0x6ffffffa
1933
+ PT_SUNWBSS = 0x6ffffffa
1934
+ PT_SUNWSTACK = 0x6ffffffb
1935
+ PT_HISUNW = 0x6fffffff
1936
+ PT_HIOS = 0x6fffffff
1937
+ PT_LOPROC = 0x70000000
1938
+ PT_HIPROC = 0x7fffffff
1939
+ PF_X = (1 << 0)
1940
+ PF_W = (1 << 1)
1941
+ PF_R = (1 << 2)
1942
+ PF_MASKOS = 0x0ff00000
1943
+ PF_MASKPROC = 0xf0000000
1944
+ NT_PRSTATUS = 1
1945
+ NT_FPREGSET = 2
1946
+ NT_PRPSINFO = 3
1947
+ NT_PRXREG = 4
1948
+ NT_TASKSTRUCT = 4
1949
+ NT_PLATFORM = 5
1950
+ NT_AUXV = 6
1951
+ NT_GWINDOWS = 7
1952
+ NT_ASRS = 8
1953
+ NT_PSTATUS = 10
1954
+ NT_PSINFO = 13
1955
+ NT_PRCRED = 14
1956
+ NT_UTSNAME = 15
1957
+ NT_LWPSTATUS = 16
1958
+ NT_LWPSINFO = 17
1959
+ NT_PRFPXREG = 20
1960
+ NT_PRXFPREG = 0x46e62b7f
1961
+ NT_PPC_VMX = 0x100
1962
+ NT_PPC_SPE = 0x101
1963
+ NT_PPC_VSX = 0x102
1964
+ NT_PPC_TAR = 0x103
1965
+ NT_PPC_PPR = 0x104
1966
+ NT_PPC_DSCR = 0x105
1967
+ NT_PPC_EBB = 0x106
1968
+ NT_PPC_PMU = 0x107
1969
+ NT_PPC_TM_CGPR = 0x108
1970
+ NT_PPC_TM_CFPR = 0x109
1971
+ NT_PPC_TM_CVMX = 0x10a
1972
+ NT_PPC_TM_CVSX = 0x10b
1973
+ NT_PPC_TM_SPR = 0x10c
1974
+ NT_386_TLS = 0x200
1975
+ NT_386_IOPERM = 0x201
1976
+ NT_X86_XSTATE = 0x202
1977
+ NT_S390_HIGH_GPRS = 0x300
1978
+ NT_S390_TIMER = 0x301
1979
+ NT_S390_TODCMP = 0x302
1980
+ NT_S390_TODPREG = 0x303
1981
+ NT_S390_CTRS = 0x304
1982
+ NT_S390_PREFIX = 0x305
1983
+ NT_S390_LAST_BREAK = 0x306
1984
+ NT_S390_SYSTEM_CALL = 0x307
1985
+ NT_S390_TDB = 0x308
1986
+ NT_S390_VXRS_HIGH = 0x30a
1987
+ NT_S390_GS_CB = 0x30b
1988
+ NT_S390_RI_CB = 0x30d
1989
+ NT_ARM_VFP = 0x400
1990
+ NT_ARM_TLS = 0x401
1991
+ NT_ARM_HW_BREAK = 0x402
1992
+ NT_ARM_HW_WATCH = 0x403
1993
+ NT_ARM_SYSTEM_CALL = 0x404
1994
+ NT_VMCOREDD = 0x700
1995
+ NT_MIPS_DSP = 0x800
1996
+ NT_MIPS_FP_MODE = 0x801
1997
+ NT_MIPS_MSA = 0x802
1998
+ NT_VERSION = 1
1999
+ DT_NULL = 0
2000
+ DT_NEEDED = 1
2001
+ DT_PLTRELSZ = 2
2002
+ DT_PLTGOT = 3
2003
+ DT_HASH = 4
2004
+ DT_STRTAB = 5
2005
+ DT_SYMTAB = 6
2006
+ DT_RELA = 7
2007
+ DT_RELASZ = 8
2008
+ DT_RELAENT = 9
2009
+ DT_STRSZ = 10
2010
+ DT_SYMENT = 11
2011
+ DT_INIT = 12
2012
+ DT_FINI = 13
2013
+ DT_SONAME = 14
2014
+ DT_RPATH = 15
2015
+ DT_SYMBOLIC = 16
2016
+ DT_REL = 17
2017
+ DT_RELSZ = 18
2018
+ DT_RELENT = 19
2019
+ DT_PLTREL = 20
2020
+ DT_DEBUG = 21
2021
+ DT_TEXTREL = 22
2022
+ DT_JMPREL = 23
2023
+ DT_BIND_NOW = 24
2024
+ DT_INIT_ARRAY = 25
2025
+ DT_FINI_ARRAY = 26
2026
+ DT_INIT_ARRAYSZ = 27
2027
+ DT_FINI_ARRAYSZ = 28
2028
+ DT_RUNPATH = 29
2029
+ DT_FLAGS = 30
2030
+ DT_ENCODING = 32
2031
+ DT_PREINIT_ARRAY = 32
2032
+ DT_PREINIT_ARRAYSZ = 33
2033
+ DT_SYMTAB_SHNDX = 34
2034
+ DT_NUM = 35
2035
+ DT_LOOS = 0x6000000d
2036
+ DT_HIOS = 0x6ffff000
2037
+ DT_LOPROC = 0x70000000
2038
+ DT_HIPROC = 0x7fffffff
2039
+ DT_VALRNGLO = 0x6ffffd00
2040
+ DT_GNU_PRELINKED = 0x6ffffdf5
2041
+ DT_GNU_CONFLICTSZ = 0x6ffffdf6
2042
+ DT_GNU_LIBLISTSZ = 0x6ffffdf7
2043
+ DT_CHECKSUM = 0x6ffffdf8
2044
+ DT_PLTPADSZ = 0x6ffffdf9
2045
+ DT_MOVEENT = 0x6ffffdfa
2046
+ DT_MOVESZ = 0x6ffffdfb
2047
+ DT_FEATURE_1 = 0x6ffffdfc
2048
+ DT_SYMINSZ = 0x6ffffdfe
2049
+ DT_SYMINENT = 0x6ffffdff
2050
+ DT_VALRNGHI = 0x6ffffdff
2051
+ def DT_VALTAGIDX(tag): return (DT_VALRNGHI - (tag))
2052
+ DT_VALNUM = 12
2053
+ DT_ADDRRNGLO = 0x6ffffe00
2054
+ DT_GNU_HASH = 0x6ffffef5
2055
+ DT_TLSDESC_PLT = 0x6ffffef6
2056
+ DT_TLSDESC_GOT = 0x6ffffef7
2057
+ DT_GNU_CONFLICT = 0x6ffffef8
2058
+ DT_GNU_LIBLIST = 0x6ffffef9
2059
+ DT_CONFIG = 0x6ffffefa
2060
+ DT_DEPAUDIT = 0x6ffffefb
2061
+ DT_AUDIT = 0x6ffffefc
2062
+ DT_PLTPAD = 0x6ffffefd
2063
+ DT_MOVETAB = 0x6ffffefe
2064
+ DT_SYMINFO = 0x6ffffeff
2065
+ DT_ADDRRNGHI = 0x6ffffeff
2066
+ def DT_ADDRTAGIDX(tag): return (DT_ADDRRNGHI - (tag))
2067
+ DT_ADDRNUM = 11
2068
+ DT_VERSYM = 0x6ffffff0
2069
+ DT_RELACOUNT = 0x6ffffff9
2070
+ DT_RELCOUNT = 0x6ffffffa
2071
+ DT_FLAGS_1 = 0x6ffffffb
2072
+ DT_VERDEFNUM = 0x6ffffffd
2073
+ DT_VERNEEDNUM = 0x6fffffff
2074
+ def DT_VERSIONTAGIDX(tag): return (DT_VERNEEDNUM - (tag))
2075
+ DT_VERSIONTAGNUM = 16
2076
+ DT_AUXILIARY = 0x7ffffffd
2077
+ DT_FILTER = 0x7fffffff
2078
+ def DT_EXTRATAGIDX(tag): return ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
2079
+ DT_EXTRANUM = 3
2080
+ DF_ORIGIN = 0x00000001
2081
+ DF_SYMBOLIC = 0x00000002
2082
+ DF_TEXTREL = 0x00000004
2083
+ DF_BIND_NOW = 0x00000008
2084
+ DF_STATIC_TLS = 0x00000010
2085
+ DF_1_NOW = 0x00000001
2086
+ DF_1_GLOBAL = 0x00000002
2087
+ DF_1_GROUP = 0x00000004
2088
+ DF_1_NODELETE = 0x00000008
2089
+ DF_1_LOADFLTR = 0x00000010
2090
+ DF_1_INITFIRST = 0x00000020
2091
+ DF_1_NOOPEN = 0x00000040
2092
+ DF_1_ORIGIN = 0x00000080
2093
+ DF_1_DIRECT = 0x00000100
2094
+ DF_1_TRANS = 0x00000200
2095
+ DF_1_INTERPOSE = 0x00000400
2096
+ DF_1_NODEFLIB = 0x00000800
2097
+ DF_1_NODUMP = 0x00001000
2098
+ DF_1_CONFALT = 0x00002000
2099
+ DF_1_ENDFILTEE = 0x00004000
2100
+ DF_1_DISPRELDNE = 0x00008000
2101
+ DF_1_DISPRELPND = 0x00010000
2102
+ DF_1_NODIRECT = 0x00020000
2103
+ DF_1_IGNMULDEF = 0x00040000
2104
+ DF_1_NOKSYMS = 0x00080000
2105
+ DF_1_NOHDR = 0x00100000
2106
+ DF_1_EDITED = 0x00200000
2107
+ DF_1_NORELOC = 0x00400000
2108
+ DF_1_SYMINTPOSE = 0x00800000
2109
+ DF_1_GLOBAUDIT = 0x01000000
2110
+ DF_1_SINGLETON = 0x02000000
2111
+ DF_1_STUB = 0x04000000
2112
+ DF_1_PIE = 0x08000000
2113
+ DF_1_KMOD = 0x10000000
2114
+ DF_1_WEAKFILTER = 0x20000000
2115
+ DF_1_NOCOMMON = 0x40000000
2116
+ DTF_1_PARINIT = 0x00000001
2117
+ DTF_1_CONFEXP = 0x00000002
2118
+ DF_P1_LAZYLOAD = 0x00000001
2119
+ VER_DEF_NONE = 0
2120
+ VER_DEF_CURRENT = 1
2121
+ VER_DEF_NUM = 2
2122
+ VER_FLG_BASE = 0x1
2123
+ VER_FLG_WEAK = 0x2
2124
+ VER_NDX_LOCAL = 0
2125
+ VER_NDX_GLOBAL = 1
2126
+ VER_NDX_LORESERVE = 0xff00
2127
+ VER_NDX_ELIMINATE = 0xff01
2128
+ VER_NEED_NONE = 0
2129
+ VER_NEED_CURRENT = 1
2130
+ VER_NEED_NUM = 2
2131
+ VER_FLG_WEAK = 0x2
2132
+ AT_NULL = 0
2133
+ AT_IGNORE = 1
2134
+ AT_EXECFD = 2
2135
+ AT_PHDR = 3
2136
+ AT_PHENT = 4
2137
+ AT_PHNUM = 5
2138
+ AT_PAGESZ = 6
2139
+ AT_BASE = 7
2140
+ AT_FLAGS = 8
2141
+ AT_ENTRY = 9
2142
+ AT_NOTELF = 10
2143
+ AT_UID = 11
2144
+ AT_EUID = 12
2145
+ AT_GID = 13
2146
+ AT_EGID = 14
2147
+ AT_CLKTCK = 17
2148
+ AT_PLATFORM = 15
2149
+ AT_FPUCW = 18
2150
+ AT_DCACHEBSIZE = 19
2151
+ AT_ICACHEBSIZE = 20
2152
+ AT_UCACHEBSIZE = 21
2153
+ AT_IGNOREPPC = 22
2154
+ AT_SECURE = 23
2155
+ AT_BASE_PLATFORM = 24
2156
+ AT_RANDOM = 25
2157
+ AT_EXECFN = 31
2158
+ AT_SYSINFO = 32
2159
+ AT_SYSINFO_EHDR = 33
2160
+ AT_L1I_CACHESHAPE = 34
2161
+ AT_L1D_CACHESHAPE = 35
2162
+ AT_L2_CACHESHAPE = 36
2163
+ AT_L3_CACHESHAPE = 37
2164
+ AT_L1I_CACHESIZE = 40
2165
+ AT_L1I_CACHEGEOMETRY = 41
2166
+ AT_L1D_CACHESIZE = 42
2167
+ AT_L1D_CACHEGEOMETRY = 43
2168
+ AT_L2_CACHESIZE = 44
2169
+ AT_L2_CACHEGEOMETRY = 45
2170
+ AT_L3_CACHESIZE = 46
2171
+ AT_L3_CACHEGEOMETRY = 47
2172
+ AT_MINSIGSTKSZ = 51
2173
+ ELF_NOTE_SOLARIS = "SUNW Solaris"
2174
+ ELF_NOTE_GNU = "GNU"
2175
+ ELF_NOTE_FDO = "FDO"
2176
+ ELF_NOTE_PAGESIZE_HINT = 1
2177
+ NT_GNU_ABI_TAG = 1
2178
+ ELF_NOTE_ABI = NT_GNU_ABI_TAG
2179
+ ELF_NOTE_OS_LINUX = 0
2180
+ ELF_NOTE_OS_GNU = 1
2181
+ ELF_NOTE_OS_SOLARIS2 = 2
2182
+ ELF_NOTE_OS_FREEBSD = 3
2183
+ NT_GNU_HWCAP = 2
2184
+ NT_GNU_BUILD_ID = 3
2185
+ NT_GNU_GOLD_VERSION = 4
2186
+ NT_GNU_PROPERTY_TYPE_0 = 5
2187
+ NT_FDO_PACKAGING_METADATA = 0xcafe1a7e
2188
+ NOTE_GNU_PROPERTY_SECTION_NAME = ".note.gnu.property"
2189
+ GNU_PROPERTY_STACK_SIZE = 1
2190
+ GNU_PROPERTY_NO_COPY_ON_PROTECTED = 2
2191
+ GNU_PROPERTY_UINT32_AND_LO = 0xb0000000
2192
+ GNU_PROPERTY_UINT32_AND_HI = 0xb0007fff
2193
+ GNU_PROPERTY_UINT32_OR_LO = 0xb0008000
2194
+ GNU_PROPERTY_UINT32_OR_HI = 0xb000ffff
2195
+ GNU_PROPERTY_1_NEEDED = GNU_PROPERTY_UINT32_OR_LO
2196
+ GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS = (1 << 0)
2197
+ GNU_PROPERTY_LOPROC = 0xc0000000
2198
+ GNU_PROPERTY_HIPROC = 0xdfffffff
2199
+ GNU_PROPERTY_LOUSER = 0xe0000000
2200
+ GNU_PROPERTY_HIUSER = 0xffffffff
2201
+ GNU_PROPERTY_AARCH64_FEATURE_1_AND = 0xc0000000
2202
+ GNU_PROPERTY_AARCH64_FEATURE_1_BTI = (1 << 0)
2203
+ GNU_PROPERTY_AARCH64_FEATURE_1_PAC = (1 << 1)
2204
+ GNU_PROPERTY_X86_ISA_1_USED = 0xc0010002
2205
+ GNU_PROPERTY_X86_ISA_1_NEEDED = 0xc0008002
2206
+ GNU_PROPERTY_X86_FEATURE_1_AND = 0xc0000002
2207
+ GNU_PROPERTY_X86_ISA_1_BASELINE = (1 << 0)
2208
+ GNU_PROPERTY_X86_ISA_1_V2 = (1 << 1)
2209
+ GNU_PROPERTY_X86_ISA_1_V3 = (1 << 2)
2210
+ GNU_PROPERTY_X86_ISA_1_V4 = (1 << 3)
2211
+ GNU_PROPERTY_X86_FEATURE_1_IBT = (1 << 0)
2212
+ GNU_PROPERTY_X86_FEATURE_1_SHSTK = (1 << 1)
2213
+ def ELF32_M_SYM(info): return ((info) >> 8)
2214
+ def ELF32_M_SIZE(info): return ((ctypes.c_ubyte) (info))
2215
+ def ELF32_M_INFO(sym, size): return (((sym) << 8) + (ctypes.c_ubyte) (size))
2216
+ def ELF64_M_SYM(info): return ELF32_M_SYM (info)
2217
+ def ELF64_M_SIZE(info): return ELF32_M_SIZE (info)
2218
+ def ELF64_M_INFO(sym, size): return ELF32_M_INFO (sym, size)
2219
+ EF_CPU32 = 0x00810000
2220
+ R_68K_NONE = 0
2221
+ R_68K_32 = 1
2222
+ R_68K_16 = 2
2223
+ R_68K_8 = 3
2224
+ R_68K_PC32 = 4
2225
+ R_68K_PC16 = 5
2226
+ R_68K_PC8 = 6
2227
+ R_68K_GOT32 = 7
2228
+ R_68K_GOT16 = 8
2229
+ R_68K_GOT8 = 9
2230
+ R_68K_GOT32O = 10
2231
+ R_68K_GOT16O = 11
2232
+ R_68K_GOT8O = 12
2233
+ R_68K_PLT32 = 13
2234
+ R_68K_PLT16 = 14
2235
+ R_68K_PLT8 = 15
2236
+ R_68K_PLT32O = 16
2237
+ R_68K_PLT16O = 17
2238
+ R_68K_PLT8O = 18
2239
+ R_68K_COPY = 19
2240
+ R_68K_GLOB_DAT = 20
2241
+ R_68K_JMP_SLOT = 21
2242
+ R_68K_RELATIVE = 22
2243
+ R_68K_TLS_GD32 = 25
2244
+ R_68K_TLS_GD16 = 26
2245
+ R_68K_TLS_GD8 = 27
2246
+ R_68K_TLS_LDM32 = 28
2247
+ R_68K_TLS_LDM16 = 29
2248
+ R_68K_TLS_LDM8 = 30
2249
+ R_68K_TLS_LDO32 = 31
2250
+ R_68K_TLS_LDO16 = 32
2251
+ R_68K_TLS_LDO8 = 33
2252
+ R_68K_TLS_IE32 = 34
2253
+ R_68K_TLS_IE16 = 35
2254
+ R_68K_TLS_IE8 = 36
2255
+ R_68K_TLS_DTPMOD32 = 40
2256
+ R_68K_TLS_DTPREL32 = 41
2257
+ R_68K_TLS_TPREL32 = 42
2258
+ R_68K_NUM = 43
2259
+ R_386_NONE = 0
2260
+ R_386_32 = 1
2261
+ R_386_PC32 = 2
2262
+ R_386_GOT32 = 3
2263
+ R_386_PLT32 = 4
2264
+ R_386_COPY = 5
2265
+ R_386_GLOB_DAT = 6
2266
+ R_386_JMP_SLOT = 7
2267
+ R_386_RELATIVE = 8
2268
+ R_386_GOTOFF = 9
2269
+ R_386_GOTPC = 10
2270
+ R_386_32PLT = 11
2271
+ R_386_TLS_TPOFF = 14
2272
+ R_386_16 = 20
2273
+ R_386_PC16 = 21
2274
+ R_386_8 = 22
2275
+ R_386_PC8 = 23
2276
+ R_386_TLS_GD_PUSH = 25
2277
+ R_386_TLS_GD_POP = 27
2278
+ R_386_TLS_LDM_PUSH = 29
2279
+ R_386_TLS_LDM_POP = 31
2280
+ R_386_TLS_LDO_32 = 32
2281
+ R_386_TLS_DTPMOD32 = 35
2282
+ R_386_TLS_DTPOFF32 = 36
2283
+ R_386_TLS_TPOFF32 = 37
2284
+ R_386_SIZE32 = 38
2285
+ R_386_TLS_GOTDESC = 39
2286
+ R_386_IRELATIVE = 42
2287
+ R_386_NUM = 44
2288
+ STT_SPARC_REGISTER = 13
2289
+ EF_SPARCV9_MM = 3
2290
+ EF_SPARCV9_TSO = 0
2291
+ EF_SPARCV9_PSO = 1
2292
+ EF_SPARCV9_RMO = 2
2293
+ EF_SPARC_LEDATA = 0x800000
2294
+ EF_SPARC_EXT_MASK = 0xFFFF00
2295
+ EF_SPARC_32PLUS = 0x000100
2296
+ EF_SPARC_SUN_US1 = 0x000200
2297
+ EF_SPARC_HAL_R1 = 0x000400
2298
+ EF_SPARC_SUN_US3 = 0x000800
2299
+ R_SPARC_NONE = 0
2300
+ R_SPARC_8 = 1
2301
+ R_SPARC_16 = 2
2302
+ R_SPARC_32 = 3
2303
+ R_SPARC_DISP8 = 4
2304
+ R_SPARC_DISP16 = 5
2305
+ R_SPARC_DISP32 = 6
2306
+ R_SPARC_WDISP30 = 7
2307
+ R_SPARC_WDISP22 = 8
2308
+ R_SPARC_HI22 = 9
2309
+ R_SPARC_22 = 10
2310
+ R_SPARC_13 = 11
2311
+ R_SPARC_LO10 = 12
2312
+ R_SPARC_GOT10 = 13
2313
+ R_SPARC_GOT13 = 14
2314
+ R_SPARC_GOT22 = 15
2315
+ R_SPARC_PC10 = 16
2316
+ R_SPARC_PC22 = 17
2317
+ R_SPARC_WPLT30 = 18
2318
+ R_SPARC_COPY = 19
2319
+ R_SPARC_GLOB_DAT = 20
2320
+ R_SPARC_JMP_SLOT = 21
2321
+ R_SPARC_RELATIVE = 22
2322
+ R_SPARC_UA32 = 23
2323
+ R_SPARC_PLT32 = 24
2324
+ R_SPARC_HIPLT22 = 25
2325
+ R_SPARC_LOPLT10 = 26
2326
+ R_SPARC_PCPLT32 = 27
2327
+ R_SPARC_PCPLT22 = 28
2328
+ R_SPARC_PCPLT10 = 29
2329
+ R_SPARC_10 = 30
2330
+ R_SPARC_11 = 31
2331
+ R_SPARC_64 = 32
2332
+ R_SPARC_OLO10 = 33
2333
+ R_SPARC_HH22 = 34
2334
+ R_SPARC_HM10 = 35
2335
+ R_SPARC_LM22 = 36
2336
+ R_SPARC_PC_HH22 = 37
2337
+ R_SPARC_PC_HM10 = 38
2338
+ R_SPARC_PC_LM22 = 39
2339
+ R_SPARC_WDISP16 = 40
2340
+ R_SPARC_WDISP19 = 41
2341
+ R_SPARC_GLOB_JMP = 42
2342
+ R_SPARC_7 = 43
2343
+ R_SPARC_5 = 44
2344
+ R_SPARC_6 = 45
2345
+ R_SPARC_DISP64 = 46
2346
+ R_SPARC_PLT64 = 47
2347
+ R_SPARC_HIX22 = 48
2348
+ R_SPARC_LOX10 = 49
2349
+ R_SPARC_H44 = 50
2350
+ R_SPARC_M44 = 51
2351
+ R_SPARC_L44 = 52
2352
+ R_SPARC_REGISTER = 53
2353
+ R_SPARC_UA64 = 54
2354
+ R_SPARC_UA16 = 55
2355
+ R_SPARC_TLS_GD_HI22 = 56
2356
+ R_SPARC_TLS_GD_LO10 = 57
2357
+ R_SPARC_TLS_GD_ADD = 58
2358
+ R_SPARC_TLS_GD_CALL = 59
2359
+ R_SPARC_TLS_LDM_HI22 = 60
2360
+ R_SPARC_TLS_LDM_LO10 = 61
2361
+ R_SPARC_TLS_LDM_ADD = 62
2362
+ R_SPARC_TLS_LDM_CALL = 63
2363
+ R_SPARC_TLS_LDO_HIX22 = 64
2364
+ R_SPARC_TLS_LDO_LOX10 = 65
2365
+ R_SPARC_TLS_LDO_ADD = 66
2366
+ R_SPARC_TLS_IE_HI22 = 67
2367
+ R_SPARC_TLS_IE_LO10 = 68
2368
+ R_SPARC_TLS_IE_LD = 69
2369
+ R_SPARC_TLS_IE_LDX = 70
2370
+ R_SPARC_TLS_IE_ADD = 71
2371
+ R_SPARC_TLS_LE_HIX22 = 72
2372
+ R_SPARC_TLS_LE_LOX10 = 73
2373
+ R_SPARC_TLS_DTPMOD32 = 74
2374
+ R_SPARC_TLS_DTPMOD64 = 75
2375
+ R_SPARC_TLS_DTPOFF32 = 76
2376
+ R_SPARC_TLS_DTPOFF64 = 77
2377
+ R_SPARC_TLS_TPOFF32 = 78
2378
+ R_SPARC_TLS_TPOFF64 = 79
2379
+ R_SPARC_GOTDATA_HIX22 = 80
2380
+ R_SPARC_GOTDATA_LOX10 = 81
2381
+ R_SPARC_GOTDATA_OP_HIX22 = 82
2382
+ R_SPARC_GOTDATA_OP_LOX10 = 83
2383
+ R_SPARC_GOTDATA_OP = 84
2384
+ R_SPARC_H34 = 85
2385
+ R_SPARC_SIZE32 = 86
2386
+ R_SPARC_SIZE64 = 87
2387
+ R_SPARC_WDISP10 = 88
2388
+ R_SPARC_JMP_IREL = 248
2389
+ R_SPARC_IRELATIVE = 249
2390
+ R_SPARC_GNU_VTINHERIT = 250
2391
+ R_SPARC_GNU_VTENTRY = 251
2392
+ R_SPARC_REV32 = 252
2393
+ R_SPARC_NUM = 253
2394
+ DT_SPARC_REGISTER = 0x70000001
2395
+ DT_SPARC_NUM = 2
2396
+ EF_MIPS_NOREORDER = 1
2397
+ EF_MIPS_PIC = 2
2398
+ EF_MIPS_CPIC = 4
2399
+ EF_MIPS_XGOT = 8
2400
+ EF_MIPS_64BIT_WHIRL = 16
2401
+ EF_MIPS_ABI2 = 32
2402
+ EF_MIPS_ABI_ON32 = 64
2403
+ EF_MIPS_FP64 = 512
2404
+ EF_MIPS_NAN2008 = 1024
2405
+ EF_MIPS_ARCH = 0xf0000000
2406
+ EF_MIPS_ARCH_1 = 0x00000000
2407
+ EF_MIPS_ARCH_2 = 0x10000000
2408
+ EF_MIPS_ARCH_3 = 0x20000000
2409
+ EF_MIPS_ARCH_4 = 0x30000000
2410
+ EF_MIPS_ARCH_5 = 0x40000000
2411
+ EF_MIPS_ARCH_32 = 0x50000000
2412
+ EF_MIPS_ARCH_64 = 0x60000000
2413
+ EF_MIPS_ARCH_32R2 = 0x70000000
2414
+ EF_MIPS_ARCH_64R2 = 0x80000000
2415
+ E_MIPS_ARCH_1 = EF_MIPS_ARCH_1
2416
+ E_MIPS_ARCH_2 = EF_MIPS_ARCH_2
2417
+ E_MIPS_ARCH_3 = EF_MIPS_ARCH_3
2418
+ E_MIPS_ARCH_4 = EF_MIPS_ARCH_4
2419
+ E_MIPS_ARCH_5 = EF_MIPS_ARCH_5
2420
+ E_MIPS_ARCH_32 = EF_MIPS_ARCH_32
2421
+ E_MIPS_ARCH_64 = EF_MIPS_ARCH_64
2422
+ SHN_MIPS_ACOMMON = 0xff00
2423
+ SHN_MIPS_TEXT = 0xff01
2424
+ SHN_MIPS_DATA = 0xff02
2425
+ SHN_MIPS_SCOMMON = 0xff03
2426
+ SHN_MIPS_SUNDEFINED = 0xff04
2427
+ SHT_MIPS_LIBLIST = 0x70000000
2428
+ SHT_MIPS_MSYM = 0x70000001
2429
+ SHT_MIPS_CONFLICT = 0x70000002
2430
+ SHT_MIPS_GPTAB = 0x70000003
2431
+ SHT_MIPS_UCODE = 0x70000004
2432
+ SHT_MIPS_DEBUG = 0x70000005
2433
+ SHT_MIPS_REGINFO = 0x70000006
2434
+ SHT_MIPS_PACKAGE = 0x70000007
2435
+ SHT_MIPS_PACKSYM = 0x70000008
2436
+ SHT_MIPS_RELD = 0x70000009
2437
+ SHT_MIPS_IFACE = 0x7000000b
2438
+ SHT_MIPS_CONTENT = 0x7000000c
2439
+ SHT_MIPS_OPTIONS = 0x7000000d
2440
+ SHT_MIPS_SHDR = 0x70000010
2441
+ SHT_MIPS_FDESC = 0x70000011
2442
+ SHT_MIPS_EXTSYM = 0x70000012
2443
+ SHT_MIPS_DENSE = 0x70000013
2444
+ SHT_MIPS_PDESC = 0x70000014
2445
+ SHT_MIPS_LOCSYM = 0x70000015
2446
+ SHT_MIPS_AUXSYM = 0x70000016
2447
+ SHT_MIPS_OPTSYM = 0x70000017
2448
+ SHT_MIPS_LOCSTR = 0x70000018
2449
+ SHT_MIPS_LINE = 0x70000019
2450
+ SHT_MIPS_RFDESC = 0x7000001a
2451
+ SHT_MIPS_DELTASYM = 0x7000001b
2452
+ SHT_MIPS_DELTAINST = 0x7000001c
2453
+ SHT_MIPS_DELTACLASS = 0x7000001d
2454
+ SHT_MIPS_DWARF = 0x7000001e
2455
+ SHT_MIPS_DELTADECL = 0x7000001f
2456
+ SHT_MIPS_SYMBOL_LIB = 0x70000020
2457
+ SHT_MIPS_EVENTS = 0x70000021
2458
+ SHT_MIPS_TRANSLATE = 0x70000022
2459
+ SHT_MIPS_PIXIE = 0x70000023
2460
+ SHT_MIPS_XLATE = 0x70000024
2461
+ SHT_MIPS_XLATE_DEBUG = 0x70000025
2462
+ SHT_MIPS_WHIRL = 0x70000026
2463
+ SHT_MIPS_EH_REGION = 0x70000027
2464
+ SHT_MIPS_XLATE_OLD = 0x70000028
2465
+ SHT_MIPS_PDR_EXCEPTION = 0x70000029
2466
+ SHT_MIPS_XHASH = 0x7000002b
2467
+ SHF_MIPS_GPREL = 0x10000000
2468
+ SHF_MIPS_MERGE = 0x20000000
2469
+ SHF_MIPS_ADDR = 0x40000000
2470
+ SHF_MIPS_STRINGS = 0x80000000
2471
+ SHF_MIPS_NOSTRIP = 0x08000000
2472
+ SHF_MIPS_LOCAL = 0x04000000
2473
+ SHF_MIPS_NAMES = 0x02000000
2474
+ SHF_MIPS_NODUPE = 0x01000000
2475
+ STO_MIPS_DEFAULT = 0x0
2476
+ STO_MIPS_INTERNAL = 0x1
2477
+ STO_MIPS_HIDDEN = 0x2
2478
+ STO_MIPS_PROTECTED = 0x3
2479
+ STO_MIPS_PLT = 0x8
2480
+ STO_MIPS_SC_ALIGN_UNUSED = 0xff
2481
+ STB_MIPS_SPLIT_COMMON = 13
2482
+ ODK_NULL = 0
2483
+ ODK_REGINFO = 1
2484
+ ODK_EXCEPTIONS = 2
2485
+ ODK_PAD = 3
2486
+ ODK_HWPATCH = 4
2487
+ ODK_FILL = 5
2488
+ ODK_TAGS = 6
2489
+ ODK_HWAND = 7
2490
+ ODK_HWOR = 8
2491
+ OEX_FPU_MIN = 0x1f
2492
+ OEX_FPU_MAX = 0x1f00
2493
+ OEX_PAGE0 = 0x10000
2494
+ OEX_SMM = 0x20000
2495
+ OEX_FPDBUG = 0x40000
2496
+ OEX_PRECISEFP = OEX_FPDBUG
2497
+ OEX_DISMISS = 0x80000
2498
+ OEX_FPU_INVAL = 0x10
2499
+ OEX_FPU_DIV0 = 0x08
2500
+ OEX_FPU_OFLO = 0x04
2501
+ OEX_FPU_UFLO = 0x02
2502
+ OEX_FPU_INEX = 0x01
2503
+ OHW_R4KEOP = 0x1
2504
+ OHW_R8KPFETCH = 0x2
2505
+ OHW_R5KEOP = 0x4
2506
+ OHW_R5KCVTL = 0x8
2507
+ OPAD_PREFIX = 0x1
2508
+ OPAD_POSTFIX = 0x2
2509
+ OPAD_SYMBOL = 0x4
2510
+ OHWA0_R4KEOP_CHECKED = 0x00000001
2511
+ OHWA1_R4KEOP_CLEAN = 0x00000002
2512
+ R_MIPS_NONE = 0
2513
+ R_MIPS_16 = 1
2514
+ R_MIPS_32 = 2
2515
+ R_MIPS_REL32 = 3
2516
+ R_MIPS_26 = 4
2517
+ R_MIPS_HI16 = 5
2518
+ R_MIPS_LO16 = 6
2519
+ R_MIPS_GPREL16 = 7
2520
+ R_MIPS_LITERAL = 8
2521
+ R_MIPS_GOT16 = 9
2522
+ R_MIPS_PC16 = 10
2523
+ R_MIPS_CALL16 = 11
2524
+ R_MIPS_GPREL32 = 12
2525
+ R_MIPS_SHIFT5 = 16
2526
+ R_MIPS_SHIFT6 = 17
2527
+ R_MIPS_64 = 18
2528
+ R_MIPS_GOT_DISP = 19
2529
+ R_MIPS_GOT_PAGE = 20
2530
+ R_MIPS_GOT_OFST = 21
2531
+ R_MIPS_GOT_HI16 = 22
2532
+ R_MIPS_GOT_LO16 = 23
2533
+ R_MIPS_SUB = 24
2534
+ R_MIPS_INSERT_A = 25
2535
+ R_MIPS_INSERT_B = 26
2536
+ R_MIPS_DELETE = 27
2537
+ R_MIPS_HIGHER = 28
2538
+ R_MIPS_HIGHEST = 29
2539
+ R_MIPS_CALL_HI16 = 30
2540
+ R_MIPS_CALL_LO16 = 31
2541
+ R_MIPS_SCN_DISP = 32
2542
+ R_MIPS_REL16 = 33
2543
+ R_MIPS_ADD_IMMEDIATE = 34
2544
+ R_MIPS_PJUMP = 35
2545
+ R_MIPS_RELGOT = 36
2546
+ R_MIPS_JALR = 37
2547
+ R_MIPS_TLS_DTPMOD32 = 38
2548
+ R_MIPS_TLS_DTPREL32 = 39
2549
+ R_MIPS_TLS_DTPMOD64 = 40
2550
+ R_MIPS_TLS_DTPREL64 = 41
2551
+ R_MIPS_TLS_GD = 42
2552
+ R_MIPS_TLS_LDM = 43
2553
+ R_MIPS_TLS_DTPREL_HI16 = 44
2554
+ R_MIPS_TLS_DTPREL_LO16 = 45
2555
+ R_MIPS_TLS_GOTTPREL = 46
2556
+ R_MIPS_TLS_TPREL32 = 47
2557
+ R_MIPS_TLS_TPREL64 = 48
2558
+ R_MIPS_TLS_TPREL_HI16 = 49
2559
+ R_MIPS_TLS_TPREL_LO16 = 50
2560
+ R_MIPS_GLOB_DAT = 51
2561
+ R_MIPS_COPY = 126
2562
+ R_MIPS_JUMP_SLOT = 127
2563
+ R_MIPS_NUM = 128
2564
+ PT_MIPS_REGINFO = 0x70000000
2565
+ PT_MIPS_RTPROC = 0x70000001
2566
+ PT_MIPS_OPTIONS = 0x70000002
2567
+ PT_MIPS_ABIFLAGS = 0x70000003
2568
+ PF_MIPS_LOCAL = 0x10000000
2569
+ DT_MIPS_RLD_VERSION = 0x70000001
2570
+ DT_MIPS_TIME_STAMP = 0x70000002
2571
+ DT_MIPS_ICHECKSUM = 0x70000003
2572
+ DT_MIPS_IVERSION = 0x70000004
2573
+ DT_MIPS_FLAGS = 0x70000005
2574
+ DT_MIPS_BASE_ADDRESS = 0x70000006
2575
+ DT_MIPS_MSYM = 0x70000007
2576
+ DT_MIPS_CONFLICT = 0x70000008
2577
+ DT_MIPS_LIBLIST = 0x70000009
2578
+ DT_MIPS_LOCAL_GOTNO = 0x7000000a
2579
+ DT_MIPS_CONFLICTNO = 0x7000000b
2580
+ DT_MIPS_LIBLISTNO = 0x70000010
2581
+ DT_MIPS_SYMTABNO = 0x70000011
2582
+ DT_MIPS_UNREFEXTNO = 0x70000012
2583
+ DT_MIPS_GOTSYM = 0x70000013
2584
+ DT_MIPS_HIPAGENO = 0x70000014
2585
+ DT_MIPS_RLD_MAP = 0x70000016
2586
+ DT_MIPS_DELTA_CLASS = 0x70000017
2587
+ DT_MIPS_DELTA_INSTANCE = 0x70000019
2588
+ DT_MIPS_DELTA_RELOC = 0x7000001b
2589
+ DT_MIPS_CXX_FLAGS = 0x70000022
2590
+ DT_MIPS_PIXIE_INIT = 0x70000023
2591
+ DT_MIPS_SYMBOL_LIB = 0x70000024
2592
+ DT_MIPS_LOCALPAGE_GOTIDX = 0x70000025
2593
+ DT_MIPS_LOCAL_GOTIDX = 0x70000026
2594
+ DT_MIPS_HIDDEN_GOTIDX = 0x70000027
2595
+ DT_MIPS_PROTECTED_GOTIDX = 0x70000028
2596
+ DT_MIPS_OPTIONS = 0x70000029
2597
+ DT_MIPS_INTERFACE = 0x7000002a
2598
+ DT_MIPS_DYNSTR_ALIGN = 0x7000002b
2599
+ DT_MIPS_INTERFACE_SIZE = 0x7000002c
2600
+ DT_MIPS_COMPACT_SIZE = 0x7000002f
2601
+ DT_MIPS_GP_VALUE = 0x70000030
2602
+ DT_MIPS_AUX_DYNAMIC = 0x70000031
2603
+ DT_MIPS_PLTGOT = 0x70000032
2604
+ DT_MIPS_RWPLT = 0x70000034
2605
+ DT_MIPS_RLD_MAP_REL = 0x70000035
2606
+ DT_MIPS_XHASH = 0x70000036
2607
+ RHF_NONE = 0
2608
+ RHF_QUICKSTART = (1 << 0)
2609
+ RHF_NOTPOT = (1 << 1)
2610
+ RHF_NO_LIBRARY_REPLACEMENT = (1 << 2)
2611
+ RHF_NO_MOVE = (1 << 3)
2612
+ RHF_SGI_ONLY = (1 << 4)
2613
+ RHF_GUARANTEE_INIT = (1 << 5)
2614
+ RHF_DELTA_C_PLUS_PLUS = (1 << 6)
2615
+ RHF_GUARANTEE_START_INIT = (1 << 7)
2616
+ RHF_PIXIE = (1 << 8)
2617
+ RHF_DEFAULT_DELAY_LOAD = (1 << 9)
2618
+ RHF_REQUICKSTART = (1 << 10)
2619
+ RHF_REQUICKSTARTED = (1 << 11)
2620
+ RHF_CORD = (1 << 12)
2621
+ RHF_NO_UNRES_UNDEF = (1 << 13)
2622
+ RHF_RLD_ORDER_SAFE = (1 << 14)
2623
+ LL_NONE = 0
2624
+ LL_EXACT_MATCH = (1 << 0)
2625
+ LL_IGNORE_INT_VER = (1 << 1)
2626
+ LL_REQUIRE_MINOR = (1 << 2)
2627
+ LL_EXPORTS = (1 << 3)
2628
+ LL_DELAY_LOAD = (1 << 4)
2629
+ LL_DELTA = (1 << 5)
2630
+ MIPS_AFL_REG_NONE = 0x00
2631
+ MIPS_AFL_REG_32 = 0x01
2632
+ MIPS_AFL_REG_64 = 0x02
2633
+ MIPS_AFL_REG_128 = 0x03
2634
+ MIPS_AFL_ASE_DSP = 0x00000001
2635
+ MIPS_AFL_ASE_DSPR2 = 0x00000002
2636
+ MIPS_AFL_ASE_EVA = 0x00000004
2637
+ MIPS_AFL_ASE_MCU = 0x00000008
2638
+ MIPS_AFL_ASE_MDMX = 0x00000010
2639
+ MIPS_AFL_ASE_MIPS3D = 0x00000020
2640
+ MIPS_AFL_ASE_MT = 0x00000040
2641
+ MIPS_AFL_ASE_SMARTMIPS = 0x00000080
2642
+ MIPS_AFL_ASE_VIRT = 0x00000100
2643
+ MIPS_AFL_ASE_MSA = 0x00000200
2644
+ MIPS_AFL_ASE_MIPS16 = 0x00000400
2645
+ MIPS_AFL_ASE_MICROMIPS = 0x00000800
2646
+ MIPS_AFL_ASE_XPA = 0x00001000
2647
+ MIPS_AFL_ASE_MASK = 0x00001fff
2648
+ MIPS_AFL_EXT_XLR = 1
2649
+ MIPS_AFL_EXT_OCTEON2 = 2
2650
+ MIPS_AFL_EXT_OCTEONP = 3
2651
+ MIPS_AFL_EXT_LOONGSON_3A = 4
2652
+ MIPS_AFL_EXT_OCTEON = 5
2653
+ MIPS_AFL_EXT_5900 = 6
2654
+ MIPS_AFL_EXT_4650 = 7
2655
+ MIPS_AFL_EXT_4010 = 8
2656
+ MIPS_AFL_EXT_4100 = 9
2657
+ MIPS_AFL_EXT_3900 = 10
2658
+ MIPS_AFL_EXT_10000 = 11
2659
+ MIPS_AFL_EXT_SB1 = 12
2660
+ MIPS_AFL_EXT_4111 = 13
2661
+ MIPS_AFL_EXT_4120 = 14
2662
+ MIPS_AFL_EXT_5400 = 15
2663
+ MIPS_AFL_EXT_5500 = 16
2664
+ MIPS_AFL_EXT_LOONGSON_2E = 17
2665
+ MIPS_AFL_EXT_LOONGSON_2F = 18
2666
+ MIPS_AFL_FLAGS1_ODDSPREG = 1
2667
+ EF_PARISC_TRAPNIL = 0x00010000
2668
+ EF_PARISC_EXT = 0x00020000
2669
+ EF_PARISC_LSB = 0x00040000
2670
+ EF_PARISC_WIDE = 0x00080000
2671
+ EF_PARISC_LAZYSWAP = 0x00400000
2672
+ EF_PARISC_ARCH = 0x0000ffff
2673
+ EFA_PARISC_1_0 = 0x020b
2674
+ EFA_PARISC_1_1 = 0x0210
2675
+ EFA_PARISC_2_0 = 0x0214
2676
+ SHN_PARISC_HUGE_COMMON = 0xff01
2677
+ SHT_PARISC_EXT = 0x70000000
2678
+ SHT_PARISC_UNWIND = 0x70000001
2679
+ SHT_PARISC_DOC = 0x70000002
2680
+ SHF_PARISC_SHORT = 0x20000000
2681
+ SHF_PARISC_HUGE = 0x40000000
2682
+ SHF_PARISC_SBP = 0x80000000
2683
+ STT_PARISC_MILLICODE = 13
2684
+ STT_HP_OPAQUE = (STT_LOOS + 0x1)
2685
+ STT_HP_STUB = (STT_LOOS + 0x2)
2686
+ R_PARISC_NONE = 0
2687
+ R_PARISC_DIR32 = 1
2688
+ R_PARISC_DIR21L = 2
2689
+ R_PARISC_DIR17R = 3
2690
+ R_PARISC_DIR17F = 4
2691
+ R_PARISC_DIR14R = 6
2692
+ R_PARISC_PCREL32 = 9
2693
+ R_PARISC_PCREL21L = 10
2694
+ R_PARISC_PCREL17R = 11
2695
+ R_PARISC_PCREL17F = 12
2696
+ R_PARISC_PCREL14R = 14
2697
+ R_PARISC_DPREL21L = 18
2698
+ R_PARISC_DPREL14R = 22
2699
+ R_PARISC_GPREL21L = 26
2700
+ R_PARISC_GPREL14R = 30
2701
+ R_PARISC_LTOFF21L = 34
2702
+ R_PARISC_LTOFF14R = 38
2703
+ R_PARISC_SECREL32 = 41
2704
+ R_PARISC_SEGBASE = 48
2705
+ R_PARISC_SEGREL32 = 49
2706
+ R_PARISC_PLTOFF21L = 50
2707
+ R_PARISC_PLTOFF14R = 54
2708
+ R_PARISC_LTOFF_FPTR32 = 57
2709
+ R_PARISC_LTOFF_FPTR21L = 58
2710
+ R_PARISC_LTOFF_FPTR14R = 62
2711
+ R_PARISC_FPTR64 = 64
2712
+ R_PARISC_PLABEL32 = 65
2713
+ R_PARISC_PLABEL21L = 66
2714
+ R_PARISC_PLABEL14R = 70
2715
+ R_PARISC_PCREL64 = 72
2716
+ R_PARISC_PCREL22F = 74
2717
+ R_PARISC_PCREL14WR = 75
2718
+ R_PARISC_PCREL14DR = 76
2719
+ R_PARISC_PCREL16F = 77
2720
+ R_PARISC_PCREL16WF = 78
2721
+ R_PARISC_PCREL16DF = 79
2722
+ R_PARISC_DIR64 = 80
2723
+ R_PARISC_DIR14WR = 83
2724
+ R_PARISC_DIR14DR = 84
2725
+ R_PARISC_DIR16F = 85
2726
+ R_PARISC_DIR16WF = 86
2727
+ R_PARISC_DIR16DF = 87
2728
+ R_PARISC_GPREL64 = 88
2729
+ R_PARISC_GPREL14WR = 91
2730
+ R_PARISC_GPREL14DR = 92
2731
+ R_PARISC_GPREL16F = 93
2732
+ R_PARISC_GPREL16WF = 94
2733
+ R_PARISC_GPREL16DF = 95
2734
+ R_PARISC_LTOFF64 = 96
2735
+ R_PARISC_LTOFF14WR = 99
2736
+ R_PARISC_LTOFF14DR = 100
2737
+ R_PARISC_LTOFF16F = 101
2738
+ R_PARISC_LTOFF16WF = 102
2739
+ R_PARISC_LTOFF16DF = 103
2740
+ R_PARISC_SECREL64 = 104
2741
+ R_PARISC_SEGREL64 = 112
2742
+ R_PARISC_PLTOFF14WR = 115
2743
+ R_PARISC_PLTOFF14DR = 116
2744
+ R_PARISC_PLTOFF16F = 117
2745
+ R_PARISC_PLTOFF16WF = 118
2746
+ R_PARISC_PLTOFF16DF = 119
2747
+ R_PARISC_LTOFF_FPTR64 = 120
2748
+ R_PARISC_LTOFF_FPTR14WR = 123
2749
+ R_PARISC_LTOFF_FPTR14DR = 124
2750
+ R_PARISC_LTOFF_FPTR16F = 125
2751
+ R_PARISC_LTOFF_FPTR16WF = 126
2752
+ R_PARISC_LTOFF_FPTR16DF = 127
2753
+ R_PARISC_LORESERVE = 128
2754
+ R_PARISC_COPY = 128
2755
+ R_PARISC_IPLT = 129
2756
+ R_PARISC_EPLT = 130
2757
+ R_PARISC_TPREL32 = 153
2758
+ R_PARISC_TPREL21L = 154
2759
+ R_PARISC_TPREL14R = 158
2760
+ R_PARISC_LTOFF_TP21L = 162
2761
+ R_PARISC_LTOFF_TP14R = 166
2762
+ R_PARISC_LTOFF_TP14F = 167
2763
+ R_PARISC_TPREL64 = 216
2764
+ R_PARISC_TPREL14WR = 219
2765
+ R_PARISC_TPREL14DR = 220
2766
+ R_PARISC_TPREL16F = 221
2767
+ R_PARISC_TPREL16WF = 222
2768
+ R_PARISC_TPREL16DF = 223
2769
+ R_PARISC_LTOFF_TP64 = 224
2770
+ R_PARISC_LTOFF_TP14WR = 227
2771
+ R_PARISC_LTOFF_TP14DR = 228
2772
+ R_PARISC_LTOFF_TP16F = 229
2773
+ R_PARISC_LTOFF_TP16WF = 230
2774
+ R_PARISC_LTOFF_TP16DF = 231
2775
+ R_PARISC_GNU_VTENTRY = 232
2776
+ R_PARISC_GNU_VTINHERIT = 233
2777
+ R_PARISC_TLS_GD21L = 234
2778
+ R_PARISC_TLS_GD14R = 235
2779
+ R_PARISC_TLS_GDCALL = 236
2780
+ R_PARISC_TLS_LDM21L = 237
2781
+ R_PARISC_TLS_LDM14R = 238
2782
+ R_PARISC_TLS_LDMCALL = 239
2783
+ R_PARISC_TLS_LDO21L = 240
2784
+ R_PARISC_TLS_LDO14R = 241
2785
+ R_PARISC_TLS_DTPMOD32 = 242
2786
+ R_PARISC_TLS_DTPMOD64 = 243
2787
+ R_PARISC_TLS_DTPOFF32 = 244
2788
+ R_PARISC_TLS_DTPOFF64 = 245
2789
+ R_PARISC_TLS_LE21L = R_PARISC_TPREL21L
2790
+ R_PARISC_TLS_LE14R = R_PARISC_TPREL14R
2791
+ R_PARISC_TLS_IE21L = R_PARISC_LTOFF_TP21L
2792
+ R_PARISC_TLS_IE14R = R_PARISC_LTOFF_TP14R
2793
+ R_PARISC_TLS_TPREL32 = R_PARISC_TPREL32
2794
+ R_PARISC_TLS_TPREL64 = R_PARISC_TPREL64
2795
+ R_PARISC_HIRESERVE = 255
2796
+ PT_HP_TLS = (PT_LOOS + 0x0)
2797
+ PT_HP_CORE_NONE = (PT_LOOS + 0x1)
2798
+ PT_HP_CORE_VERSION = (PT_LOOS + 0x2)
2799
+ PT_HP_CORE_KERNEL = (PT_LOOS + 0x3)
2800
+ PT_HP_CORE_COMM = (PT_LOOS + 0x4)
2801
+ PT_HP_CORE_PROC = (PT_LOOS + 0x5)
2802
+ PT_HP_CORE_LOADABLE = (PT_LOOS + 0x6)
2803
+ PT_HP_CORE_STACK = (PT_LOOS + 0x7)
2804
+ PT_HP_CORE_SHM = (PT_LOOS + 0x8)
2805
+ PT_HP_CORE_MMF = (PT_LOOS + 0x9)
2806
+ PT_HP_PARALLEL = (PT_LOOS + 0x10)
2807
+ PT_HP_FASTBIND = (PT_LOOS + 0x11)
2808
+ PT_HP_OPT_ANNOT = (PT_LOOS + 0x12)
2809
+ PT_HP_HSL_ANNOT = (PT_LOOS + 0x13)
2810
+ PT_HP_STACK = (PT_LOOS + 0x14)
2811
+ PT_PARISC_ARCHEXT = 0x70000000
2812
+ PT_PARISC_UNWIND = 0x70000001
2813
+ PF_PARISC_SBP = 0x08000000
2814
+ PF_HP_PAGE_SIZE = 0x00100000
2815
+ PF_HP_FAR_SHARED = 0x00200000
2816
+ PF_HP_NEAR_SHARED = 0x00400000
2817
+ PF_HP_CODE = 0x01000000
2818
+ PF_HP_MODIFY = 0x02000000
2819
+ PF_HP_LAZYSWAP = 0x04000000
2820
+ PF_HP_SBP = 0x08000000
2821
+ EF_ALPHA_32BIT = 1
2822
+ EF_ALPHA_CANRELAX = 2
2823
+ SHT_ALPHA_DEBUG = 0x70000001
2824
+ SHT_ALPHA_REGINFO = 0x70000002
2825
+ SHF_ALPHA_GPREL = 0x10000000
2826
+ STO_ALPHA_NOPV = 0x80
2827
+ STO_ALPHA_STD_GPLOAD = 0x88
2828
+ R_ALPHA_NONE = 0
2829
+ R_ALPHA_REFLONG = 1
2830
+ R_ALPHA_REFQUAD = 2
2831
+ R_ALPHA_GPREL32 = 3
2832
+ R_ALPHA_LITERAL = 4
2833
+ R_ALPHA_LITUSE = 5
2834
+ R_ALPHA_GPDISP = 6
2835
+ R_ALPHA_BRADDR = 7
2836
+ R_ALPHA_HINT = 8
2837
+ R_ALPHA_SREL16 = 9
2838
+ R_ALPHA_SREL32 = 10
2839
+ R_ALPHA_SREL64 = 11
2840
+ R_ALPHA_GPRELHIGH = 17
2841
+ R_ALPHA_GPRELLOW = 18
2842
+ R_ALPHA_GPREL16 = 19
2843
+ R_ALPHA_COPY = 24
2844
+ R_ALPHA_GLOB_DAT = 25
2845
+ R_ALPHA_JMP_SLOT = 26
2846
+ R_ALPHA_RELATIVE = 27
2847
+ R_ALPHA_TLS_GD_HI = 28
2848
+ R_ALPHA_TLSGD = 29
2849
+ R_ALPHA_TLS_LDM = 30
2850
+ R_ALPHA_DTPMOD64 = 31
2851
+ R_ALPHA_GOTDTPREL = 32
2852
+ R_ALPHA_DTPREL64 = 33
2853
+ R_ALPHA_DTPRELHI = 34
2854
+ R_ALPHA_DTPRELLO = 35
2855
+ R_ALPHA_DTPREL16 = 36
2856
+ R_ALPHA_GOTTPREL = 37
2857
+ R_ALPHA_TPREL64 = 38
2858
+ R_ALPHA_TPRELHI = 39
2859
+ R_ALPHA_TPRELLO = 40
2860
+ R_ALPHA_TPREL16 = 41
2861
+ R_ALPHA_NUM = 46
2862
+ LITUSE_ALPHA_ADDR = 0
2863
+ LITUSE_ALPHA_BASE = 1
2864
+ LITUSE_ALPHA_BYTOFF = 2
2865
+ LITUSE_ALPHA_JSR = 3
2866
+ LITUSE_ALPHA_TLS_GD = 4
2867
+ LITUSE_ALPHA_TLS_LDM = 5
2868
+ DT_ALPHA_PLTRO = (DT_LOPROC + 0)
2869
+ DT_ALPHA_NUM = 1
2870
+ EF_PPC_EMB = 0x80000000
2871
+ EF_PPC_RELOCATABLE = 0x00010000
2872
+ R_PPC_NONE = 0
2873
+ R_PPC_ADDR32 = 1
2874
+ R_PPC_ADDR24 = 2
2875
+ R_PPC_ADDR16 = 3
2876
+ R_PPC_ADDR16_LO = 4
2877
+ R_PPC_ADDR16_HI = 5
2878
+ R_PPC_ADDR16_HA = 6
2879
+ R_PPC_ADDR14 = 7
2880
+ R_PPC_ADDR14_BRTAKEN = 8
2881
+ R_PPC_ADDR14_BRNTAKEN = 9
2882
+ R_PPC_REL24 = 10
2883
+ R_PPC_REL14 = 11
2884
+ R_PPC_REL14_BRTAKEN = 12
2885
+ R_PPC_REL14_BRNTAKEN = 13
2886
+ R_PPC_GOT16 = 14
2887
+ R_PPC_GOT16_LO = 15
2888
+ R_PPC_GOT16_HI = 16
2889
+ R_PPC_GOT16_HA = 17
2890
+ R_PPC_PLTREL24 = 18
2891
+ R_PPC_COPY = 19
2892
+ R_PPC_GLOB_DAT = 20
2893
+ R_PPC_JMP_SLOT = 21
2894
+ R_PPC_RELATIVE = 22
2895
+ R_PPC_LOCAL24PC = 23
2896
+ R_PPC_UADDR32 = 24
2897
+ R_PPC_UADDR16 = 25
2898
+ R_PPC_REL32 = 26
2899
+ R_PPC_PLT32 = 27
2900
+ R_PPC_PLTREL32 = 28
2901
+ R_PPC_PLT16_LO = 29
2902
+ R_PPC_PLT16_HI = 30
2903
+ R_PPC_PLT16_HA = 31
2904
+ R_PPC_SDAREL16 = 32
2905
+ R_PPC_SECTOFF = 33
2906
+ R_PPC_SECTOFF_LO = 34
2907
+ R_PPC_SECTOFF_HI = 35
2908
+ R_PPC_SECTOFF_HA = 36
2909
+ R_PPC_TLS = 67
2910
+ R_PPC_DTPMOD32 = 68
2911
+ R_PPC_TPREL16 = 69
2912
+ R_PPC_TPREL16_LO = 70
2913
+ R_PPC_TPREL16_HI = 71
2914
+ R_PPC_TPREL16_HA = 72
2915
+ R_PPC_TPREL32 = 73
2916
+ R_PPC_DTPREL16 = 74
2917
+ R_PPC_DTPREL16_LO = 75
2918
+ R_PPC_DTPREL16_HI = 76
2919
+ R_PPC_DTPREL16_HA = 77
2920
+ R_PPC_DTPREL32 = 78
2921
+ R_PPC_GOT_TLSGD16 = 79
2922
+ R_PPC_GOT_TLSGD16_LO = 80
2923
+ R_PPC_GOT_TLSGD16_HI = 81
2924
+ R_PPC_GOT_TLSGD16_HA = 82
2925
+ R_PPC_GOT_TLSLD16 = 83
2926
+ R_PPC_GOT_TLSLD16_LO = 84
2927
+ R_PPC_GOT_TLSLD16_HI = 85
2928
+ R_PPC_GOT_TLSLD16_HA = 86
2929
+ R_PPC_GOT_TPREL16 = 87
2930
+ R_PPC_GOT_TPREL16_LO = 88
2931
+ R_PPC_GOT_TPREL16_HI = 89
2932
+ R_PPC_GOT_TPREL16_HA = 90
2933
+ R_PPC_GOT_DTPREL16 = 91
2934
+ R_PPC_GOT_DTPREL16_LO = 92
2935
+ R_PPC_GOT_DTPREL16_HI = 93
2936
+ R_PPC_GOT_DTPREL16_HA = 94
2937
+ R_PPC_TLSGD = 95
2938
+ R_PPC_TLSLD = 96
2939
+ R_PPC_EMB_NADDR32 = 101
2940
+ R_PPC_EMB_NADDR16 = 102
2941
+ R_PPC_EMB_NADDR16_LO = 103
2942
+ R_PPC_EMB_NADDR16_HI = 104
2943
+ R_PPC_EMB_NADDR16_HA = 105
2944
+ R_PPC_EMB_SDAI16 = 106
2945
+ R_PPC_EMB_SDA2I16 = 107
2946
+ R_PPC_EMB_SDA2REL = 108
2947
+ R_PPC_EMB_SDA21 = 109
2948
+ R_PPC_EMB_MRKREF = 110
2949
+ R_PPC_EMB_RELSEC16 = 111
2950
+ R_PPC_EMB_RELST_LO = 112
2951
+ R_PPC_EMB_RELST_HI = 113
2952
+ R_PPC_EMB_RELST_HA = 114
2953
+ R_PPC_EMB_BIT_FLD = 115
2954
+ R_PPC_EMB_RELSDA = 116
2955
+ R_PPC_DIAB_SDA21_LO = 180
2956
+ R_PPC_DIAB_SDA21_HI = 181
2957
+ R_PPC_DIAB_SDA21_HA = 182
2958
+ R_PPC_DIAB_RELSDA_LO = 183
2959
+ R_PPC_DIAB_RELSDA_HI = 184
2960
+ R_PPC_DIAB_RELSDA_HA = 185
2961
+ R_PPC_IRELATIVE = 248
2962
+ R_PPC_REL16 = 249
2963
+ R_PPC_REL16_LO = 250
2964
+ R_PPC_REL16_HI = 251
2965
+ R_PPC_REL16_HA = 252
2966
+ R_PPC_TOC16 = 255
2967
+ DT_PPC_GOT = (DT_LOPROC + 0)
2968
+ DT_PPC_OPT = (DT_LOPROC + 1)
2969
+ DT_PPC_NUM = 2
2970
+ PPC_OPT_TLS = 1
2971
+ R_PPC64_NONE = R_PPC_NONE
2972
+ R_PPC64_ADDR32 = R_PPC_ADDR32
2973
+ R_PPC64_ADDR24 = R_PPC_ADDR24
2974
+ R_PPC64_ADDR16 = R_PPC_ADDR16
2975
+ R_PPC64_ADDR16_LO = R_PPC_ADDR16_LO
2976
+ R_PPC64_ADDR16_HI = R_PPC_ADDR16_HI
2977
+ R_PPC64_ADDR16_HA = R_PPC_ADDR16_HA
2978
+ R_PPC64_ADDR14 = R_PPC_ADDR14
2979
+ R_PPC64_ADDR14_BRTAKEN = R_PPC_ADDR14_BRTAKEN
2980
+ R_PPC64_ADDR14_BRNTAKEN = R_PPC_ADDR14_BRNTAKEN
2981
+ R_PPC64_REL24 = R_PPC_REL24
2982
+ R_PPC64_REL14 = R_PPC_REL14
2983
+ R_PPC64_REL14_BRTAKEN = R_PPC_REL14_BRTAKEN
2984
+ R_PPC64_REL14_BRNTAKEN = R_PPC_REL14_BRNTAKEN
2985
+ R_PPC64_GOT16 = R_PPC_GOT16
2986
+ R_PPC64_GOT16_LO = R_PPC_GOT16_LO
2987
+ R_PPC64_GOT16_HI = R_PPC_GOT16_HI
2988
+ R_PPC64_GOT16_HA = R_PPC_GOT16_HA
2989
+ R_PPC64_COPY = R_PPC_COPY
2990
+ R_PPC64_GLOB_DAT = R_PPC_GLOB_DAT
2991
+ R_PPC64_JMP_SLOT = R_PPC_JMP_SLOT
2992
+ R_PPC64_RELATIVE = R_PPC_RELATIVE
2993
+ R_PPC64_UADDR32 = R_PPC_UADDR32
2994
+ R_PPC64_UADDR16 = R_PPC_UADDR16
2995
+ R_PPC64_REL32 = R_PPC_REL32
2996
+ R_PPC64_PLT32 = R_PPC_PLT32
2997
+ R_PPC64_PLTREL32 = R_PPC_PLTREL32
2998
+ R_PPC64_PLT16_LO = R_PPC_PLT16_LO
2999
+ R_PPC64_PLT16_HI = R_PPC_PLT16_HI
3000
+ R_PPC64_PLT16_HA = R_PPC_PLT16_HA
3001
+ R_PPC64_SECTOFF = R_PPC_SECTOFF
3002
+ R_PPC64_SECTOFF_LO = R_PPC_SECTOFF_LO
3003
+ R_PPC64_SECTOFF_HI = R_PPC_SECTOFF_HI
3004
+ R_PPC64_SECTOFF_HA = R_PPC_SECTOFF_HA
3005
+ R_PPC64_ADDR30 = 37
3006
+ R_PPC64_ADDR64 = 38
3007
+ R_PPC64_ADDR16_HIGHER = 39
3008
+ R_PPC64_ADDR16_HIGHERA = 40
3009
+ R_PPC64_ADDR16_HIGHEST = 41
3010
+ R_PPC64_ADDR16_HIGHESTA = 42
3011
+ R_PPC64_UADDR64 = 43
3012
+ R_PPC64_REL64 = 44
3013
+ R_PPC64_PLT64 = 45
3014
+ R_PPC64_PLTREL64 = 46
3015
+ R_PPC64_TOC16 = 47
3016
+ R_PPC64_TOC16_LO = 48
3017
+ R_PPC64_TOC16_HI = 49
3018
+ R_PPC64_TOC16_HA = 50
3019
+ R_PPC64_TOC = 51
3020
+ R_PPC64_PLTGOT16 = 52
3021
+ R_PPC64_PLTGOT16_LO = 53
3022
+ R_PPC64_PLTGOT16_HI = 54
3023
+ R_PPC64_PLTGOT16_HA = 55
3024
+ R_PPC64_ADDR16_DS = 56
3025
+ R_PPC64_ADDR16_LO_DS = 57
3026
+ R_PPC64_GOT16_DS = 58
3027
+ R_PPC64_GOT16_LO_DS = 59
3028
+ R_PPC64_PLT16_LO_DS = 60
3029
+ R_PPC64_SECTOFF_DS = 61
3030
+ R_PPC64_SECTOFF_LO_DS = 62
3031
+ R_PPC64_TOC16_DS = 63
3032
+ R_PPC64_TOC16_LO_DS = 64
3033
+ R_PPC64_PLTGOT16_DS = 65
3034
+ R_PPC64_PLTGOT16_LO_DS = 66
3035
+ R_PPC64_TLS = 67
3036
+ R_PPC64_DTPMOD64 = 68
3037
+ R_PPC64_TPREL16 = 69
3038
+ R_PPC64_TPREL16_LO = 70
3039
+ R_PPC64_TPREL16_HI = 71
3040
+ R_PPC64_TPREL16_HA = 72
3041
+ R_PPC64_TPREL64 = 73
3042
+ R_PPC64_DTPREL16 = 74
3043
+ R_PPC64_DTPREL16_LO = 75
3044
+ R_PPC64_DTPREL16_HI = 76
3045
+ R_PPC64_DTPREL16_HA = 77
3046
+ R_PPC64_DTPREL64 = 78
3047
+ R_PPC64_GOT_TLSGD16 = 79
3048
+ R_PPC64_GOT_TLSGD16_LO = 80
3049
+ R_PPC64_GOT_TLSGD16_HI = 81
3050
+ R_PPC64_GOT_TLSGD16_HA = 82
3051
+ R_PPC64_GOT_TLSLD16 = 83
3052
+ R_PPC64_GOT_TLSLD16_LO = 84
3053
+ R_PPC64_GOT_TLSLD16_HI = 85
3054
+ R_PPC64_GOT_TLSLD16_HA = 86
3055
+ R_PPC64_GOT_TPREL16_DS = 87
3056
+ R_PPC64_GOT_TPREL16_LO_DS = 88
3057
+ R_PPC64_GOT_TPREL16_HI = 89
3058
+ R_PPC64_GOT_TPREL16_HA = 90
3059
+ R_PPC64_GOT_DTPREL16_DS = 91
3060
+ R_PPC64_GOT_DTPREL16_LO_DS = 92
3061
+ R_PPC64_GOT_DTPREL16_HI = 93
3062
+ R_PPC64_GOT_DTPREL16_HA = 94
3063
+ R_PPC64_TPREL16_DS = 95
3064
+ R_PPC64_TPREL16_LO_DS = 96
3065
+ R_PPC64_TPREL16_HIGHER = 97
3066
+ R_PPC64_TPREL16_HIGHERA = 98
3067
+ R_PPC64_TPREL16_HIGHEST = 99
3068
+ R_PPC64_TPREL16_HIGHESTA = 100
3069
+ R_PPC64_DTPREL16_DS = 101
3070
+ R_PPC64_DTPREL16_LO_DS = 102
3071
+ R_PPC64_DTPREL16_HIGHER = 103
3072
+ R_PPC64_DTPREL16_HIGHERA = 104
3073
+ R_PPC64_DTPREL16_HIGHEST = 105
3074
+ R_PPC64_DTPREL16_HIGHESTA = 106
3075
+ R_PPC64_TLSGD = 107
3076
+ R_PPC64_TLSLD = 108
3077
+ R_PPC64_TOCSAVE = 109
3078
+ R_PPC64_ADDR16_HIGH = 110
3079
+ R_PPC64_ADDR16_HIGHA = 111
3080
+ R_PPC64_TPREL16_HIGH = 112
3081
+ R_PPC64_TPREL16_HIGHA = 113
3082
+ R_PPC64_DTPREL16_HIGH = 114
3083
+ R_PPC64_DTPREL16_HIGHA = 115
3084
+ R_PPC64_JMP_IREL = 247
3085
+ R_PPC64_IRELATIVE = 248
3086
+ R_PPC64_REL16 = 249
3087
+ R_PPC64_REL16_LO = 250
3088
+ R_PPC64_REL16_HI = 251
3089
+ R_PPC64_REL16_HA = 252
3090
+ EF_PPC64_ABI = 3
3091
+ DT_PPC64_GLINK = (DT_LOPROC + 0)
3092
+ DT_PPC64_OPD = (DT_LOPROC + 1)
3093
+ DT_PPC64_OPDSZ = (DT_LOPROC + 2)
3094
+ DT_PPC64_OPT = (DT_LOPROC + 3)
3095
+ DT_PPC64_NUM = 4
3096
+ PPC64_OPT_TLS = 1
3097
+ PPC64_OPT_MULTI_TOC = 2
3098
+ PPC64_OPT_LOCALENTRY = 4
3099
+ STO_PPC64_LOCAL_BIT = 5
3100
+ STO_PPC64_LOCAL_MASK = (7 << STO_PPC64_LOCAL_BIT)
3101
+ EF_ARM_RELEXEC = 0x01
3102
+ EF_ARM_HASENTRY = 0x02
3103
+ EF_ARM_INTERWORK = 0x04
3104
+ EF_ARM_APCS_26 = 0x08
3105
+ EF_ARM_APCS_FLOAT = 0x10
3106
+ EF_ARM_PIC = 0x20
3107
+ EF_ARM_ALIGN8 = 0x40
3108
+ EF_ARM_NEW_ABI = 0x80
3109
+ EF_ARM_OLD_ABI = 0x100
3110
+ EF_ARM_SOFT_FLOAT = 0x200
3111
+ EF_ARM_VFP_FLOAT = 0x400
3112
+ EF_ARM_MAVERICK_FLOAT = 0x800
3113
+ EF_ARM_ABI_FLOAT_SOFT = 0x200
3114
+ EF_ARM_ABI_FLOAT_HARD = 0x400
3115
+ EF_ARM_SYMSARESORTED = 0x04
3116
+ EF_ARM_DYNSYMSUSESEGIDX = 0x08
3117
+ EF_ARM_MAPSYMSFIRST = 0x10
3118
+ EF_ARM_EABIMASK = 0XFF000000
3119
+ EF_ARM_BE8 = 0x00800000
3120
+ EF_ARM_LE8 = 0x00400000
3121
+ def EF_ARM_EABI_VERSION(flags): return ((flags) & EF_ARM_EABIMASK)
3122
+ EF_ARM_EABI_UNKNOWN = 0x00000000
3123
+ EF_ARM_EABI_VER1 = 0x01000000
3124
+ EF_ARM_EABI_VER2 = 0x02000000
3125
+ EF_ARM_EABI_VER3 = 0x03000000
3126
+ EF_ARM_EABI_VER4 = 0x04000000
3127
+ EF_ARM_EABI_VER5 = 0x05000000
3128
+ STT_ARM_TFUNC = STT_LOPROC
3129
+ STT_ARM_16BIT = STT_HIPROC
3130
+ SHF_ARM_ENTRYSECT = 0x10000000
3131
+ PF_ARM_PI = 0x20000000
3132
+ PF_ARM_ABS = 0x40000000
3133
+ PT_ARM_EXIDX = (PT_LOPROC + 1)
3134
+ SHT_ARM_EXIDX = (SHT_LOPROC + 1)
3135
+ SHT_ARM_PREEMPTMAP = (SHT_LOPROC + 2)
3136
+ SHT_ARM_ATTRIBUTES = (SHT_LOPROC + 3)
3137
+ R_AARCH64_NONE = 0
3138
+ R_AARCH64_P32_ABS32 = 1
3139
+ R_AARCH64_P32_COPY = 180
3140
+ R_AARCH64_P32_GLOB_DAT = 181
3141
+ R_AARCH64_P32_JUMP_SLOT = 182
3142
+ R_AARCH64_P32_RELATIVE = 183
3143
+ R_AARCH64_P32_TLS_DTPMOD = 184
3144
+ R_AARCH64_P32_TLS_DTPREL = 185
3145
+ R_AARCH64_P32_TLS_TPREL = 186
3146
+ R_AARCH64_P32_TLSDESC = 187
3147
+ R_AARCH64_P32_IRELATIVE = 188
3148
+ R_AARCH64_ABS64 = 257
3149
+ R_AARCH64_ABS32 = 258
3150
+ R_AARCH64_ABS16 = 259
3151
+ R_AARCH64_PREL64 = 260
3152
+ R_AARCH64_PREL32 = 261
3153
+ R_AARCH64_PREL16 = 262
3154
+ R_AARCH64_MOVW_UABS_G0 = 263
3155
+ R_AARCH64_MOVW_UABS_G0_NC = 264
3156
+ R_AARCH64_MOVW_UABS_G1 = 265
3157
+ R_AARCH64_MOVW_UABS_G1_NC = 266
3158
+ R_AARCH64_MOVW_UABS_G2 = 267
3159
+ R_AARCH64_MOVW_UABS_G2_NC = 268
3160
+ R_AARCH64_MOVW_UABS_G3 = 269
3161
+ R_AARCH64_MOVW_SABS_G0 = 270
3162
+ R_AARCH64_MOVW_SABS_G1 = 271
3163
+ R_AARCH64_MOVW_SABS_G2 = 272
3164
+ R_AARCH64_LD_PREL_LO19 = 273
3165
+ R_AARCH64_ADR_PREL_LO21 = 274
3166
+ R_AARCH64_ADR_PREL_PG_HI21 = 275
3167
+ R_AARCH64_ADR_PREL_PG_HI21_NC = 276
3168
+ R_AARCH64_ADD_ABS_LO12_NC = 277
3169
+ R_AARCH64_LDST8_ABS_LO12_NC = 278
3170
+ R_AARCH64_TSTBR14 = 279
3171
+ R_AARCH64_CONDBR19 = 280
3172
+ R_AARCH64_JUMP26 = 282
3173
+ R_AARCH64_CALL26 = 283
3174
+ R_AARCH64_LDST16_ABS_LO12_NC = 284
3175
+ R_AARCH64_LDST32_ABS_LO12_NC = 285
3176
+ R_AARCH64_LDST64_ABS_LO12_NC = 286
3177
+ R_AARCH64_MOVW_PREL_G0 = 287
3178
+ R_AARCH64_MOVW_PREL_G0_NC = 288
3179
+ R_AARCH64_MOVW_PREL_G1 = 289
3180
+ R_AARCH64_MOVW_PREL_G1_NC = 290
3181
+ R_AARCH64_MOVW_PREL_G2 = 291
3182
+ R_AARCH64_MOVW_PREL_G2_NC = 292
3183
+ R_AARCH64_MOVW_PREL_G3 = 293
3184
+ R_AARCH64_LDST128_ABS_LO12_NC = 299
3185
+ R_AARCH64_MOVW_GOTOFF_G0 = 300
3186
+ R_AARCH64_MOVW_GOTOFF_G0_NC = 301
3187
+ R_AARCH64_MOVW_GOTOFF_G1 = 302
3188
+ R_AARCH64_MOVW_GOTOFF_G1_NC = 303
3189
+ R_AARCH64_MOVW_GOTOFF_G2 = 304
3190
+ R_AARCH64_MOVW_GOTOFF_G2_NC = 305
3191
+ R_AARCH64_MOVW_GOTOFF_G3 = 306
3192
+ R_AARCH64_GOTREL64 = 307
3193
+ R_AARCH64_GOTREL32 = 308
3194
+ R_AARCH64_GOT_LD_PREL19 = 309
3195
+ R_AARCH64_LD64_GOTOFF_LO15 = 310
3196
+ R_AARCH64_ADR_GOT_PAGE = 311
3197
+ R_AARCH64_LD64_GOT_LO12_NC = 312
3198
+ R_AARCH64_LD64_GOTPAGE_LO15 = 313
3199
+ R_AARCH64_TLSGD_ADR_PREL21 = 512
3200
+ R_AARCH64_TLSGD_ADR_PAGE21 = 513
3201
+ R_AARCH64_TLSGD_ADD_LO12_NC = 514
3202
+ R_AARCH64_TLSGD_MOVW_G1 = 515
3203
+ R_AARCH64_TLSGD_MOVW_G0_NC = 516
3204
+ R_AARCH64_TLSLD_ADR_PREL21 = 517
3205
+ R_AARCH64_TLSLD_ADR_PAGE21 = 518
3206
+ R_AARCH64_TLSLD_ADD_LO12_NC = 519
3207
+ R_AARCH64_TLSLD_MOVW_G1 = 520
3208
+ R_AARCH64_TLSLD_MOVW_G0_NC = 521
3209
+ R_AARCH64_TLSLD_LD_PREL19 = 522
3210
+ R_AARCH64_TLSLD_MOVW_DTPREL_G2 = 523
3211
+ R_AARCH64_TLSLD_MOVW_DTPREL_G1 = 524
3212
+ R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC = 525
3213
+ R_AARCH64_TLSLD_MOVW_DTPREL_G0 = 526
3214
+ R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC = 527
3215
+ R_AARCH64_TLSLD_ADD_DTPREL_HI12 = 528
3216
+ R_AARCH64_TLSLD_ADD_DTPREL_LO12 = 529
3217
+ R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC = 530
3218
+ R_AARCH64_TLSLD_LDST8_DTPREL_LO12 = 531
3219
+ R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC = 532
3220
+ R_AARCH64_TLSLD_LDST16_DTPREL_LO12 = 533
3221
+ R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC = 534
3222
+ R_AARCH64_TLSLD_LDST32_DTPREL_LO12 = 535
3223
+ R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC = 536
3224
+ R_AARCH64_TLSLD_LDST64_DTPREL_LO12 = 537
3225
+ R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC = 538
3226
+ R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 = 539
3227
+ R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC = 540
3228
+ R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 = 541
3229
+ R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC = 542
3230
+ R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 = 543
3231
+ R_AARCH64_TLSLE_MOVW_TPREL_G2 = 544
3232
+ R_AARCH64_TLSLE_MOVW_TPREL_G1 = 545
3233
+ R_AARCH64_TLSLE_MOVW_TPREL_G1_NC = 546
3234
+ R_AARCH64_TLSLE_MOVW_TPREL_G0 = 547
3235
+ R_AARCH64_TLSLE_MOVW_TPREL_G0_NC = 548
3236
+ R_AARCH64_TLSLE_ADD_TPREL_HI12 = 549
3237
+ R_AARCH64_TLSLE_ADD_TPREL_LO12 = 550
3238
+ R_AARCH64_TLSLE_ADD_TPREL_LO12_NC = 551
3239
+ R_AARCH64_TLSLE_LDST8_TPREL_LO12 = 552
3240
+ R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC = 553
3241
+ R_AARCH64_TLSLE_LDST16_TPREL_LO12 = 554
3242
+ R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC = 555
3243
+ R_AARCH64_TLSLE_LDST32_TPREL_LO12 = 556
3244
+ R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC = 557
3245
+ R_AARCH64_TLSLE_LDST64_TPREL_LO12 = 558
3246
+ R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC = 559
3247
+ R_AARCH64_TLSDESC_LD_PREL19 = 560
3248
+ R_AARCH64_TLSDESC_ADR_PREL21 = 561
3249
+ R_AARCH64_TLSDESC_ADR_PAGE21 = 562
3250
+ R_AARCH64_TLSDESC_LD64_LO12 = 563
3251
+ R_AARCH64_TLSDESC_ADD_LO12 = 564
3252
+ R_AARCH64_TLSDESC_OFF_G1 = 565
3253
+ R_AARCH64_TLSDESC_OFF_G0_NC = 566
3254
+ R_AARCH64_TLSDESC_LDR = 567
3255
+ R_AARCH64_TLSDESC_ADD = 568
3256
+ R_AARCH64_TLSDESC_CALL = 569
3257
+ R_AARCH64_TLSLE_LDST128_TPREL_LO12 = 570
3258
+ R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC = 571
3259
+ R_AARCH64_TLSLD_LDST128_DTPREL_LO12 = 572
3260
+ R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC = 573
3261
+ R_AARCH64_COPY = 1024
3262
+ R_AARCH64_GLOB_DAT = 1025
3263
+ R_AARCH64_JUMP_SLOT = 1026
3264
+ R_AARCH64_RELATIVE = 1027
3265
+ R_AARCH64_TLS_DTPMOD = 1028
3266
+ R_AARCH64_TLS_DTPREL = 1029
3267
+ R_AARCH64_TLS_TPREL = 1030
3268
+ R_AARCH64_TLSDESC = 1031
3269
+ R_AARCH64_IRELATIVE = 1032
3270
+ DT_AARCH64_BTI_PLT = (DT_LOPROC + 1)
3271
+ DT_AARCH64_PAC_PLT = (DT_LOPROC + 3)
3272
+ DT_AARCH64_VARIANT_PCS = (DT_LOPROC + 5)
3273
+ DT_AARCH64_NUM = 6
3274
+ STO_AARCH64_VARIANT_PCS = 0x80
3275
+ R_ARM_NONE = 0
3276
+ R_ARM_ABS32 = 2
3277
+ R_ARM_REL32 = 3
3278
+ R_ARM_PC13 = 4
3279
+ R_ARM_ABS16 = 5
3280
+ R_ARM_ABS12 = 6
3281
+ R_ARM_THM_ABS5 = 7
3282
+ R_ARM_ABS8 = 8
3283
+ R_ARM_SBREL32 = 9
3284
+ R_ARM_THM_PC22 = 10
3285
+ R_ARM_AMP_VCALL9 = 12
3286
+ R_ARM_SWI24 = 13
3287
+ R_ARM_TLS_DESC = 13
3288
+ R_ARM_THM_SWI8 = 14
3289
+ R_ARM_XPC25 = 15
3290
+ R_ARM_THM_XPC22 = 16
3291
+ R_ARM_TLS_DTPMOD32 = 17
3292
+ R_ARM_TLS_DTPOFF32 = 18
3293
+ R_ARM_TLS_TPOFF32 = 19
3294
+ R_ARM_COPY = 20
3295
+ R_ARM_GLOB_DAT = 21
3296
+ R_ARM_JUMP_SLOT = 22
3297
+ R_ARM_RELATIVE = 23
3298
+ R_ARM_GOTOFF = 24
3299
+ R_ARM_GOTPC = 25
3300
+ R_ARM_GOT32 = 26
3301
+ R_ARM_PLT32 = 27
3302
+ R_ARM_CALL = 28
3303
+ R_ARM_THM_JUMP24 = 30
3304
+ R_ARM_BASE_ABS = 31
3305
+ R_ARM_ALU_PCREL_7_0 = 32
3306
+ R_ARM_ALU_PCREL_15_8 = 33
3307
+ R_ARM_ALU_PCREL_23_15 = 34
3308
+ R_ARM_LDR_SBREL_11_0 = 35
3309
+ R_ARM_ALU_SBREL_19_12 = 36
3310
+ R_ARM_ALU_SBREL_27_20 = 37
3311
+ R_ARM_TARGET1 = 38
3312
+ R_ARM_SBREL31 = 39
3313
+ R_ARM_V4BX = 40
3314
+ R_ARM_TARGET2 = 41
3315
+ R_ARM_PREL31 = 42
3316
+ R_ARM_MOVW_ABS_NC = 43
3317
+ R_ARM_MOVT_ABS = 44
3318
+ R_ARM_MOVW_PREL_NC = 45
3319
+ R_ARM_MOVT_PREL = 46
3320
+ R_ARM_THM_MOVW_ABS_NC = 47
3321
+ R_ARM_ABS32_NOI = 55
3322
+ R_ARM_REL32_NOI = 56
3323
+ R_ARM_ALU_PC_G0_NC = 57
3324
+ R_ARM_ALU_PC_G0 = 58
3325
+ R_ARM_ALU_PC_G1_NC = 59
3326
+ R_ARM_ALU_PC_G1 = 60
3327
+ R_ARM_ALU_PC_G2 = 61
3328
+ R_ARM_LDR_PC_G1 = 62
3329
+ R_ARM_LDR_PC_G2 = 63
3330
+ R_ARM_LDC_PC_G0 = 67
3331
+ R_ARM_LDC_PC_G1 = 68
3332
+ R_ARM_LDC_PC_G2 = 69
3333
+ R_ARM_ALU_SB_G0_NC = 70
3334
+ R_ARM_ALU_SB_G0 = 71
3335
+ R_ARM_ALU_SB_G1_NC = 72
3336
+ R_ARM_ALU_SB_G1 = 73
3337
+ R_ARM_ALU_SB_G2 = 74
3338
+ R_ARM_LDC_SB_G0 = 81
3339
+ R_ARM_LDC_SB_G1 = 82
3340
+ R_ARM_LDC_SB_G2 = 83
3341
+ R_ARM_TLS_GOTDESC = 90
3342
+ R_ARM_TLS_CALL = 91
3343
+ R_ARM_TLS_DESCSEQ = 92
3344
+ R_ARM_THM_TLS_CALL = 93
3345
+ R_ARM_PLT32_ABS = 94
3346
+ R_ARM_GOT_ABS = 95
3347
+ R_ARM_GOT_PREL = 96
3348
+ R_ARM_GOTRELAX = 99
3349
+ R_ARM_GNU_VTENTRY = 100
3350
+ R_ARM_GNU_VTINHERIT = 101
3351
+ R_ARM_THM_PC11 = 102
3352
+ R_ARM_ME_TOO = 128
3353
+ R_ARM_THM_TLS_DESCSEQ = 129
3354
+ R_ARM_THM_TLS_DESCSEQ16 = 129
3355
+ R_ARM_THM_TLS_DESCSEQ32 = 130
3356
+ R_ARM_IRELATIVE = 160
3357
+ R_ARM_RXPC25 = 249
3358
+ R_ARM_RSBREL32 = 250
3359
+ R_ARM_THM_RPC22 = 251
3360
+ R_ARM_RREL32 = 252
3361
+ R_ARM_RABS22 = 253
3362
+ R_ARM_RPC24 = 254
3363
+ R_ARM_RBASE = 255
3364
+ R_ARM_NUM = 256
3365
+ R_CKCORE_NONE = 0
3366
+ R_CKCORE_ADDR32 = 1
3367
+ R_CKCORE_PCRELIMM8BY4 = 2
3368
+ R_CKCORE_PCRELIMM11BY2 = 3
3369
+ R_CKCORE_PCREL32 = 5
3370
+ R_CKCORE_PCRELJSR_IMM11BY2 = 6
3371
+ R_CKCORE_RELATIVE = 9
3372
+ R_CKCORE_COPY = 10
3373
+ R_CKCORE_GLOB_DAT = 11
3374
+ R_CKCORE_JUMP_SLOT = 12
3375
+ R_CKCORE_GOTOFF = 13
3376
+ R_CKCORE_GOTPC = 14
3377
+ R_CKCORE_GOT32 = 15
3378
+ R_CKCORE_PLT32 = 16
3379
+ R_CKCORE_ADDRGOT = 17
3380
+ R_CKCORE_ADDRPLT = 18
3381
+ R_CKCORE_PCREL_IMM26BY2 = 19
3382
+ R_CKCORE_PCREL_IMM16BY2 = 20
3383
+ R_CKCORE_PCREL_IMM16BY4 = 21
3384
+ R_CKCORE_PCREL_IMM10BY2 = 22
3385
+ R_CKCORE_PCREL_IMM10BY4 = 23
3386
+ R_CKCORE_ADDR_HI16 = 24
3387
+ R_CKCORE_ADDR_LO16 = 25
3388
+ R_CKCORE_GOTPC_HI16 = 26
3389
+ R_CKCORE_GOTPC_LO16 = 27
3390
+ R_CKCORE_GOTOFF_HI16 = 28
3391
+ R_CKCORE_GOTOFF_LO16 = 29
3392
+ R_CKCORE_GOT12 = 30
3393
+ R_CKCORE_GOT_HI16 = 31
3394
+ R_CKCORE_GOT_LO16 = 32
3395
+ R_CKCORE_PLT12 = 33
3396
+ R_CKCORE_PLT_HI16 = 34
3397
+ R_CKCORE_PLT_LO16 = 35
3398
+ R_CKCORE_ADDRGOT_HI16 = 36
3399
+ R_CKCORE_ADDRGOT_LO16 = 37
3400
+ R_CKCORE_ADDRPLT_HI16 = 38
3401
+ R_CKCORE_ADDRPLT_LO16 = 39
3402
+ R_CKCORE_PCREL_JSR_IMM26BY2 = 40
3403
+ R_CKCORE_TOFFSET_LO16 = 41
3404
+ R_CKCORE_DOFFSET_LO16 = 42
3405
+ R_CKCORE_PCREL_IMM18BY2 = 43
3406
+ R_CKCORE_DOFFSET_IMM18 = 44
3407
+ R_CKCORE_DOFFSET_IMM18BY2 = 45
3408
+ R_CKCORE_DOFFSET_IMM18BY4 = 46
3409
+ R_CKCORE_GOT_IMM18BY4 = 48
3410
+ R_CKCORE_PLT_IMM18BY4 = 49
3411
+ R_CKCORE_PCREL_IMM7BY4 = 50
3412
+ R_CKCORE_TLS_LE32 = 51
3413
+ R_CKCORE_TLS_IE32 = 52
3414
+ R_CKCORE_TLS_GD32 = 53
3415
+ R_CKCORE_TLS_LDM32 = 54
3416
+ R_CKCORE_TLS_LDO32 = 55
3417
+ R_CKCORE_TLS_DTPMOD32 = 56
3418
+ R_CKCORE_TLS_DTPOFF32 = 57
3419
+ R_CKCORE_TLS_TPOFF32 = 58
3420
+ EF_CSKY_ABIMASK = 0XF0000000
3421
+ EF_CSKY_OTHER = 0X0FFF0000
3422
+ EF_CSKY_PROCESSOR = 0X0000FFFF
3423
+ EF_CSKY_ABIV1 = 0X10000000
3424
+ EF_CSKY_ABIV2 = 0X20000000
3425
+ SHT_CSKY_ATTRIBUTES = (SHT_LOPROC + 1)
3426
+ EF_IA_64_MASKOS = 0x0000000f
3427
+ EF_IA_64_ABI64 = 0x00000010
3428
+ EF_IA_64_ARCH = 0xff000000
3429
+ PT_IA_64_ARCHEXT = (PT_LOPROC + 0)
3430
+ PT_IA_64_UNWIND = (PT_LOPROC + 1)
3431
+ PT_IA_64_HP_OPT_ANOT = (PT_LOOS + 0x12)
3432
+ PT_IA_64_HP_HSL_ANOT = (PT_LOOS + 0x13)
3433
+ PT_IA_64_HP_STACK = (PT_LOOS + 0x14)
3434
+ PF_IA_64_NORECOV = 0x80000000
3435
+ SHT_IA_64_EXT = (SHT_LOPROC + 0)
3436
+ SHT_IA_64_UNWIND = (SHT_LOPROC + 1)
3437
+ SHF_IA_64_SHORT = 0x10000000
3438
+ SHF_IA_64_NORECOV = 0x20000000
3439
+ DT_IA_64_PLT_RESERVE = (DT_LOPROC + 0)
3440
+ DT_IA_64_NUM = 1
3441
+ R_IA64_NONE = 0x00
3442
+ R_IA64_IMM14 = 0x21
3443
+ R_IA64_IMM22 = 0x22
3444
+ R_IA64_IMM64 = 0x23
3445
+ R_IA64_DIR32MSB = 0x24
3446
+ R_IA64_DIR32LSB = 0x25
3447
+ R_IA64_DIR64MSB = 0x26
3448
+ R_IA64_DIR64LSB = 0x27
3449
+ R_IA64_GPREL22 = 0x2a
3450
+ R_IA64_GPREL64I = 0x2b
3451
+ R_IA64_GPREL32MSB = 0x2c
3452
+ R_IA64_GPREL32LSB = 0x2d
3453
+ R_IA64_GPREL64MSB = 0x2e
3454
+ R_IA64_GPREL64LSB = 0x2f
3455
+ R_IA64_LTOFF22 = 0x32
3456
+ R_IA64_LTOFF64I = 0x33
3457
+ R_IA64_PLTOFF22 = 0x3a
3458
+ R_IA64_PLTOFF64I = 0x3b
3459
+ R_IA64_PLTOFF64MSB = 0x3e
3460
+ R_IA64_PLTOFF64LSB = 0x3f
3461
+ R_IA64_FPTR64I = 0x43
3462
+ R_IA64_FPTR32MSB = 0x44
3463
+ R_IA64_FPTR32LSB = 0x45
3464
+ R_IA64_FPTR64MSB = 0x46
3465
+ R_IA64_FPTR64LSB = 0x47
3466
+ R_IA64_PCREL60B = 0x48
3467
+ R_IA64_PCREL21B = 0x49
3468
+ R_IA64_PCREL21M = 0x4a
3469
+ R_IA64_PCREL21F = 0x4b
3470
+ R_IA64_PCREL32MSB = 0x4c
3471
+ R_IA64_PCREL32LSB = 0x4d
3472
+ R_IA64_PCREL64MSB = 0x4e
3473
+ R_IA64_PCREL64LSB = 0x4f
3474
+ R_IA64_LTOFF_FPTR22 = 0x52
3475
+ R_IA64_LTOFF_FPTR64I = 0x53
3476
+ R_IA64_LTOFF_FPTR32MSB = 0x54
3477
+ R_IA64_LTOFF_FPTR32LSB = 0x55
3478
+ R_IA64_LTOFF_FPTR64MSB = 0x56
3479
+ R_IA64_LTOFF_FPTR64LSB = 0x57
3480
+ R_IA64_SEGREL32MSB = 0x5c
3481
+ R_IA64_SEGREL32LSB = 0x5d
3482
+ R_IA64_SEGREL64MSB = 0x5e
3483
+ R_IA64_SEGREL64LSB = 0x5f
3484
+ R_IA64_SECREL32MSB = 0x64
3485
+ R_IA64_SECREL32LSB = 0x65
3486
+ R_IA64_SECREL64MSB = 0x66
3487
+ R_IA64_SECREL64LSB = 0x67
3488
+ R_IA64_REL32MSB = 0x6c
3489
+ R_IA64_REL32LSB = 0x6d
3490
+ R_IA64_REL64MSB = 0x6e
3491
+ R_IA64_REL64LSB = 0x6f
3492
+ R_IA64_LTV32MSB = 0x74
3493
+ R_IA64_LTV32LSB = 0x75
3494
+ R_IA64_LTV64MSB = 0x76
3495
+ R_IA64_LTV64LSB = 0x77
3496
+ R_IA64_PCREL21BI = 0x79
3497
+ R_IA64_PCREL22 = 0x7a
3498
+ R_IA64_PCREL64I = 0x7b
3499
+ R_IA64_IPLTMSB = 0x80
3500
+ R_IA64_IPLTLSB = 0x81
3501
+ R_IA64_COPY = 0x84
3502
+ R_IA64_SUB = 0x85
3503
+ R_IA64_LTOFF22X = 0x86
3504
+ R_IA64_LDXMOV = 0x87
3505
+ R_IA64_TPREL14 = 0x91
3506
+ R_IA64_TPREL22 = 0x92
3507
+ R_IA64_TPREL64I = 0x93
3508
+ R_IA64_TPREL64MSB = 0x96
3509
+ R_IA64_TPREL64LSB = 0x97
3510
+ R_IA64_LTOFF_TPREL22 = 0x9a
3511
+ R_IA64_DTPMOD64MSB = 0xa6
3512
+ R_IA64_DTPMOD64LSB = 0xa7
3513
+ R_IA64_LTOFF_DTPMOD22 = 0xaa
3514
+ R_IA64_DTPREL14 = 0xb1
3515
+ R_IA64_DTPREL22 = 0xb2
3516
+ R_IA64_DTPREL64I = 0xb3
3517
+ R_IA64_DTPREL32MSB = 0xb4
3518
+ R_IA64_DTPREL32LSB = 0xb5
3519
+ R_IA64_DTPREL64MSB = 0xb6
3520
+ R_IA64_DTPREL64LSB = 0xb7
3521
+ R_IA64_LTOFF_DTPREL22 = 0xba
3522
+ EF_SH_MACH_MASK = 0x1f
3523
+ EF_SH_UNKNOWN = 0x0
3524
+ EF_SH1 = 0x1
3525
+ EF_SH2 = 0x2
3526
+ EF_SH3 = 0x3
3527
+ EF_SH_DSP = 0x4
3528
+ EF_SH3_DSP = 0x5
3529
+ EF_SH4AL_DSP = 0x6
3530
+ EF_SH3E = 0x8
3531
+ EF_SH4 = 0x9
3532
+ EF_SH2E = 0xb
3533
+ EF_SH4A = 0xc
3534
+ EF_SH2A = 0xd
3535
+ EF_SH4_NOFPU = 0x10
3536
+ EF_SH4A_NOFPU = 0x11
3537
+ EF_SH4_NOMMU_NOFPU = 0x12
3538
+ EF_SH2A_NOFPU = 0x13
3539
+ EF_SH3_NOMMU = 0x14
3540
+ EF_SH2A_SH4_NOFPU = 0x15
3541
+ EF_SH2A_SH3_NOFPU = 0x16
3542
+ EF_SH2A_SH4 = 0x17
3543
+ EF_SH2A_SH3E = 0x18
3544
+ R_SH_NONE = 0
3545
+ R_SH_DIR32 = 1
3546
+ R_SH_REL32 = 2
3547
+ R_SH_DIR8WPN = 3
3548
+ R_SH_IND12W = 4
3549
+ R_SH_DIR8WPL = 5
3550
+ R_SH_DIR8WPZ = 6
3551
+ R_SH_DIR8BP = 7
3552
+ R_SH_DIR8W = 8
3553
+ R_SH_DIR8L = 9
3554
+ R_SH_SWITCH16 = 25
3555
+ R_SH_SWITCH32 = 26
3556
+ R_SH_USES = 27
3557
+ R_SH_COUNT = 28
3558
+ R_SH_ALIGN = 29
3559
+ R_SH_CODE = 30
3560
+ R_SH_DATA = 31
3561
+ R_SH_LABEL = 32
3562
+ R_SH_SWITCH8 = 33
3563
+ R_SH_GNU_VTINHERIT = 34
3564
+ R_SH_GNU_VTENTRY = 35
3565
+ R_SH_TLS_GD_32 = 144
3566
+ R_SH_TLS_LD_32 = 145
3567
+ R_SH_TLS_LDO_32 = 146
3568
+ R_SH_TLS_IE_32 = 147
3569
+ R_SH_TLS_LE_32 = 148
3570
+ R_SH_TLS_DTPMOD32 = 149
3571
+ R_SH_TLS_DTPOFF32 = 150
3572
+ R_SH_TLS_TPOFF32 = 151
3573
+ R_SH_GOT32 = 160
3574
+ R_SH_PLT32 = 161
3575
+ R_SH_COPY = 162
3576
+ R_SH_GLOB_DAT = 163
3577
+ R_SH_JMP_SLOT = 164
3578
+ R_SH_RELATIVE = 165
3579
+ R_SH_GOTOFF = 166
3580
+ R_SH_GOTPC = 167
3581
+ R_SH_NUM = 256
3582
+ EF_S390_HIGH_GPRS = 0x00000001
3583
+ R_390_NONE = 0
3584
+ R_390_8 = 1
3585
+ R_390_12 = 2
3586
+ R_390_16 = 3
3587
+ R_390_32 = 4
3588
+ R_390_PC32 = 5
3589
+ R_390_GOT12 = 6
3590
+ R_390_GOT32 = 7
3591
+ R_390_PLT32 = 8
3592
+ R_390_COPY = 9
3593
+ R_390_GLOB_DAT = 10
3594
+ R_390_JMP_SLOT = 11
3595
+ R_390_RELATIVE = 12
3596
+ R_390_GOTOFF32 = 13
3597
+ R_390_GOTPC = 14
3598
+ R_390_GOT16 = 15
3599
+ R_390_PC16 = 16
3600
+ R_390_PC16DBL = 17
3601
+ R_390_PLT16DBL = 18
3602
+ R_390_PC32DBL = 19
3603
+ R_390_PLT32DBL = 20
3604
+ R_390_GOTPCDBL = 21
3605
+ R_390_64 = 22
3606
+ R_390_PC64 = 23
3607
+ R_390_GOT64 = 24
3608
+ R_390_PLT64 = 25
3609
+ R_390_GOTENT = 26
3610
+ R_390_GOTOFF16 = 27
3611
+ R_390_GOTOFF64 = 28
3612
+ R_390_GOTPLT12 = 29
3613
+ R_390_GOTPLT16 = 30
3614
+ R_390_GOTPLT32 = 31
3615
+ R_390_GOTPLT64 = 32
3616
+ R_390_GOTPLTENT = 33
3617
+ R_390_PLTOFF16 = 34
3618
+ R_390_PLTOFF32 = 35
3619
+ R_390_PLTOFF64 = 36
3620
+ R_390_TLS_LOAD = 37
3621
+ R_390_TLS_DTPMOD = 54
3622
+ R_390_TLS_DTPOFF = 55
3623
+ R_390_20 = 57
3624
+ R_390_GOT20 = 58
3625
+ R_390_GOTPLT20 = 59
3626
+ R_390_IRELATIVE = 61
3627
+ R_390_NUM = 62
3628
+ R_CRIS_NONE = 0
3629
+ R_CRIS_8 = 1
3630
+ R_CRIS_16 = 2
3631
+ R_CRIS_32 = 3
3632
+ R_CRIS_8_PCREL = 4
3633
+ R_CRIS_16_PCREL = 5
3634
+ R_CRIS_32_PCREL = 6
3635
+ R_CRIS_GNU_VTINHERIT = 7
3636
+ R_CRIS_GNU_VTENTRY = 8
3637
+ R_CRIS_COPY = 9
3638
+ R_CRIS_GLOB_DAT = 10
3639
+ R_CRIS_JUMP_SLOT = 11
3640
+ R_CRIS_RELATIVE = 12
3641
+ R_CRIS_16_GOT = 13
3642
+ R_CRIS_32_GOT = 14
3643
+ R_CRIS_16_GOTPLT = 15
3644
+ R_CRIS_32_GOTPLT = 16
3645
+ R_CRIS_32_GOTREL = 17
3646
+ R_CRIS_32_PLT_GOTREL = 18
3647
+ R_CRIS_32_PLT_PCREL = 19
3648
+ R_CRIS_NUM = 20
3649
+ R_X86_64_NONE = 0
3650
+ R_X86_64_64 = 1
3651
+ R_X86_64_PC32 = 2
3652
+ R_X86_64_GOT32 = 3
3653
+ R_X86_64_PLT32 = 4
3654
+ R_X86_64_COPY = 5
3655
+ R_X86_64_GLOB_DAT = 6
3656
+ R_X86_64_JUMP_SLOT = 7
3657
+ R_X86_64_RELATIVE = 8
3658
+ R_X86_64_32 = 10
3659
+ R_X86_64_32S = 11
3660
+ R_X86_64_16 = 12
3661
+ R_X86_64_PC16 = 13
3662
+ R_X86_64_8 = 14
3663
+ R_X86_64_PC8 = 15
3664
+ R_X86_64_DTPMOD64 = 16
3665
+ R_X86_64_DTPOFF64 = 17
3666
+ R_X86_64_TPOFF64 = 18
3667
+ R_X86_64_DTPOFF32 = 21
3668
+ R_X86_64_TPOFF32 = 23
3669
+ R_X86_64_PC64 = 24
3670
+ R_X86_64_GOTOFF64 = 25
3671
+ R_X86_64_GOT64 = 27
3672
+ R_X86_64_GOTPC64 = 29
3673
+ R_X86_64_GOTPLT64 = 30
3674
+ R_X86_64_SIZE32 = 32
3675
+ R_X86_64_SIZE64 = 33
3676
+ R_X86_64_GOTPC32_TLSDESC = 34
3677
+ R_X86_64_TLSDESC = 36
3678
+ R_X86_64_IRELATIVE = 37
3679
+ R_X86_64_RELATIVE64 = 38
3680
+ R_X86_64_NUM = 43
3681
+ SHT_X86_64_UNWIND = 0x70000001
3682
+ R_MN10300_NONE = 0
3683
+ R_MN10300_32 = 1
3684
+ R_MN10300_16 = 2
3685
+ R_MN10300_8 = 3
3686
+ R_MN10300_PCREL32 = 4
3687
+ R_MN10300_PCREL16 = 5
3688
+ R_MN10300_PCREL8 = 6
3689
+ R_MN10300_GNU_VTINHERIT = 7
3690
+ R_MN10300_GNU_VTENTRY = 8
3691
+ R_MN10300_24 = 9
3692
+ R_MN10300_GOTPC32 = 10
3693
+ R_MN10300_GOTPC16 = 11
3694
+ R_MN10300_GOTOFF32 = 12
3695
+ R_MN10300_GOTOFF24 = 13
3696
+ R_MN10300_GOTOFF16 = 14
3697
+ R_MN10300_PLT32 = 15
3698
+ R_MN10300_PLT16 = 16
3699
+ R_MN10300_GOT32 = 17
3700
+ R_MN10300_GOT24 = 18
3701
+ R_MN10300_GOT16 = 19
3702
+ R_MN10300_COPY = 20
3703
+ R_MN10300_GLOB_DAT = 21
3704
+ R_MN10300_JMP_SLOT = 22
3705
+ R_MN10300_RELATIVE = 23
3706
+ R_MN10300_TLS_GD = 24
3707
+ R_MN10300_TLS_LD = 25
3708
+ R_MN10300_TLS_LDO = 26
3709
+ R_MN10300_TLS_DTPMOD = 30
3710
+ R_MN10300_TLS_DTPOFF = 31
3711
+ R_MN10300_TLS_TPOFF = 32
3712
+ R_MN10300_NUM = 35
3713
+ R_M32R_NONE = 0
3714
+ R_M32R_16 = 1
3715
+ R_M32R_32 = 2
3716
+ R_M32R_24 = 3
3717
+ R_M32R_10_PCREL = 4
3718
+ R_M32R_18_PCREL = 5
3719
+ R_M32R_26_PCREL = 6
3720
+ R_M32R_HI16_ULO = 7
3721
+ R_M32R_HI16_SLO = 8
3722
+ R_M32R_LO16 = 9
3723
+ R_M32R_SDA16 = 10
3724
+ R_M32R_GNU_VTINHERIT = 11
3725
+ R_M32R_GNU_VTENTRY = 12
3726
+ R_M32R_16_RELA = 33
3727
+ R_M32R_32_RELA = 34
3728
+ R_M32R_24_RELA = 35
3729
+ R_M32R_10_PCREL_RELA = 36
3730
+ R_M32R_18_PCREL_RELA = 37
3731
+ R_M32R_26_PCREL_RELA = 38
3732
+ R_M32R_HI16_ULO_RELA = 39
3733
+ R_M32R_HI16_SLO_RELA = 40
3734
+ R_M32R_LO16_RELA = 41
3735
+ R_M32R_SDA16_RELA = 42
3736
+ R_M32R_RELA_GNU_VTINHERIT = 43
3737
+ R_M32R_RELA_GNU_VTENTRY = 44
3738
+ R_M32R_REL32 = 45
3739
+ R_M32R_GOT24 = 48
3740
+ R_M32R_26_PLTREL = 49
3741
+ R_M32R_COPY = 50
3742
+ R_M32R_GLOB_DAT = 51
3743
+ R_M32R_JMP_SLOT = 52
3744
+ R_M32R_RELATIVE = 53
3745
+ R_M32R_GOTOFF = 54
3746
+ R_M32R_GOTPC24 = 55
3747
+ R_M32R_GOT16_LO = 58
3748
+ R_M32R_GOTOFF_LO = 64
3749
+ R_M32R_NUM = 256
3750
+ R_MICROBLAZE_NONE = 0
3751
+ R_MICROBLAZE_32 = 1
3752
+ R_MICROBLAZE_32_PCREL = 2
3753
+ R_MICROBLAZE_64_PCREL = 3
3754
+ R_MICROBLAZE_32_PCREL_LO = 4
3755
+ R_MICROBLAZE_64 = 5
3756
+ R_MICROBLAZE_32_LO = 6
3757
+ R_MICROBLAZE_SRO32 = 7
3758
+ R_MICROBLAZE_SRW32 = 8
3759
+ R_MICROBLAZE_64_NONE = 9
3760
+ R_MICROBLAZE_32_SYM_OP_SYM = 10
3761
+ R_MICROBLAZE_GNU_VTINHERIT = 11
3762
+ R_MICROBLAZE_GNU_VTENTRY = 12
3763
+ R_MICROBLAZE_GOTPC_64 = 13
3764
+ R_MICROBLAZE_GOT_64 = 14
3765
+ R_MICROBLAZE_PLT_64 = 15
3766
+ R_MICROBLAZE_REL = 16
3767
+ R_MICROBLAZE_JUMP_SLOT = 17
3768
+ R_MICROBLAZE_GLOB_DAT = 18
3769
+ R_MICROBLAZE_GOTOFF_64 = 19
3770
+ R_MICROBLAZE_GOTOFF_32 = 20
3771
+ R_MICROBLAZE_COPY = 21
3772
+ R_MICROBLAZE_TLS = 22
3773
+ R_MICROBLAZE_TLSGD = 23
3774
+ R_MICROBLAZE_TLSLD = 24
3775
+ R_MICROBLAZE_TLSDTPMOD32 = 25
3776
+ R_MICROBLAZE_TLSDTPREL32 = 26
3777
+ R_MICROBLAZE_TLSDTPREL64 = 27
3778
+ R_MICROBLAZE_TLSGOTTPREL32 = 28
3779
+ R_MICROBLAZE_TLSTPREL32 = 29
3780
+ DT_NIOS2_GP = 0x70000002
3781
+ R_NIOS2_NONE = 0
3782
+ R_NIOS2_S16 = 1
3783
+ R_NIOS2_U16 = 2
3784
+ R_NIOS2_PCREL16 = 3
3785
+ R_NIOS2_CALL26 = 4
3786
+ R_NIOS2_IMM5 = 5
3787
+ R_NIOS2_CACHE_OPX = 6
3788
+ R_NIOS2_IMM6 = 7
3789
+ R_NIOS2_IMM8 = 8
3790
+ R_NIOS2_HI16 = 9
3791
+ R_NIOS2_LO16 = 10
3792
+ R_NIOS2_HIADJ16 = 11
3793
+ R_NIOS2_BFD_RELOC_32 = 12
3794
+ R_NIOS2_BFD_RELOC_16 = 13
3795
+ R_NIOS2_BFD_RELOC_8 = 14
3796
+ R_NIOS2_GPREL = 15
3797
+ R_NIOS2_GNU_VTINHERIT = 16
3798
+ R_NIOS2_GNU_VTENTRY = 17
3799
+ R_NIOS2_UJMP = 18
3800
+ R_NIOS2_CJMP = 19
3801
+ R_NIOS2_CALLR = 20
3802
+ R_NIOS2_GOT16 = 22
3803
+ R_NIOS2_CALL16 = 23
3804
+ R_NIOS2_GOTOFF_LO = 24
3805
+ R_NIOS2_GOTOFF_HA = 25
3806
+ R_NIOS2_PCREL_LO = 26
3807
+ R_NIOS2_PCREL_HA = 27
3808
+ R_NIOS2_TLS_GD16 = 28
3809
+ R_NIOS2_TLS_LDM16 = 29
3810
+ R_NIOS2_TLS_LDO16 = 30
3811
+ R_NIOS2_TLS_IE16 = 31
3812
+ R_NIOS2_TLS_LE16 = 32
3813
+ R_NIOS2_TLS_DTPMOD = 33
3814
+ R_NIOS2_TLS_DTPREL = 34
3815
+ R_NIOS2_TLS_TPREL = 35
3816
+ R_NIOS2_COPY = 36
3817
+ R_NIOS2_GLOB_DAT = 37
3818
+ R_NIOS2_JUMP_SLOT = 38
3819
+ R_NIOS2_RELATIVE = 39
3820
+ R_NIOS2_GOTOFF = 40
3821
+ R_NIOS2_CALL26_NOAT = 41
3822
+ R_NIOS2_GOT_LO = 42
3823
+ R_NIOS2_GOT_HA = 43
3824
+ R_NIOS2_CALL_LO = 44
3825
+ R_NIOS2_CALL_HA = 45
3826
+ R_TILEPRO_NONE = 0
3827
+ R_TILEPRO_32 = 1
3828
+ R_TILEPRO_16 = 2
3829
+ R_TILEPRO_8 = 3
3830
+ R_TILEPRO_32_PCREL = 4
3831
+ R_TILEPRO_16_PCREL = 5
3832
+ R_TILEPRO_8_PCREL = 6
3833
+ R_TILEPRO_LO16 = 7
3834
+ R_TILEPRO_HI16 = 8
3835
+ R_TILEPRO_HA16 = 9
3836
+ R_TILEPRO_COPY = 10
3837
+ R_TILEPRO_GLOB_DAT = 11
3838
+ R_TILEPRO_JMP_SLOT = 12
3839
+ R_TILEPRO_RELATIVE = 13
3840
+ R_TILEPRO_BROFF_X1 = 14
3841
+ R_TILEPRO_JOFFLONG_X1 = 15
3842
+ R_TILEPRO_JOFFLONG_X1_PLT = 16
3843
+ R_TILEPRO_IMM8_X0 = 17
3844
+ R_TILEPRO_IMM8_Y0 = 18
3845
+ R_TILEPRO_IMM8_X1 = 19
3846
+ R_TILEPRO_IMM8_Y1 = 20
3847
+ R_TILEPRO_MT_IMM15_X1 = 21
3848
+ R_TILEPRO_MF_IMM15_X1 = 22
3849
+ R_TILEPRO_IMM16_X0 = 23
3850
+ R_TILEPRO_IMM16_X1 = 24
3851
+ R_TILEPRO_IMM16_X0_LO = 25
3852
+ R_TILEPRO_IMM16_X1_LO = 26
3853
+ R_TILEPRO_IMM16_X0_HI = 27
3854
+ R_TILEPRO_IMM16_X1_HI = 28
3855
+ R_TILEPRO_IMM16_X0_HA = 29
3856
+ R_TILEPRO_IMM16_X1_HA = 30
3857
+ R_TILEPRO_IMM16_X0_PCREL = 31
3858
+ R_TILEPRO_IMM16_X1_PCREL = 32
3859
+ R_TILEPRO_IMM16_X0_LO_PCREL = 33
3860
+ R_TILEPRO_IMM16_X1_LO_PCREL = 34
3861
+ R_TILEPRO_IMM16_X0_HI_PCREL = 35
3862
+ R_TILEPRO_IMM16_X1_HI_PCREL = 36
3863
+ R_TILEPRO_IMM16_X0_HA_PCREL = 37
3864
+ R_TILEPRO_IMM16_X1_HA_PCREL = 38
3865
+ R_TILEPRO_IMM16_X0_GOT = 39
3866
+ R_TILEPRO_IMM16_X1_GOT = 40
3867
+ R_TILEPRO_IMM16_X0_GOT_LO = 41
3868
+ R_TILEPRO_IMM16_X1_GOT_LO = 42
3869
+ R_TILEPRO_IMM16_X0_GOT_HI = 43
3870
+ R_TILEPRO_IMM16_X1_GOT_HI = 44
3871
+ R_TILEPRO_IMM16_X0_GOT_HA = 45
3872
+ R_TILEPRO_IMM16_X1_GOT_HA = 46
3873
+ R_TILEPRO_MMSTART_X0 = 47
3874
+ R_TILEPRO_MMEND_X0 = 48
3875
+ R_TILEPRO_MMSTART_X1 = 49
3876
+ R_TILEPRO_MMEND_X1 = 50
3877
+ R_TILEPRO_SHAMT_X0 = 51
3878
+ R_TILEPRO_SHAMT_X1 = 52
3879
+ R_TILEPRO_SHAMT_Y0 = 53
3880
+ R_TILEPRO_SHAMT_Y1 = 54
3881
+ R_TILEPRO_DEST_IMM8_X1 = 55
3882
+ R_TILEPRO_TLS_GD_CALL = 60
3883
+ R_TILEPRO_IMM8_X0_TLS_GD_ADD = 61
3884
+ R_TILEPRO_IMM8_X1_TLS_GD_ADD = 62
3885
+ R_TILEPRO_IMM8_Y0_TLS_GD_ADD = 63
3886
+ R_TILEPRO_IMM8_Y1_TLS_GD_ADD = 64
3887
+ R_TILEPRO_TLS_IE_LOAD = 65
3888
+ R_TILEPRO_IMM16_X0_TLS_GD = 66
3889
+ R_TILEPRO_IMM16_X1_TLS_GD = 67
3890
+ R_TILEPRO_IMM16_X0_TLS_GD_LO = 68
3891
+ R_TILEPRO_IMM16_X1_TLS_GD_LO = 69
3892
+ R_TILEPRO_IMM16_X0_TLS_GD_HI = 70
3893
+ R_TILEPRO_IMM16_X1_TLS_GD_HI = 71
3894
+ R_TILEPRO_IMM16_X0_TLS_GD_HA = 72
3895
+ R_TILEPRO_IMM16_X1_TLS_GD_HA = 73
3896
+ R_TILEPRO_IMM16_X0_TLS_IE = 74
3897
+ R_TILEPRO_IMM16_X1_TLS_IE = 75
3898
+ R_TILEPRO_IMM16_X0_TLS_IE_LO = 76
3899
+ R_TILEPRO_IMM16_X1_TLS_IE_LO = 77
3900
+ R_TILEPRO_IMM16_X0_TLS_IE_HI = 78
3901
+ R_TILEPRO_IMM16_X1_TLS_IE_HI = 79
3902
+ R_TILEPRO_IMM16_X0_TLS_IE_HA = 80
3903
+ R_TILEPRO_IMM16_X1_TLS_IE_HA = 81
3904
+ R_TILEPRO_TLS_DTPMOD32 = 82
3905
+ R_TILEPRO_TLS_DTPOFF32 = 83
3906
+ R_TILEPRO_TLS_TPOFF32 = 84
3907
+ R_TILEPRO_IMM16_X0_TLS_LE = 85
3908
+ R_TILEPRO_IMM16_X1_TLS_LE = 86
3909
+ R_TILEPRO_IMM16_X0_TLS_LE_LO = 87
3910
+ R_TILEPRO_IMM16_X1_TLS_LE_LO = 88
3911
+ R_TILEPRO_IMM16_X0_TLS_LE_HI = 89
3912
+ R_TILEPRO_IMM16_X1_TLS_LE_HI = 90
3913
+ R_TILEPRO_IMM16_X0_TLS_LE_HA = 91
3914
+ R_TILEPRO_IMM16_X1_TLS_LE_HA = 92
3915
+ R_TILEPRO_GNU_VTINHERIT = 128
3916
+ R_TILEPRO_GNU_VTENTRY = 129
3917
+ R_TILEPRO_NUM = 130
3918
+ R_TILEGX_NONE = 0
3919
+ R_TILEGX_64 = 1
3920
+ R_TILEGX_32 = 2
3921
+ R_TILEGX_16 = 3
3922
+ R_TILEGX_8 = 4
3923
+ R_TILEGX_64_PCREL = 5
3924
+ R_TILEGX_32_PCREL = 6
3925
+ R_TILEGX_16_PCREL = 7
3926
+ R_TILEGX_8_PCREL = 8
3927
+ R_TILEGX_HW0 = 9
3928
+ R_TILEGX_HW1 = 10
3929
+ R_TILEGX_HW2 = 11
3930
+ R_TILEGX_HW3 = 12
3931
+ R_TILEGX_HW0_LAST = 13
3932
+ R_TILEGX_HW1_LAST = 14
3933
+ R_TILEGX_HW2_LAST = 15
3934
+ R_TILEGX_COPY = 16
3935
+ R_TILEGX_GLOB_DAT = 17
3936
+ R_TILEGX_JMP_SLOT = 18
3937
+ R_TILEGX_RELATIVE = 19
3938
+ R_TILEGX_BROFF_X1 = 20
3939
+ R_TILEGX_JUMPOFF_X1 = 21
3940
+ R_TILEGX_JUMPOFF_X1_PLT = 22
3941
+ R_TILEGX_IMM8_X0 = 23
3942
+ R_TILEGX_IMM8_Y0 = 24
3943
+ R_TILEGX_IMM8_X1 = 25
3944
+ R_TILEGX_IMM8_Y1 = 26
3945
+ R_TILEGX_DEST_IMM8_X1 = 27
3946
+ R_TILEGX_MT_IMM14_X1 = 28
3947
+ R_TILEGX_MF_IMM14_X1 = 29
3948
+ R_TILEGX_MMSTART_X0 = 30
3949
+ R_TILEGX_MMEND_X0 = 31
3950
+ R_TILEGX_SHAMT_X0 = 32
3951
+ R_TILEGX_SHAMT_X1 = 33
3952
+ R_TILEGX_SHAMT_Y0 = 34
3953
+ R_TILEGX_SHAMT_Y1 = 35
3954
+ R_TILEGX_IMM16_X0_HW0 = 36
3955
+ R_TILEGX_IMM16_X1_HW0 = 37
3956
+ R_TILEGX_IMM16_X0_HW1 = 38
3957
+ R_TILEGX_IMM16_X1_HW1 = 39
3958
+ R_TILEGX_IMM16_X0_HW2 = 40
3959
+ R_TILEGX_IMM16_X1_HW2 = 41
3960
+ R_TILEGX_IMM16_X0_HW3 = 42
3961
+ R_TILEGX_IMM16_X1_HW3 = 43
3962
+ R_TILEGX_IMM16_X0_HW0_LAST = 44
3963
+ R_TILEGX_IMM16_X1_HW0_LAST = 45
3964
+ R_TILEGX_IMM16_X0_HW1_LAST = 46
3965
+ R_TILEGX_IMM16_X1_HW1_LAST = 47
3966
+ R_TILEGX_IMM16_X0_HW2_LAST = 48
3967
+ R_TILEGX_IMM16_X1_HW2_LAST = 49
3968
+ R_TILEGX_IMM16_X0_HW0_PCREL = 50
3969
+ R_TILEGX_IMM16_X1_HW0_PCREL = 51
3970
+ R_TILEGX_IMM16_X0_HW1_PCREL = 52
3971
+ R_TILEGX_IMM16_X1_HW1_PCREL = 53
3972
+ R_TILEGX_IMM16_X0_HW2_PCREL = 54
3973
+ R_TILEGX_IMM16_X1_HW2_PCREL = 55
3974
+ R_TILEGX_IMM16_X0_HW3_PCREL = 56
3975
+ R_TILEGX_IMM16_X1_HW3_PCREL = 57
3976
+ R_TILEGX_IMM16_X0_HW0_LAST_PCREL = 58
3977
+ R_TILEGX_IMM16_X1_HW0_LAST_PCREL = 59
3978
+ R_TILEGX_IMM16_X0_HW1_LAST_PCREL = 60
3979
+ R_TILEGX_IMM16_X1_HW1_LAST_PCREL = 61
3980
+ R_TILEGX_IMM16_X0_HW2_LAST_PCREL = 62
3981
+ R_TILEGX_IMM16_X1_HW2_LAST_PCREL = 63
3982
+ R_TILEGX_IMM16_X0_HW0_GOT = 64
3983
+ R_TILEGX_IMM16_X1_HW0_GOT = 65
3984
+ R_TILEGX_IMM16_X0_HW0_PLT_PCREL = 66
3985
+ R_TILEGX_IMM16_X1_HW0_PLT_PCREL = 67
3986
+ R_TILEGX_IMM16_X0_HW1_PLT_PCREL = 68
3987
+ R_TILEGX_IMM16_X1_HW1_PLT_PCREL = 69
3988
+ R_TILEGX_IMM16_X0_HW2_PLT_PCREL = 70
3989
+ R_TILEGX_IMM16_X1_HW2_PLT_PCREL = 71
3990
+ R_TILEGX_IMM16_X0_HW0_LAST_GOT = 72
3991
+ R_TILEGX_IMM16_X1_HW0_LAST_GOT = 73
3992
+ R_TILEGX_IMM16_X0_HW1_LAST_GOT = 74
3993
+ R_TILEGX_IMM16_X1_HW1_LAST_GOT = 75
3994
+ R_TILEGX_IMM16_X0_HW3_PLT_PCREL = 76
3995
+ R_TILEGX_IMM16_X1_HW3_PLT_PCREL = 77
3996
+ R_TILEGX_IMM16_X0_HW0_TLS_GD = 78
3997
+ R_TILEGX_IMM16_X1_HW0_TLS_GD = 79
3998
+ R_TILEGX_IMM16_X0_HW0_TLS_LE = 80
3999
+ R_TILEGX_IMM16_X1_HW0_TLS_LE = 81
4000
+ R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE = 82
4001
+ R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE = 83
4002
+ R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE = 84
4003
+ R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE = 85
4004
+ R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD = 86
4005
+ R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD = 87
4006
+ R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD = 88
4007
+ R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD = 89
4008
+ R_TILEGX_IMM16_X0_HW0_TLS_IE = 92
4009
+ R_TILEGX_IMM16_X1_HW0_TLS_IE = 93
4010
+ R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL = 94
4011
+ R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL = 95
4012
+ R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL = 96
4013
+ R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL = 97
4014
+ R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL = 98
4015
+ R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL = 99
4016
+ R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE = 100
4017
+ R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE = 101
4018
+ R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE = 102
4019
+ R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE = 103
4020
+ R_TILEGX_TLS_DTPMOD64 = 106
4021
+ R_TILEGX_TLS_DTPOFF64 = 107
4022
+ R_TILEGX_TLS_TPOFF64 = 108
4023
+ R_TILEGX_TLS_DTPMOD32 = 109
4024
+ R_TILEGX_TLS_DTPOFF32 = 110
4025
+ R_TILEGX_TLS_TPOFF32 = 111
4026
+ R_TILEGX_TLS_GD_CALL = 112
4027
+ R_TILEGX_IMM8_X0_TLS_GD_ADD = 113
4028
+ R_TILEGX_IMM8_X1_TLS_GD_ADD = 114
4029
+ R_TILEGX_IMM8_Y0_TLS_GD_ADD = 115
4030
+ R_TILEGX_IMM8_Y1_TLS_GD_ADD = 116
4031
+ R_TILEGX_TLS_IE_LOAD = 117
4032
+ R_TILEGX_IMM8_X0_TLS_ADD = 118
4033
+ R_TILEGX_IMM8_X1_TLS_ADD = 119
4034
+ R_TILEGX_IMM8_Y0_TLS_ADD = 120
4035
+ R_TILEGX_IMM8_Y1_TLS_ADD = 121
4036
+ R_TILEGX_GNU_VTINHERIT = 128
4037
+ R_TILEGX_GNU_VTENTRY = 129
4038
+ R_TILEGX_NUM = 130
4039
+ EF_RISCV_RVC = 0x0001
4040
+ EF_RISCV_FLOAT_ABI = 0x0006
4041
+ EF_RISCV_FLOAT_ABI_SOFT = 0x0000
4042
+ EF_RISCV_FLOAT_ABI_SINGLE = 0x0002
4043
+ EF_RISCV_FLOAT_ABI_DOUBLE = 0x0004
4044
+ EF_RISCV_FLOAT_ABI_QUAD = 0x0006
4045
+ R_RISCV_NONE = 0
4046
+ R_RISCV_32 = 1
4047
+ R_RISCV_64 = 2
4048
+ R_RISCV_RELATIVE = 3
4049
+ R_RISCV_COPY = 4
4050
+ R_RISCV_JUMP_SLOT = 5
4051
+ R_RISCV_TLS_DTPMOD32 = 6
4052
+ R_RISCV_TLS_DTPMOD64 = 7
4053
+ R_RISCV_TLS_DTPREL32 = 8
4054
+ R_RISCV_TLS_DTPREL64 = 9
4055
+ R_RISCV_TLS_TPREL32 = 10
4056
+ R_RISCV_TLS_TPREL64 = 11
4057
+ R_RISCV_BRANCH = 16
4058
+ R_RISCV_JAL = 17
4059
+ R_RISCV_CALL = 18
4060
+ R_RISCV_CALL_PLT = 19
4061
+ R_RISCV_GOT_HI20 = 20
4062
+ R_RISCV_TLS_GOT_HI20 = 21
4063
+ R_RISCV_TLS_GD_HI20 = 22
4064
+ R_RISCV_PCREL_HI20 = 23
4065
+ R_RISCV_PCREL_LO12_I = 24
4066
+ R_RISCV_PCREL_LO12_S = 25
4067
+ R_RISCV_HI20 = 26
4068
+ R_RISCV_LO12_I = 27
4069
+ R_RISCV_LO12_S = 28
4070
+ R_RISCV_TPREL_HI20 = 29
4071
+ R_RISCV_TPREL_LO12_I = 30
4072
+ R_RISCV_TPREL_LO12_S = 31
4073
+ R_RISCV_TPREL_ADD = 32
4074
+ R_RISCV_ADD8 = 33
4075
+ R_RISCV_ADD16 = 34
4076
+ R_RISCV_ADD32 = 35
4077
+ R_RISCV_ADD64 = 36
4078
+ R_RISCV_SUB8 = 37
4079
+ R_RISCV_SUB16 = 38
4080
+ R_RISCV_SUB32 = 39
4081
+ R_RISCV_SUB64 = 40
4082
+ R_RISCV_GNU_VTINHERIT = 41
4083
+ R_RISCV_GNU_VTENTRY = 42
4084
+ R_RISCV_ALIGN = 43
4085
+ R_RISCV_RVC_BRANCH = 44
4086
+ R_RISCV_RVC_JUMP = 45
4087
+ R_RISCV_RVC_LUI = 46
4088
+ R_RISCV_GPREL_I = 47
4089
+ R_RISCV_GPREL_S = 48
4090
+ R_RISCV_TPREL_I = 49
4091
+ R_RISCV_TPREL_S = 50
4092
+ R_RISCV_RELAX = 51
4093
+ R_RISCV_SUB6 = 52
4094
+ R_RISCV_SET6 = 53
4095
+ R_RISCV_SET8 = 54
4096
+ R_RISCV_SET16 = 55
4097
+ R_RISCV_SET32 = 56
4098
+ R_RISCV_32_PCREL = 57
4099
+ R_RISCV_IRELATIVE = 58
4100
+ R_RISCV_NUM = 59
4101
+ R_BPF_NONE = 0
4102
+ R_BPF_64_64 = 1
4103
+ R_BPF_64_32 = 10
4104
+ R_METAG_HIADDR16 = 0
4105
+ R_METAG_LOADDR16 = 1
4106
+ R_METAG_ADDR32 = 2
4107
+ R_METAG_NONE = 3
4108
+ R_METAG_RELBRANCH = 4
4109
+ R_METAG_GETSETOFF = 5
4110
+ R_METAG_REG32OP1 = 6
4111
+ R_METAG_REG32OP2 = 7
4112
+ R_METAG_REG32OP3 = 8
4113
+ R_METAG_REG16OP1 = 9
4114
+ R_METAG_REG16OP2 = 10
4115
+ R_METAG_REG16OP3 = 11
4116
+ R_METAG_REG32OP4 = 12
4117
+ R_METAG_HIOG = 13
4118
+ R_METAG_LOOG = 14
4119
+ R_METAG_REL8 = 15
4120
+ R_METAG_REL16 = 16
4121
+ R_METAG_GNU_VTINHERIT = 30
4122
+ R_METAG_GNU_VTENTRY = 31
4123
+ R_METAG_HI16_GOTOFF = 32
4124
+ R_METAG_LO16_GOTOFF = 33
4125
+ R_METAG_GETSET_GOTOFF = 34
4126
+ R_METAG_GETSET_GOT = 35
4127
+ R_METAG_HI16_GOTPC = 36
4128
+ R_METAG_LO16_GOTPC = 37
4129
+ R_METAG_HI16_PLT = 38
4130
+ R_METAG_LO16_PLT = 39
4131
+ R_METAG_RELBRANCH_PLT = 40
4132
+ R_METAG_GOTOFF = 41
4133
+ R_METAG_PLT = 42
4134
+ R_METAG_COPY = 43
4135
+ R_METAG_JMP_SLOT = 44
4136
+ R_METAG_RELATIVE = 45
4137
+ R_METAG_GLOB_DAT = 46
4138
+ R_METAG_TLS_GD = 47
4139
+ R_METAG_TLS_LDM = 48
4140
+ R_METAG_TLS_LDO_HI16 = 49
4141
+ R_METAG_TLS_LDO_LO16 = 50
4142
+ R_METAG_TLS_LDO = 51
4143
+ R_METAG_TLS_IE = 52
4144
+ R_METAG_TLS_IENONPIC = 53
4145
+ R_METAG_TLS_IENONPIC_HI16 = 54
4146
+ R_METAG_TLS_IENONPIC_LO16 = 55
4147
+ R_METAG_TLS_TPOFF = 56
4148
+ R_METAG_TLS_DTPMOD = 57
4149
+ R_METAG_TLS_DTPOFF = 58
4150
+ R_METAG_TLS_LE = 59
4151
+ R_METAG_TLS_LE_HI16 = 60
4152
+ R_METAG_TLS_LE_LO16 = 61
4153
+ R_NDS32_NONE = 0
4154
+ R_NDS32_32_RELA = 20
4155
+ R_NDS32_COPY = 39
4156
+ R_NDS32_GLOB_DAT = 40
4157
+ R_NDS32_JMP_SLOT = 41
4158
+ R_NDS32_RELATIVE = 42
4159
+ R_NDS32_TLS_TPOFF = 102
4160
+ R_NDS32_TLS_DESC = 119
4161
+ R_ARC_NONE = 0x0
4162
+ R_ARC_8 = 0x1
4163
+ R_ARC_16 = 0x2
4164
+ R_ARC_24 = 0x3
4165
+ R_ARC_32 = 0x4
4166
+ R_ARC_B26 = 0x5
4167
+ R_ARC_B22_PCREL = 0x6
4168
+ R_ARC_H30 = 0x7
4169
+ R_ARC_N8 = 0x8
4170
+ R_ARC_N16 = 0x9
4171
+ R_ARC_N24 = 0xA
4172
+ R_ARC_N32 = 0xB
4173
+ R_ARC_SDA = 0xC
4174
+ R_ARC_SECTOFF = 0xD
4175
+ R_ARC_S21H_PCREL = 0xE
4176
+ R_ARC_S21W_PCREL = 0xF
4177
+ R_ARC_S25H_PCREL = 0x10
4178
+ R_ARC_S25W_PCREL = 0x11
4179
+ R_ARC_SDA32 = 0x12
4180
+ R_ARC_SDA_LDST = 0x13
4181
+ R_ARC_SDA_LDST1 = 0x14
4182
+ R_ARC_SDA_LDST2 = 0x15
4183
+ R_ARC_SDA16_LD = 0x16
4184
+ R_ARC_SDA16_LD1 = 0x17
4185
+ R_ARC_SDA16_LD2 = 0x18
4186
+ R_ARC_S13_PCREL = 0x19
4187
+ R_ARC_W = 0x1A
4188
+ R_ARC_32_ME = 0x1B
4189
+ R_ARC_N32_ME = 0x1C
4190
+ R_ARC_SECTOFF_ME = 0x1D
4191
+ R_ARC_SDA32_ME = 0x1E
4192
+ R_ARC_W_ME = 0x1F
4193
+ R_ARC_H30_ME = 0x20
4194
+ R_ARC_SECTOFF_U8 = 0x21
4195
+ R_ARC_SECTOFF_S9 = 0x22
4196
+ R_AC_SECTOFF_U8 = 0x23
4197
+ R_AC_SECTOFF_U8_1 = 0x24
4198
+ R_AC_SECTOFF_U8_2 = 0x25
4199
+ R_AC_SECTOFF_S9 = 0x26
4200
+ R_AC_SECTOFF_S9_1 = 0x27
4201
+ R_AC_SECTOFF_S9_2 = 0x28
4202
+ R_ARC_SECTOFF_ME_1 = 0x29
4203
+ R_ARC_SECTOFF_ME_2 = 0x2A
4204
+ R_ARC_SECTOFF_1 = 0x2B
4205
+ R_ARC_SECTOFF_2 = 0x2C
4206
+ R_ARC_PC32 = 0x32
4207
+ R_ARC_GOTPC32 = 0x33
4208
+ R_ARC_PLT32 = 0x34
4209
+ R_ARC_COPY = 0x35
4210
+ R_ARC_GLOB_DAT = 0x36
4211
+ R_ARC_JUMP_SLOT = 0x37
4212
+ R_ARC_RELATIVE = 0x38
4213
+ R_ARC_GOTOFF = 0x39
4214
+ R_ARC_GOTPC = 0x3A
4215
+ R_ARC_GOT32 = 0x3B
4216
+ R_ARC_TLS_DTPMOD = 0x42
4217
+ R_ARC_TLS_DTPOFF = 0x43
4218
+ R_ARC_TLS_TPOFF = 0x44
4219
+ R_ARC_TLS_GD_GOT = 0x45
4220
+ R_ARC_TLS_GD_LD = 0x46
4221
+ R_ARC_TLS_GD_CALL = 0x47
4222
+ R_ARC_TLS_IE_GOT = 0x48
4223
+ R_ARC_TLS_DTPOFF_S9 = 0x4a
4224
+ R_ARC_TLS_LE_S9 = 0x4a
4225
+ R_ARC_TLS_LE_32 = 0x4b
4226
+ R_OR1K_NONE = 0
4227
+ R_OR1K_32 = 1
4228
+ R_OR1K_16 = 2
4229
+ R_OR1K_8 = 3
4230
+ R_OR1K_LO_16_IN_INSN = 4
4231
+ R_OR1K_HI_16_IN_INSN = 5
4232
+ R_OR1K_INSN_REL_26 = 6
4233
+ R_OR1K_GNU_VTENTRY = 7
4234
+ R_OR1K_GNU_VTINHERIT = 8
4235
+ R_OR1K_32_PCREL = 9
4236
+ R_OR1K_16_PCREL = 10
4237
+ R_OR1K_8_PCREL = 11
4238
+ R_OR1K_GOTPC_HI16 = 12
4239
+ R_OR1K_GOTPC_LO16 = 13
4240
+ R_OR1K_GOT16 = 14
4241
+ R_OR1K_PLT26 = 15
4242
+ R_OR1K_GOTOFF_HI16 = 16
4243
+ R_OR1K_GOTOFF_LO16 = 17
4244
+ R_OR1K_COPY = 18
4245
+ R_OR1K_GLOB_DAT = 19
4246
+ R_OR1K_JMP_SLOT = 20
4247
+ R_OR1K_RELATIVE = 21
4248
+ R_OR1K_TLS_GD_HI16 = 22
4249
+ R_OR1K_TLS_GD_LO16 = 23
4250
+ R_OR1K_TLS_LDM_HI16 = 24
4251
+ R_OR1K_TLS_LDM_LO16 = 25
4252
+ R_OR1K_TLS_LDO_HI16 = 26
4253
+ R_OR1K_TLS_LDO_LO16 = 27
4254
+ R_OR1K_TLS_IE_HI16 = 28
4255
+ R_OR1K_TLS_IE_LO16 = 29
4256
+ R_OR1K_TLS_LE_HI16 = 30
4257
+ R_OR1K_TLS_LE_LO16 = 31
4258
+ R_OR1K_TLS_TPOFF = 32
4259
+ R_OR1K_TLS_DTPOFF = 33
4260
+ R_OR1K_TLS_DTPMOD = 34