10 typedef uint16_t Elf32_Half;
11 typedef uint16_t Elf64_Half;
13 typedef uint32_t Elf32_Word;
14 typedef int32_t Elf32_Sword;
15 typedef uint32_t Elf64_Word;
16 typedef int32_t Elf64_Sword;
18 typedef uint64_t Elf32_Xword;
19 typedef int64_t Elf32_Sxword;
20 typedef uint64_t Elf64_Xword;
21 typedef int64_t Elf64_Sxword;
23 typedef uint32_t Elf32_Addr;
24 typedef uint64_t Elf64_Addr;
26 typedef uint32_t Elf32_Off;
27 typedef uint64_t Elf64_Off;
29 typedef uint16_t Elf32_Section;
30 typedef uint16_t Elf64_Section;
32 typedef Elf32_Half Elf32_Versym;
33 typedef Elf64_Half Elf64_Versym;
35 #define EI_NIDENT (16)
38 unsigned char e_ident[EI_NIDENT];
47 Elf32_Half e_phentsize;
49 Elf32_Half e_shentsize;
51 Elf32_Half e_shstrndx;
55 unsigned char e_ident[EI_NIDENT];
64 Elf64_Half e_phentsize;
66 Elf64_Half e_shentsize;
68 Elf64_Half e_shstrndx;
84 #define ELFMAG "\177ELF"
88 #define ELFCLASSNONE 0
103 #define ELFOSABI_NONE 0
104 #define ELFOSABI_SYSV 0
105 #define ELFOSABI_HPUX 1
106 #define ELFOSABI_NETBSD 2
107 #define ELFOSABI_LINUX 3
108 #define ELFOSABI_GNU 3
109 #define ELFOSABI_SOLARIS 6
110 #define ELFOSABI_AIX 7
111 #define ELFOSABI_IRIX 8
112 #define ELFOSABI_FREEBSD 9
113 #define ELFOSABI_TRU64 10
114 #define ELFOSABI_MODESTO 11
115 #define ELFOSABI_OPENBSD 12
116 #define ELFOSABI_ARM 97
117 #define ELFOSABI_STANDALONE 255
119 #define EI_ABIVERSION 8
131 #define ET_LOOS 0xfe00
132 #define ET_HIOS 0xfeff
133 #define ET_LOPROC 0xff00
134 #define ET_HIPROC 0xffff
147 #define EM_MIPS_RS3_LE 10
151 #define EM_SPARC32PLUS 18
162 #define EM_FAKE_ALPHA 41
164 #define EM_SPARCV9 43
165 #define EM_TRICORE 44
168 #define EM_H8_300H 47
173 #define EM_COLDFIRE 52
179 #define EM_STARCORE 58
187 #define EM_ST9PLUS 67
197 #define EM_JAVELIN 77
198 #define EM_FIREPATH 78
209 #define EM_MN10300 89
210 #define EM_MN10200 90
213 #define EM_OPENRISC 92
215 #define EM_ARC_COMPACT 93
217 #define EM_VIDEOCORE 95
218 #define EM_TMM_GPP 96
226 #define EM_F2MC16 104
227 #define EM_MSP430 105
228 #define EM_BLACKFIN 106
229 #define EM_SE_C33 107
232 #define EM_UNICORE 110
233 #define EM_EXCESS 111
235 #define EM_ALTERA_NIOS2 113
240 #define EM_DSPIC30F 118
243 #define EM_TSK3000 131
247 #define EM_SCORE7 135
249 #define EM_VIDEOCORE3 137
250 #define EM_LATTICEMICO32 138
251 #define EM_SE_C17 139
252 #define EM_TI_C6000 140
253 #define EM_TI_C2000 141
254 #define EM_TI_C5500 142
255 #define EM_TI_ARP32 143
256 #define EM_TI_PRU 144
257 #define EM_MMDSP_PLUS 160
258 #define EM_CYPRESS_M8C 161
260 #define EM_TRIMEDIA 163
263 #define EM_STXP7X 166
265 #define EM_ECOG1X 168
266 #define EM_MAXQ30 169
267 #define EM_XIMO16 170
269 #define EM_CRAYNV2 172
272 #define EM_MCST_ELBRUS 175
273 #define EM_ECOG16 176
279 #define EM_AARCH64 183
282 #define EM_TILE64 187
283 #define EM_TILEPRO 188
284 #define EM_MICROBLAZE 189
286 #define EM_TILEGX 191
287 #define EM_CLOUDSHIELD 192
288 #define EM_COREA_1ST 193
289 #define EM_COREA_2ND 194
290 #define EM_ARC_COMPACT2 195
293 #define EM_VIDEOCORE5 198
295 #define EM_56800EX 200
299 #define EM_MCHP_PIC 204
309 #define EM_CSR_KALIMBA 219
311 #define EM_VISIUM 221
314 #define EM_AMDGPU 224
319 #define EM_ALPHA 0x9026
334 Elf32_Word sh_addralign;
335 Elf32_Word sh_entsize;
341 Elf64_Xword sh_flags;
347 Elf64_Xword sh_addralign;
348 Elf64_Xword sh_entsize;
354 #define SHN_LORESERVE 0xff00
355 #define SHN_LOPROC 0xff00
356 #define SHN_BEFORE 0xff00
358 #define SHN_AFTER 0xff01
360 #define SHN_HIPROC 0xff1f
361 #define SHN_LOOS 0xff20
362 #define SHN_HIOS 0xff3f
363 #define SHN_ABS 0xfff1
364 #define SHN_COMMON 0xfff2
365 #define SHN_XINDEX 0xffff
366 #define SHN_HIRESERVE 0xffff
371 #define SHT_PROGBITS 1
376 #define SHT_DYNAMIC 6
381 #define SHT_DYNSYM 11
382 #define SHT_INIT_ARRAY 14
383 #define SHT_FINI_ARRAY 15
384 #define SHT_PREINIT_ARRAY 16
386 #define SHT_SYMTAB_SHNDX 18
388 #define SHT_LOOS 0x60000000
389 #define SHT_GNU_ATTRIBUTES 0x6ffffff5
390 #define SHT_GNU_HASH 0x6ffffff6
391 #define SHT_GNU_LIBLIST 0x6ffffff7
392 #define SHT_CHECKSUM 0x6ffffff8
393 #define SHT_LOSUNW 0x6ffffffa
394 #define SHT_SUNW_move 0x6ffffffa
395 #define SHT_SUNW_COMDAT 0x6ffffffb
396 #define SHT_SUNW_syminfo 0x6ffffffc
397 #define SHT_GNU_verdef 0x6ffffffd
398 #define SHT_GNU_verneed 0x6ffffffe
399 #define SHT_GNU_versym 0x6fffffff
400 #define SHT_HISUNW 0x6fffffff
401 #define SHT_HIOS 0x6fffffff
402 #define SHT_LOPROC 0x70000000
403 #define SHT_HIPROC 0x7fffffff
404 #define SHT_LOUSER 0x80000000
405 #define SHT_HIUSER 0x8fffffff
407 #define SHF_WRITE (1 << 0)
408 #define SHF_ALLOC (1 << 1)
409 #define SHF_EXECINSTR (1 << 2)
410 #define SHF_MERGE (1 << 4)
411 #define SHF_STRINGS (1 << 5)
412 #define SHF_INFO_LINK (1 << 6)
413 #define SHF_LINK_ORDER (1 << 7)
414 #define SHF_OS_NONCONFORMING (1 << 8)
416 #define SHF_GROUP (1 << 9)
417 #define SHF_TLS (1 << 10)
418 #define SHF_COMPRESSED (1 << 11)
419 #define SHF_MASKOS 0x0ff00000
420 #define SHF_MASKPROC 0xf0000000
421 #define SHF_ORDERED (1 << 30)
422 #define SHF_EXCLUDE (1U << 31)
427 Elf32_Word ch_addralign;
432 Elf64_Word ch_reserved;
434 Elf64_Xword ch_addralign;
437 #define ELFCOMPRESS_ZLIB 1
438 #define ELFCOMPRESS_LOOS 0x60000000
439 #define ELFCOMPRESS_HIOS 0x6fffffff
440 #define ELFCOMPRESS_LOPROC 0x70000000
441 #define ELFCOMPRESS_HIPROC 0x7fffffff
444 #define GRP_COMDAT 0x1
450 unsigned char st_info;
451 unsigned char st_other;
452 Elf32_Section st_shndx;
457 unsigned char st_info;
458 unsigned char st_other;
459 Elf64_Section st_shndx;
465 Elf32_Half si_boundto;
470 Elf64_Half si_boundto;
474 #define SYMINFO_BT_SELF 0xffff
475 #define SYMINFO_BT_PARENT 0xfffe
476 #define SYMINFO_BT_LOWRESERVE 0xff00
478 #define SYMINFO_FLG_DIRECT 0x0001
479 #define SYMINFO_FLG_PASSTHRU 0x0002
480 #define SYMINFO_FLG_COPY 0x0004
481 #define SYMINFO_FLG_LAZYLOAD 0x0008
483 #define SYMINFO_NONE 0
484 #define SYMINFO_CURRENT 1
485 #define SYMINFO_NUM 2
487 #define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
488 #define ELF32_ST_TYPE(val) ((val) & 0xf)
489 #define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
491 #define ELF64_ST_BIND(val) ELF32_ST_BIND (val)
492 #define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val)
493 #define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type))
500 #define STB_GNU_UNIQUE 10
502 #define STB_LOPROC 13
503 #define STB_HIPROC 15
508 #define STT_SECTION 3
514 #define STT_GNU_IFUNC 10
516 #define STT_LOPROC 13
517 #define STT_HIPROC 15
521 #define ELF32_ST_VISIBILITY(o) ((o) & 0x03)
522 #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o)
524 #define STV_DEFAULT 0
525 #define STV_INTERNAL 1
527 #define STV_PROTECTED 3
547 Elf32_Sword r_addend;
553 Elf64_Sxword r_addend;
558 #define ELF32_R_SYM(val) ((val) >> 8)
559 #define ELF32_R_TYPE(val) ((val) & 0xff)
560 #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
562 #define ELF64_R_SYM(i) ((i) >> 32)
563 #define ELF64_R_TYPE(i) ((i) & 0xffffffff)
564 #define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type))
585 Elf64_Xword p_filesz;
601 #define PT_LOOS 0x60000000
602 #define PT_GNU_EH_FRAME 0x6474e550
603 #define PT_GNU_STACK 0x6474e551
604 #define PT_GNU_RELRO 0x6474e552
605 #define PT_LOSUNW 0x6ffffffa
606 #define PT_SUNWBSS 0x6ffffffa
607 #define PT_SUNWSTACK 0x6ffffffb
608 #define PT_HISUNW 0x6fffffff
609 #define PT_HIOS 0x6fffffff
610 #define PT_LOPROC 0x70000000
611 #define PT_HIPROC 0x7fffffff
614 #define PN_XNUM 0xffff
617 #define PF_X (1 << 0)
618 #define PF_W (1 << 1)
619 #define PF_R (1 << 2)
620 #define PF_MASKOS 0x0ff00000
621 #define PF_MASKPROC 0xf0000000
625 #define NT_PRSTATUS 1
627 #define NT_FPREGSET 2
628 #define NT_PRPSINFO 3
630 #define NT_TASKSTRUCT 4
631 #define NT_PLATFORM 5
633 #define NT_GWINDOWS 7
635 #define NT_PSTATUS 10
638 #define NT_UTSNAME 15
639 #define NT_LWPSTATUS 16
640 #define NT_LWPSINFO 17
641 #define NT_PRFPXREG 20
642 #define NT_SIGINFO 0x53494749
643 #define NT_FILE 0x46494c45
644 #define NT_PRXFPREG 0x46e62b7f
645 #define NT_PPC_VMX 0x100
646 #define NT_PPC_SPE 0x101
647 #define NT_PPC_VSX 0x102
648 #define NT_PPC_TAR 0x103
649 #define NT_PPC_PPR 0x104
650 #define NT_PPC_DSCR 0x105
651 #define NT_PPC_EBB 0x106
652 #define NT_PPC_PMU 0x107
653 #define NT_PPC_TM_CGPR 0x108
654 #define NT_PPC_TM_CFPR 0x109
655 #define NT_PPC_TM_CVMX 0x10a
656 #define NT_PPC_TM_CVSX 0x10b
657 #define NT_PPC_TM_SPR 0x10c
658 #define NT_PPC_TM_CTAR 0x10d
659 #define NT_PPC_TM_CPPR 0x10e
660 #define NT_PPC_TM_CDSCR 0x10f
661 #define NT_386_TLS 0x200
662 #define NT_386_IOPERM 0x201
663 #define NT_X86_XSTATE 0x202
664 #define NT_S390_HIGH_GPRS 0x300
665 #define NT_S390_TIMER 0x301
666 #define NT_S390_TODCMP 0x302
667 #define NT_S390_TODPREG 0x303
668 #define NT_S390_CTRS 0x304
669 #define NT_S390_PREFIX 0x305
670 #define NT_S390_LAST_BREAK 0x306
671 #define NT_S390_SYSTEM_CALL 0x307
672 #define NT_S390_TDB 0x308
673 #define NT_S390_VXRS_LOW 0x309
674 #define NT_S390_VXRS_HIGH 0x30a
675 #define NT_S390_GS_CB 0x30b
676 #define NT_S390_GS_BC 0x30c
677 #define NT_S390_RI_CB 0x30d
678 #define NT_ARM_VFP 0x400
679 #define NT_ARM_TLS 0x401
680 #define NT_ARM_HW_BREAK 0x402
681 #define NT_ARM_HW_WATCH 0x403
682 #define NT_ARM_SYSTEM_CALL 0x404
683 #define NT_ARM_SVE 0x405
684 #define NT_METAG_CBUF 0x500
685 #define NT_METAG_RPIPE 0x501
686 #define NT_METAG_TLS 0x502
687 #define NT_ARC_V2 0x600
713 #define DT_PLTRELSZ 2
727 #define DT_SYMBOLIC 16
733 #define DT_TEXTREL 22
735 #define DT_BIND_NOW 24
736 #define DT_INIT_ARRAY 25
737 #define DT_FINI_ARRAY 26
738 #define DT_INIT_ARRAYSZ 27
739 #define DT_FINI_ARRAYSZ 28
740 #define DT_RUNPATH 29
742 #define DT_ENCODING 32
743 #define DT_PREINIT_ARRAY 32
744 #define DT_PREINIT_ARRAYSZ 33
746 #define DT_LOOS 0x6000000d
747 #define DT_HIOS 0x6ffff000
748 #define DT_LOPROC 0x70000000
749 #define DT_HIPROC 0x7fffffff
750 #define DT_PROCNUM DT_MIPS_NUM
752 #define DT_VALRNGLO 0x6ffffd00
753 #define DT_GNU_PRELINKED 0x6ffffdf5
754 #define DT_GNU_CONFLICTSZ 0x6ffffdf6
755 #define DT_GNU_LIBLISTSZ 0x6ffffdf7
756 #define DT_CHECKSUM 0x6ffffdf8
757 #define DT_PLTPADSZ 0x6ffffdf9
758 #define DT_MOVEENT 0x6ffffdfa
759 #define DT_MOVESZ 0x6ffffdfb
760 #define DT_FEATURE_1 0x6ffffdfc
761 #define DT_POSFLAG_1 0x6ffffdfd
763 #define DT_SYMINSZ 0x6ffffdfe
764 #define DT_SYMINENT 0x6ffffdff
765 #define DT_VALRNGHI 0x6ffffdff
766 #define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag))
769 #define DT_ADDRRNGLO 0x6ffffe00
770 #define DT_GNU_HASH 0x6ffffef5
771 #define DT_TLSDESC_PLT 0x6ffffef6
772 #define DT_TLSDESC_GOT 0x6ffffef7
773 #define DT_GNU_CONFLICT 0x6ffffef8
774 #define DT_GNU_LIBLIST 0x6ffffef9
775 #define DT_CONFIG 0x6ffffefa
776 #define DT_DEPAUDIT 0x6ffffefb
777 #define DT_AUDIT 0x6ffffefc
778 #define DT_PLTPAD 0x6ffffefd
779 #define DT_MOVETAB 0x6ffffefe
780 #define DT_SYMINFO 0x6ffffeff
781 #define DT_ADDRRNGHI 0x6ffffeff
782 #define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag))
783 #define DT_ADDRNUM 11
787 #define DT_VERSYM 0x6ffffff0
789 #define DT_RELACOUNT 0x6ffffff9
790 #define DT_RELCOUNT 0x6ffffffa
793 #define DT_FLAGS_1 0x6ffffffb
794 #define DT_VERDEF 0x6ffffffc
796 #define DT_VERDEFNUM 0x6ffffffd
797 #define DT_VERNEED 0x6ffffffe
799 #define DT_VERNEEDNUM 0x6fffffff
800 #define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag))
801 #define DT_VERSIONTAGNUM 16
805 #define DT_AUXILIARY 0x7ffffffd
806 #define DT_FILTER 0x7fffffff
807 #define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
808 #define DT_EXTRANUM 3
811 #define DF_ORIGIN 0x00000001
812 #define DF_SYMBOLIC 0x00000002
813 #define DF_TEXTREL 0x00000004
814 #define DF_BIND_NOW 0x00000008
815 #define DF_STATIC_TLS 0x00000010
819 #define DF_1_NOW 0x00000001
820 #define DF_1_GLOBAL 0x00000002
821 #define DF_1_GROUP 0x00000004
822 #define DF_1_NODELETE 0x00000008
823 #define DF_1_LOADFLTR 0x00000010
824 #define DF_1_INITFIRST 0x00000020
825 #define DF_1_NOOPEN 0x00000040
826 #define DF_1_ORIGIN 0x00000080
827 #define DF_1_DIRECT 0x00000100
828 #define DF_1_TRANS 0x00000200
829 #define DF_1_INTERPOSE 0x00000400
830 #define DF_1_NODEFLIB 0x00000800
831 #define DF_1_NODUMP 0x00001000
832 #define DF_1_CONFALT 0x00002000
833 #define DF_1_ENDFILTEE 0x00004000
834 #define DF_1_DISPRELDNE 0x00008000
835 #define DF_1_DISPRELPND 0x00010000
836 #define DF_1_NODIRECT 0x00020000
837 #define DF_1_IGNMULDEF 0x00040000
838 #define DF_1_NOKSYMS 0x00080000
839 #define DF_1_NOHDR 0x00100000
840 #define DF_1_EDITED 0x00200000
841 #define DF_1_NORELOC 0x00400000
842 #define DF_1_SYMINTPOSE 0x00800000
843 #define DF_1_GLOBAUDIT 0x01000000
844 #define DF_1_SINGLETON 0x02000000
845 #define DF_1_STUB 0x04000000
846 #define DF_1_PIE 0x08000000
848 #define DTF_1_PARINIT 0x00000001
849 #define DTF_1_CONFEXP 0x00000002
852 #define DF_P1_LAZYLOAD 0x00000001
853 #define DF_P1_GROUPPERM 0x00000002
859 Elf32_Half vd_version;
869 Elf64_Half vd_version;
880 #define VER_DEF_NONE 0
881 #define VER_DEF_CURRENT 1
882 #define VER_DEF_NUM 2
885 #define VER_FLG_BASE 0x1
886 #define VER_FLG_WEAK 0x2
889 #define VER_NDX_LOCAL 0
890 #define VER_NDX_GLOBAL 1
891 #define VER_NDX_LORESERVE 0xff00
892 #define VER_NDX_ELIMINATE 0xff01
910 Elf32_Half vn_version;
918 Elf64_Half vn_version;
927 #define VER_NEED_NONE 0
928 #define VER_NEED_CURRENT 1
929 #define VER_NEED_NUM 2
935 Elf32_Half vna_flags;
936 Elf32_Half vna_other;
943 Elf64_Half vna_flags;
944 Elf64_Half vna_other;
951 #define VER_FLG_WEAK 0x2
989 #define AT_PLATFORM 15
998 #define AT_DCACHEBSIZE 19
999 #define AT_ICACHEBSIZE 20
1000 #define AT_UCACHEBSIZE 21
1004 #define AT_IGNOREPPC 22
1006 #define AT_SECURE 23
1008 #define AT_BASE_PLATFORM 24
1010 #define AT_RANDOM 25
1012 #define AT_HWCAP2 26
1014 #define AT_EXECFN 31
1018 #define AT_SYSINFO 32
1019 #define AT_SYSINFO_EHDR 33
1023 #define AT_L1I_CACHESHAPE 34
1024 #define AT_L1D_CACHESHAPE 35
1025 #define AT_L2_CACHESHAPE 36
1026 #define AT_L3_CACHESHAPE 37
1028 #define AT_L1I_CACHESIZE 40
1029 #define AT_L1I_CACHEGEOMETRY 41
1030 #define AT_L1D_CACHESIZE 42
1031 #define AT_L1D_CACHEGEOMETRY 43
1032 #define AT_L2_CACHESIZE 44
1033 #define AT_L2_CACHEGEOMETRY 45
1034 #define AT_L3_CACHESIZE 46
1035 #define AT_L3_CACHEGEOMETRY 47
1040 Elf32_Word n_namesz;
1041 Elf32_Word n_descsz;
1046 Elf64_Word n_namesz;
1047 Elf64_Word n_descsz;
1054 #define ELF_NOTE_SOLARIS "SUNW Solaris"
1057 #define ELF_NOTE_GNU "GNU"
1063 #define ELF_NOTE_PAGESIZE_HINT 1
1066 #define NT_GNU_ABI_TAG 1
1067 #define ELF_NOTE_ABI NT_GNU_ABI_TAG
1071 #define ELF_NOTE_OS_LINUX 0
1072 #define ELF_NOTE_OS_GNU 1
1073 #define ELF_NOTE_OS_SOLARIS2 2
1074 #define ELF_NOTE_OS_FREEBSD 3
1076 #define NT_GNU_BUILD_ID 3
1077 #define NT_GNU_GOLD_VERSION 4
1082 Elf32_Xword m_value;
1084 Elf32_Word m_poffset;
1085 Elf32_Half m_repeat;
1086 Elf32_Half m_stride;
1090 Elf64_Xword m_value;
1092 Elf64_Xword m_poffset;
1093 Elf64_Half m_repeat;
1094 Elf64_Half m_stride;
1098 #define ELF32_M_SYM(info) ((info) >> 8)
1099 #define ELF32_M_SIZE(info) ((unsigned char) (info))
1100 #define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size))
1102 #define ELF64_M_SYM(info) ELF32_M_SYM (info)
1103 #define ELF64_M_SIZE(info) ELF32_M_SIZE (info)
1104 #define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size)
1106 #define EF_CPU32 0x00810000
1108 #define R_68K_NONE 0
1112 #define R_68K_PC32 4
1113 #define R_68K_PC16 5
1115 #define R_68K_GOT32 7
1116 #define R_68K_GOT16 8
1117 #define R_68K_GOT8 9
1118 #define R_68K_GOT32O 10
1119 #define R_68K_GOT16O 11
1120 #define R_68K_GOT8O 12
1121 #define R_68K_PLT32 13
1122 #define R_68K_PLT16 14
1123 #define R_68K_PLT8 15
1124 #define R_68K_PLT32O 16
1125 #define R_68K_PLT16O 17
1126 #define R_68K_PLT8O 18
1127 #define R_68K_COPY 19
1128 #define R_68K_GLOB_DAT 20
1129 #define R_68K_JMP_SLOT 21
1130 #define R_68K_RELATIVE 22
1131 #define R_68K_NUM 23
1133 #define R_386_NONE 0
1135 #define R_386_PC32 2
1136 #define R_386_GOT32 3
1137 #define R_386_PLT32 4
1138 #define R_386_COPY 5
1139 #define R_386_GLOB_DAT 6
1140 #define R_386_JMP_SLOT 7
1141 #define R_386_RELATIVE 8
1142 #define R_386_GOTOFF 9
1143 #define R_386_GOTPC 10
1144 #define R_386_32PLT 11
1145 #define R_386_TLS_TPOFF 14
1146 #define R_386_TLS_IE 15
1147 #define R_386_TLS_GOTIE 16
1148 #define R_386_TLS_LE 17
1149 #define R_386_TLS_GD 18
1150 #define R_386_TLS_LDM 19
1152 #define R_386_PC16 21
1154 #define R_386_PC8 23
1155 #define R_386_TLS_GD_32 24
1156 #define R_386_TLS_GD_PUSH 25
1157 #define R_386_TLS_GD_CALL 26
1158 #define R_386_TLS_GD_POP 27
1159 #define R_386_TLS_LDM_32 28
1160 #define R_386_TLS_LDM_PUSH 29
1161 #define R_386_TLS_LDM_CALL 30
1162 #define R_386_TLS_LDM_POP 31
1163 #define R_386_TLS_LDO_32 32
1164 #define R_386_TLS_IE_32 33
1165 #define R_386_TLS_LE_32 34
1166 #define R_386_TLS_DTPMOD32 35
1167 #define R_386_TLS_DTPOFF32 36
1168 #define R_386_TLS_TPOFF32 37
1169 #define R_386_SIZE32 38
1170 #define R_386_TLS_GOTDESC 39
1171 #define R_386_TLS_DESC_CALL 40
1172 #define R_386_TLS_DESC 41
1173 #define R_386_IRELATIVE 42
1174 #define R_386_GOT32X 43
1175 #define R_386_NUM 44
1181 #define STT_SPARC_REGISTER 13
1185 #define EF_SPARCV9_MM 3
1186 #define EF_SPARCV9_TSO 0
1187 #define EF_SPARCV9_PSO 1
1188 #define EF_SPARCV9_RMO 2
1189 #define EF_SPARC_LEDATA 0x800000
1190 #define EF_SPARC_EXT_MASK 0xFFFF00
1191 #define EF_SPARC_32PLUS 0x000100
1192 #define EF_SPARC_SUN_US1 0x000200
1193 #define EF_SPARC_HAL_R1 0x000400
1194 #define EF_SPARC_SUN_US3 0x000800
1198 #define R_SPARC_NONE 0
1200 #define R_SPARC_16 2
1201 #define R_SPARC_32 3
1202 #define R_SPARC_DISP8 4
1203 #define R_SPARC_DISP16 5
1204 #define R_SPARC_DISP32 6
1205 #define R_SPARC_WDISP30 7
1206 #define R_SPARC_WDISP22 8
1207 #define R_SPARC_HI22 9
1208 #define R_SPARC_22 10
1209 #define R_SPARC_13 11
1210 #define R_SPARC_LO10 12
1211 #define R_SPARC_GOT10 13
1212 #define R_SPARC_GOT13 14
1213 #define R_SPARC_GOT22 15
1214 #define R_SPARC_PC10 16
1215 #define R_SPARC_PC22 17
1216 #define R_SPARC_WPLT30 18
1217 #define R_SPARC_COPY 19
1218 #define R_SPARC_GLOB_DAT 20
1219 #define R_SPARC_JMP_SLOT 21
1220 #define R_SPARC_RELATIVE 22
1221 #define R_SPARC_UA32 23
1225 #define R_SPARC_PLT32 24
1226 #define R_SPARC_HIPLT22 25
1227 #define R_SPARC_LOPLT10 26
1228 #define R_SPARC_PCPLT32 27
1229 #define R_SPARC_PCPLT22 28
1230 #define R_SPARC_PCPLT10 29
1231 #define R_SPARC_10 30
1232 #define R_SPARC_11 31
1233 #define R_SPARC_64 32
1234 #define R_SPARC_OLO10 33
1235 #define R_SPARC_HH22 34
1236 #define R_SPARC_HM10 35
1237 #define R_SPARC_LM22 36
1238 #define R_SPARC_PC_HH22 37
1239 #define R_SPARC_PC_HM10 38
1240 #define R_SPARC_PC_LM22 39
1241 #define R_SPARC_WDISP16 40
1242 #define R_SPARC_WDISP19 41
1243 #define R_SPARC_GLOB_JMP 42
1244 #define R_SPARC_7 43
1245 #define R_SPARC_5 44
1246 #define R_SPARC_6 45
1247 #define R_SPARC_DISP64 46
1248 #define R_SPARC_PLT64 47
1249 #define R_SPARC_HIX22 48
1250 #define R_SPARC_LOX10 49
1251 #define R_SPARC_H44 50
1252 #define R_SPARC_M44 51
1253 #define R_SPARC_L44 52
1254 #define R_SPARC_REGISTER 53
1255 #define R_SPARC_UA64 54
1256 #define R_SPARC_UA16 55
1257 #define R_SPARC_TLS_GD_HI22 56
1258 #define R_SPARC_TLS_GD_LO10 57
1259 #define R_SPARC_TLS_GD_ADD 58
1260 #define R_SPARC_TLS_GD_CALL 59
1261 #define R_SPARC_TLS_LDM_HI22 60
1262 #define R_SPARC_TLS_LDM_LO10 61
1263 #define R_SPARC_TLS_LDM_ADD 62
1264 #define R_SPARC_TLS_LDM_CALL 63
1265 #define R_SPARC_TLS_LDO_HIX22 64
1266 #define R_SPARC_TLS_LDO_LOX10 65
1267 #define R_SPARC_TLS_LDO_ADD 66
1268 #define R_SPARC_TLS_IE_HI22 67
1269 #define R_SPARC_TLS_IE_LO10 68
1270 #define R_SPARC_TLS_IE_LD 69
1271 #define R_SPARC_TLS_IE_LDX 70
1272 #define R_SPARC_TLS_IE_ADD 71
1273 #define R_SPARC_TLS_LE_HIX22 72
1274 #define R_SPARC_TLS_LE_LOX10 73
1275 #define R_SPARC_TLS_DTPMOD32 74
1276 #define R_SPARC_TLS_DTPMOD64 75
1277 #define R_SPARC_TLS_DTPOFF32 76
1278 #define R_SPARC_TLS_DTPOFF64 77
1279 #define R_SPARC_TLS_TPOFF32 78
1280 #define R_SPARC_TLS_TPOFF64 79
1281 #define R_SPARC_GOTDATA_HIX22 80
1282 #define R_SPARC_GOTDATA_LOX10 81
1283 #define R_SPARC_GOTDATA_OP_HIX22 82
1284 #define R_SPARC_GOTDATA_OP_LOX10 83
1285 #define R_SPARC_GOTDATA_OP 84
1286 #define R_SPARC_H34 85
1287 #define R_SPARC_SIZE32 86
1288 #define R_SPARC_SIZE64 87
1289 #define R_SPARC_GNU_VTINHERIT 250
1290 #define R_SPARC_GNU_VTENTRY 251
1291 #define R_SPARC_REV32 252
1293 #define R_SPARC_NUM 253
1297 #define DT_SPARC_REGISTER 0x70000001
1298 #define DT_SPARC_NUM 2
1301 #define EF_MIPS_NOREORDER 1
1302 #define EF_MIPS_PIC 2
1303 #define EF_MIPS_CPIC 4
1304 #define EF_MIPS_XGOT 8
1305 #define EF_MIPS_64BIT_WHIRL 16
1306 #define EF_MIPS_ABI2 32
1307 #define EF_MIPS_ABI_ON32 64
1308 #define EF_MIPS_FP64 512
1309 #define EF_MIPS_NAN2008 1024
1310 #define EF_MIPS_ARCH 0xf0000000
1314 #define EF_MIPS_ARCH_1 0x00000000
1315 #define EF_MIPS_ARCH_2 0x10000000
1316 #define EF_MIPS_ARCH_3 0x20000000
1317 #define EF_MIPS_ARCH_4 0x30000000
1318 #define EF_MIPS_ARCH_5 0x40000000
1319 #define EF_MIPS_ARCH_32 0x50000000
1320 #define EF_MIPS_ARCH_64 0x60000000
1321 #define EF_MIPS_ARCH_32R2 0x70000000
1322 #define EF_MIPS_ARCH_64R2 0x80000000
1325 #define E_MIPS_ARCH_1 0x00000000
1326 #define E_MIPS_ARCH_2 0x10000000
1327 #define E_MIPS_ARCH_3 0x20000000
1328 #define E_MIPS_ARCH_4 0x30000000
1329 #define E_MIPS_ARCH_5 0x40000000
1330 #define E_MIPS_ARCH_32 0x50000000
1331 #define E_MIPS_ARCH_64 0x60000000
1335 #define SHN_MIPS_ACOMMON 0xff00
1336 #define SHN_MIPS_TEXT 0xff01
1337 #define SHN_MIPS_DATA 0xff02
1338 #define SHN_MIPS_SCOMMON 0xff03
1339 #define SHN_MIPS_SUNDEFINED 0xff04
1343 #define SHT_MIPS_LIBLIST 0x70000000
1344 #define SHT_MIPS_MSYM 0x70000001
1345 #define SHT_MIPS_CONFLICT 0x70000002
1346 #define SHT_MIPS_GPTAB 0x70000003
1347 #define SHT_MIPS_UCODE 0x70000004
1348 #define SHT_MIPS_DEBUG 0x70000005
1349 #define SHT_MIPS_REGINFO 0x70000006
1350 #define SHT_MIPS_PACKAGE 0x70000007
1351 #define SHT_MIPS_PACKSYM 0x70000008
1352 #define SHT_MIPS_RELD 0x70000009
1353 #define SHT_MIPS_IFACE 0x7000000b
1354 #define SHT_MIPS_CONTENT 0x7000000c
1355 #define SHT_MIPS_OPTIONS 0x7000000d
1356 #define SHT_MIPS_SHDR 0x70000010
1357 #define SHT_MIPS_FDESC 0x70000011
1358 #define SHT_MIPS_EXTSYM 0x70000012
1359 #define SHT_MIPS_DENSE 0x70000013
1360 #define SHT_MIPS_PDESC 0x70000014
1361 #define SHT_MIPS_LOCSYM 0x70000015
1362 #define SHT_MIPS_AUXSYM 0x70000016
1363 #define SHT_MIPS_OPTSYM 0x70000017
1364 #define SHT_MIPS_LOCSTR 0x70000018
1365 #define SHT_MIPS_LINE 0x70000019
1366 #define SHT_MIPS_RFDESC 0x7000001a
1367 #define SHT_MIPS_DELTASYM 0x7000001b
1368 #define SHT_MIPS_DELTAINST 0x7000001c
1369 #define SHT_MIPS_DELTACLASS 0x7000001d
1370 #define SHT_MIPS_DWARF 0x7000001e
1371 #define SHT_MIPS_DELTADECL 0x7000001f
1372 #define SHT_MIPS_SYMBOL_LIB 0x70000020
1373 #define SHT_MIPS_EVENTS 0x70000021
1374 #define SHT_MIPS_TRANSLATE 0x70000022
1375 #define SHT_MIPS_PIXIE 0x70000023
1376 #define SHT_MIPS_XLATE 0x70000024
1377 #define SHT_MIPS_XLATE_DEBUG 0x70000025
1378 #define SHT_MIPS_WHIRL 0x70000026
1379 #define SHT_MIPS_EH_REGION 0x70000027
1380 #define SHT_MIPS_XLATE_OLD 0x70000028
1381 #define SHT_MIPS_PDR_EXCEPTION 0x70000029
1385 #define SHF_MIPS_GPREL 0x10000000
1386 #define SHF_MIPS_MERGE 0x20000000
1387 #define SHF_MIPS_ADDR 0x40000000
1388 #define SHF_MIPS_STRINGS 0x80000000
1389 #define SHF_MIPS_NOSTRIP 0x08000000
1390 #define SHF_MIPS_LOCAL 0x04000000
1391 #define SHF_MIPS_NAMES 0x02000000
1392 #define SHF_MIPS_NODUPE 0x01000000
1398 #define STO_MIPS_DEFAULT 0x0
1399 #define STO_MIPS_INTERNAL 0x1
1400 #define STO_MIPS_HIDDEN 0x2
1401 #define STO_MIPS_PROTECTED 0x3
1402 #define STO_MIPS_PLT 0x8
1403 #define STO_MIPS_SC_ALIGN_UNUSED 0xff
1406 #define STB_MIPS_SPLIT_COMMON 13
1412 Elf32_Word gt_current_g_value;
1413 Elf32_Word gt_unused;
1416 Elf32_Word gt_g_value;
1417 Elf32_Word gt_bytes;
1424 Elf32_Word ri_gprmask;
1425 Elf32_Word ri_cprmask[4];
1426 Elf32_Sword ri_gp_value;
1435 Elf32_Section section;
1443 #define ODK_REGINFO 1
1444 #define ODK_EXCEPTIONS 2
1446 #define ODK_HWPATCH 4
1454 #define OEX_FPU_MIN 0x1f
1455 #define OEX_FPU_MAX 0x1f00
1456 #define OEX_PAGE0 0x10000
1457 #define OEX_SMM 0x20000
1458 #define OEX_FPDBUG 0x40000
1459 #define OEX_PRECISEFP OEX_FPDBUG
1460 #define OEX_DISMISS 0x80000
1462 #define OEX_FPU_INVAL 0x10
1463 #define OEX_FPU_DIV0 0x08
1464 #define OEX_FPU_OFLO 0x04
1465 #define OEX_FPU_UFLO 0x02
1466 #define OEX_FPU_INEX 0x01
1470 #define OHW_R4KEOP 0x1
1471 #define OHW_R8KPFETCH 0x2
1472 #define OHW_R5KEOP 0x4
1473 #define OHW_R5KCVTL 0x8
1475 #define OPAD_PREFIX 0x1
1476 #define OPAD_POSTFIX 0x2
1477 #define OPAD_SYMBOL 0x4
1482 Elf32_Word hwp_flags1;
1483 Elf32_Word hwp_flags2;
1488 #define OHWA0_R4KEOP_CHECKED 0x00000001
1489 #define OHWA1_R4KEOP_CLEAN 0x00000002
1493 #define R_MIPS_NONE 0
1496 #define R_MIPS_REL32 3
1498 #define R_MIPS_HI16 5
1499 #define R_MIPS_LO16 6
1500 #define R_MIPS_GPREL16 7
1501 #define R_MIPS_LITERAL 8
1502 #define R_MIPS_GOT16 9
1503 #define R_MIPS_PC16 10
1504 #define R_MIPS_CALL16 11
1505 #define R_MIPS_GPREL32 12
1507 #define R_MIPS_SHIFT5 16
1508 #define R_MIPS_SHIFT6 17
1509 #define R_MIPS_64 18
1510 #define R_MIPS_GOT_DISP 19
1511 #define R_MIPS_GOT_PAGE 20
1512 #define R_MIPS_GOT_OFST 21
1513 #define R_MIPS_GOT_HI16 22
1514 #define R_MIPS_GOT_LO16 23
1515 #define R_MIPS_SUB 24
1516 #define R_MIPS_INSERT_A 25
1517 #define R_MIPS_INSERT_B 26
1518 #define R_MIPS_DELETE 27
1519 #define R_MIPS_HIGHER 28
1520 #define R_MIPS_HIGHEST 29
1521 #define R_MIPS_CALL_HI16 30
1522 #define R_MIPS_CALL_LO16 31
1523 #define R_MIPS_SCN_DISP 32
1524 #define R_MIPS_REL16 33
1525 #define R_MIPS_ADD_IMMEDIATE 34
1526 #define R_MIPS_PJUMP 35
1527 #define R_MIPS_RELGOT 36
1528 #define R_MIPS_JALR 37
1529 #define R_MIPS_TLS_DTPMOD32 38
1530 #define R_MIPS_TLS_DTPREL32 39
1531 #define R_MIPS_TLS_DTPMOD64 40
1532 #define R_MIPS_TLS_DTPREL64 41
1533 #define R_MIPS_TLS_GD 42
1534 #define R_MIPS_TLS_LDM 43
1535 #define R_MIPS_TLS_DTPREL_HI16 44
1536 #define R_MIPS_TLS_DTPREL_LO16 45
1537 #define R_MIPS_TLS_GOTTPREL 46
1538 #define R_MIPS_TLS_TPREL32 47
1539 #define R_MIPS_TLS_TPREL64 48
1540 #define R_MIPS_TLS_TPREL_HI16 49
1541 #define R_MIPS_TLS_TPREL_LO16 50
1542 #define R_MIPS_GLOB_DAT 51
1543 #define R_MIPS_COPY 126
1544 #define R_MIPS_JUMP_SLOT 127
1546 #define R_MIPS_NUM 128
1550 #define PT_MIPS_REGINFO 0x70000000
1551 #define PT_MIPS_RTPROC 0x70000001
1552 #define PT_MIPS_OPTIONS 0x70000002
1553 #define PT_MIPS_ABIFLAGS 0x70000003
1557 #define PF_MIPS_LOCAL 0x10000000
1561 #define DT_MIPS_RLD_VERSION 0x70000001
1562 #define DT_MIPS_TIME_STAMP 0x70000002
1563 #define DT_MIPS_ICHECKSUM 0x70000003
1564 #define DT_MIPS_IVERSION 0x70000004
1565 #define DT_MIPS_FLAGS 0x70000005
1566 #define DT_MIPS_BASE_ADDRESS 0x70000006
1567 #define DT_MIPS_MSYM 0x70000007
1568 #define DT_MIPS_CONFLICT 0x70000008
1569 #define DT_MIPS_LIBLIST 0x70000009
1570 #define DT_MIPS_LOCAL_GOTNO 0x7000000a
1571 #define DT_MIPS_CONFLICTNO 0x7000000b
1572 #define DT_MIPS_LIBLISTNO 0x70000010
1573 #define DT_MIPS_SYMTABNO 0x70000011
1574 #define DT_MIPS_UNREFEXTNO 0x70000012
1575 #define DT_MIPS_GOTSYM 0x70000013
1576 #define DT_MIPS_HIPAGENO 0x70000014
1577 #define DT_MIPS_RLD_MAP 0x70000016
1578 #define DT_MIPS_DELTA_CLASS 0x70000017
1579 #define DT_MIPS_DELTA_CLASS_NO 0x70000018
1581 #define DT_MIPS_DELTA_INSTANCE 0x70000019
1582 #define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a
1584 #define DT_MIPS_DELTA_RELOC 0x7000001b
1585 #define DT_MIPS_DELTA_RELOC_NO 0x7000001c
1587 #define DT_MIPS_DELTA_SYM 0x7000001d
1589 #define DT_MIPS_DELTA_SYM_NO 0x7000001e
1591 #define DT_MIPS_DELTA_CLASSSYM 0x70000020
1593 #define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021
1595 #define DT_MIPS_CXX_FLAGS 0x70000022
1596 #define DT_MIPS_PIXIE_INIT 0x70000023
1597 #define DT_MIPS_SYMBOL_LIB 0x70000024
1598 #define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
1599 #define DT_MIPS_LOCAL_GOTIDX 0x70000026
1600 #define DT_MIPS_HIDDEN_GOTIDX 0x70000027
1601 #define DT_MIPS_PROTECTED_GOTIDX 0x70000028
1602 #define DT_MIPS_OPTIONS 0x70000029
1603 #define DT_MIPS_INTERFACE 0x7000002a
1604 #define DT_MIPS_DYNSTR_ALIGN 0x7000002b
1605 #define DT_MIPS_INTERFACE_SIZE 0x7000002c
1606 #define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d
1608 #define DT_MIPS_PERF_SUFFIX 0x7000002e
1610 #define DT_MIPS_COMPACT_SIZE 0x7000002f
1611 #define DT_MIPS_GP_VALUE 0x70000030
1612 #define DT_MIPS_AUX_DYNAMIC 0x70000031
1614 #define DT_MIPS_PLTGOT 0x70000032
1616 #define DT_MIPS_RWPLT 0x70000034
1617 #define DT_MIPS_RLD_MAP_REL 0x70000035
1618 #define DT_MIPS_NUM 0x36
1623 #define RHF_QUICKSTART (1 << 0)
1624 #define RHF_NOTPOT (1 << 1)
1625 #define RHF_NO_LIBRARY_REPLACEMENT (1 << 2)
1626 #define RHF_NO_MOVE (1 << 3)
1627 #define RHF_SGI_ONLY (1 << 4)
1628 #define RHF_GUARANTEE_INIT (1 << 5)
1629 #define RHF_DELTA_C_PLUS_PLUS (1 << 6)
1630 #define RHF_GUARANTEE_START_INIT (1 << 7)
1631 #define RHF_PIXIE (1 << 8)
1632 #define RHF_DEFAULT_DELAY_LOAD (1 << 9)
1633 #define RHF_REQUICKSTART (1 << 10)
1634 #define RHF_REQUICKSTARTED (1 << 11)
1635 #define RHF_CORD (1 << 12)
1636 #define RHF_NO_UNRES_UNDEF (1 << 13)
1637 #define RHF_RLD_ORDER_SAFE (1 << 14)
1643 Elf32_Word l_time_stamp;
1644 Elf32_Word l_checksum;
1645 Elf32_Word l_version;
1651 Elf64_Word l_time_stamp;
1652 Elf64_Word l_checksum;
1653 Elf64_Word l_version;
1661 #define LL_EXACT_MATCH (1 << 0)
1662 #define LL_IGNORE_INT_VER (1 << 1)
1663 #define LL_REQUIRE_MINOR (1 << 2)
1664 #define LL_EXPORTS (1 << 3)
1665 #define LL_DELAY_LOAD (1 << 4)
1666 #define LL_DELTA (1 << 5)
1670 typedef Elf32_Addr Elf32_Conflict;
1674 unsigned char isa_level;
1675 unsigned char isa_rev;
1676 unsigned char gpr_size;
1677 unsigned char cpr1_size;
1678 unsigned char cpr2_size;
1679 unsigned char fp_abi;
1684 } Elf_MIPS_ABIFlags_v0;
1686 #define MIPS_AFL_REG_NONE 0x00
1687 #define MIPS_AFL_REG_32 0x01
1688 #define MIPS_AFL_REG_64 0x02
1689 #define MIPS_AFL_REG_128 0x03
1691 #define MIPS_AFL_ASE_DSP 0x00000001
1692 #define MIPS_AFL_ASE_DSPR2 0x00000002
1693 #define MIPS_AFL_ASE_EVA 0x00000004
1694 #define MIPS_AFL_ASE_MCU 0x00000008
1695 #define MIPS_AFL_ASE_MDMX 0x00000010
1696 #define MIPS_AFL_ASE_MIPS3D 0x00000020
1697 #define MIPS_AFL_ASE_MT 0x00000040
1698 #define MIPS_AFL_ASE_SMARTMIPS 0x00000080
1699 #define MIPS_AFL_ASE_VIRT 0x00000100
1700 #define MIPS_AFL_ASE_MSA 0x00000200
1701 #define MIPS_AFL_ASE_MIPS16 0x00000400
1702 #define MIPS_AFL_ASE_MICROMIPS 0x00000800
1703 #define MIPS_AFL_ASE_XPA 0x00001000
1704 #define MIPS_AFL_ASE_MASK 0x00001fff
1706 #define MIPS_AFL_EXT_XLR 1
1707 #define MIPS_AFL_EXT_OCTEON2 2
1708 #define MIPS_AFL_EXT_OCTEONP 3
1709 #define MIPS_AFL_EXT_LOONGSON_3A 4
1710 #define MIPS_AFL_EXT_OCTEON 5
1711 #define MIPS_AFL_EXT_5900 6
1712 #define MIPS_AFL_EXT_4650 7
1713 #define MIPS_AFL_EXT_4010 8
1714 #define MIPS_AFL_EXT_4100 9
1715 #define MIPS_AFL_EXT_3900 10
1716 #define MIPS_AFL_EXT_10000 11
1717 #define MIPS_AFL_EXT_SB1 12
1718 #define MIPS_AFL_EXT_4111 13
1719 #define MIPS_AFL_EXT_4120 14
1720 #define MIPS_AFL_EXT_5400 15
1721 #define MIPS_AFL_EXT_5500 16
1722 #define MIPS_AFL_EXT_LOONGSON_2E 17
1723 #define MIPS_AFL_EXT_LOONGSON_2F 18
1725 #define MIPS_AFL_FLAGS1_ODDSPREG 1
1729 Val_GNU_MIPS_ABI_FP_ANY = 0,
1730 Val_GNU_MIPS_ABI_FP_DOUBLE = 1,
1731 Val_GNU_MIPS_ABI_FP_SINGLE = 2,
1732 Val_GNU_MIPS_ABI_FP_SOFT = 3,
1733 Val_GNU_MIPS_ABI_FP_OLD_64 = 4,
1734 Val_GNU_MIPS_ABI_FP_XX = 5,
1735 Val_GNU_MIPS_ABI_FP_64 = 6,
1736 Val_GNU_MIPS_ABI_FP_64A = 7,
1737 Val_GNU_MIPS_ABI_FP_MAX = 7
1743 #define EF_PARISC_TRAPNIL 0x00010000
1744 #define EF_PARISC_EXT 0x00020000
1745 #define EF_PARISC_LSB 0x00040000
1746 #define EF_PARISC_WIDE 0x00080000
1747 #define EF_PARISC_NO_KABP 0x00100000
1749 #define EF_PARISC_LAZYSWAP 0x00400000
1750 #define EF_PARISC_ARCH 0x0000ffff
1754 #define EFA_PARISC_1_0 0x020b
1755 #define EFA_PARISC_1_1 0x0210
1756 #define EFA_PARISC_2_0 0x0214
1760 #define SHN_PARISC_ANSI_COMMON 0xff00
1762 #define SHN_PARISC_HUGE_COMMON 0xff01
1766 #define SHT_PARISC_EXT 0x70000000
1767 #define SHT_PARISC_UNWIND 0x70000001
1768 #define SHT_PARISC_DOC 0x70000002
1772 #define SHF_PARISC_SHORT 0x20000000
1773 #define SHF_PARISC_HUGE 0x40000000
1774 #define SHF_PARISC_SBP 0x80000000
1778 #define STT_PARISC_MILLICODE 13
1780 #define STT_HP_OPAQUE (STT_LOOS + 0x1)
1781 #define STT_HP_STUB (STT_LOOS + 0x2)
1785 #define R_PARISC_NONE 0
1786 #define R_PARISC_DIR32 1
1787 #define R_PARISC_DIR21L 2
1788 #define R_PARISC_DIR17R 3
1789 #define R_PARISC_DIR17F 4
1790 #define R_PARISC_DIR14R 6
1791 #define R_PARISC_PCREL32 9
1792 #define R_PARISC_PCREL21L 10
1793 #define R_PARISC_PCREL17R 11
1794 #define R_PARISC_PCREL17F 12
1795 #define R_PARISC_PCREL14R 14
1796 #define R_PARISC_DPREL21L 18
1797 #define R_PARISC_DPREL14R 22
1798 #define R_PARISC_GPREL21L 26
1799 #define R_PARISC_GPREL14R 30
1800 #define R_PARISC_LTOFF21L 34
1801 #define R_PARISC_LTOFF14R 38
1802 #define R_PARISC_SECREL32 41
1803 #define R_PARISC_SEGBASE 48
1804 #define R_PARISC_SEGREL32 49
1805 #define R_PARISC_PLTOFF21L 50
1806 #define R_PARISC_PLTOFF14R 54
1807 #define R_PARISC_LTOFF_FPTR32 57
1808 #define R_PARISC_LTOFF_FPTR21L 58
1809 #define R_PARISC_LTOFF_FPTR14R 62
1810 #define R_PARISC_FPTR64 64
1811 #define R_PARISC_PLABEL32 65
1812 #define R_PARISC_PLABEL21L 66
1813 #define R_PARISC_PLABEL14R 70
1814 #define R_PARISC_PCREL64 72
1815 #define R_PARISC_PCREL22F 74
1816 #define R_PARISC_PCREL14WR 75
1817 #define R_PARISC_PCREL14DR 76
1818 #define R_PARISC_PCREL16F 77
1819 #define R_PARISC_PCREL16WF 78
1820 #define R_PARISC_PCREL16DF 79
1821 #define R_PARISC_DIR64 80
1822 #define R_PARISC_DIR14WR 83
1823 #define R_PARISC_DIR14DR 84
1824 #define R_PARISC_DIR16F 85
1825 #define R_PARISC_DIR16WF 86
1826 #define R_PARISC_DIR16DF 87
1827 #define R_PARISC_GPREL64 88
1828 #define R_PARISC_GPREL14WR 91
1829 #define R_PARISC_GPREL14DR 92
1830 #define R_PARISC_GPREL16F 93
1831 #define R_PARISC_GPREL16WF 94
1832 #define R_PARISC_GPREL16DF 95
1833 #define R_PARISC_LTOFF64 96
1834 #define R_PARISC_LTOFF14WR 99
1835 #define R_PARISC_LTOFF14DR 100
1836 #define R_PARISC_LTOFF16F 101
1837 #define R_PARISC_LTOFF16WF 102
1838 #define R_PARISC_LTOFF16DF 103
1839 #define R_PARISC_SECREL64 104
1840 #define R_PARISC_SEGREL64 112
1841 #define R_PARISC_PLTOFF14WR 115
1842 #define R_PARISC_PLTOFF14DR 116
1843 #define R_PARISC_PLTOFF16F 117
1844 #define R_PARISC_PLTOFF16WF 118
1845 #define R_PARISC_PLTOFF16DF 119
1846 #define R_PARISC_LTOFF_FPTR64 120
1847 #define R_PARISC_LTOFF_FPTR14WR 123
1848 #define R_PARISC_LTOFF_FPTR14DR 124
1849 #define R_PARISC_LTOFF_FPTR16F 125
1850 #define R_PARISC_LTOFF_FPTR16WF 126
1851 #define R_PARISC_LTOFF_FPTR16DF 127
1852 #define R_PARISC_LORESERVE 128
1853 #define R_PARISC_COPY 128
1854 #define R_PARISC_IPLT 129
1855 #define R_PARISC_EPLT 130
1856 #define R_PARISC_TPREL32 153
1857 #define R_PARISC_TPREL21L 154
1858 #define R_PARISC_TPREL14R 158
1859 #define R_PARISC_LTOFF_TP21L 162
1860 #define R_PARISC_LTOFF_TP14R 166
1861 #define R_PARISC_LTOFF_TP14F 167
1862 #define R_PARISC_TPREL64 216
1863 #define R_PARISC_TPREL14WR 219
1864 #define R_PARISC_TPREL14DR 220
1865 #define R_PARISC_TPREL16F 221
1866 #define R_PARISC_TPREL16WF 222
1867 #define R_PARISC_TPREL16DF 223
1868 #define R_PARISC_LTOFF_TP64 224
1869 #define R_PARISC_LTOFF_TP14WR 227
1870 #define R_PARISC_LTOFF_TP14DR 228
1871 #define R_PARISC_LTOFF_TP16F 229
1872 #define R_PARISC_LTOFF_TP16WF 230
1873 #define R_PARISC_LTOFF_TP16DF 231
1874 #define R_PARISC_GNU_VTENTRY 232
1875 #define R_PARISC_GNU_VTINHERIT 233
1876 #define R_PARISC_TLS_GD21L 234
1877 #define R_PARISC_TLS_GD14R 235
1878 #define R_PARISC_TLS_GDCALL 236
1879 #define R_PARISC_TLS_LDM21L 237
1880 #define R_PARISC_TLS_LDM14R 238
1881 #define R_PARISC_TLS_LDMCALL 239
1882 #define R_PARISC_TLS_LDO21L 240
1883 #define R_PARISC_TLS_LDO14R 241
1884 #define R_PARISC_TLS_DTPMOD32 242
1885 #define R_PARISC_TLS_DTPMOD64 243
1886 #define R_PARISC_TLS_DTPOFF32 244
1887 #define R_PARISC_TLS_DTPOFF64 245
1888 #define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
1889 #define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
1890 #define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
1891 #define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
1892 #define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
1893 #define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
1894 #define R_PARISC_HIRESERVE 255
1898 #define PT_HP_TLS (PT_LOOS + 0x0)
1899 #define PT_HP_CORE_NONE (PT_LOOS + 0x1)
1900 #define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
1901 #define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
1902 #define PT_HP_CORE_COMM (PT_LOOS + 0x4)
1903 #define PT_HP_CORE_PROC (PT_LOOS + 0x5)
1904 #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
1905 #define PT_HP_CORE_STACK (PT_LOOS + 0x7)
1906 #define PT_HP_CORE_SHM (PT_LOOS + 0x8)
1907 #define PT_HP_CORE_MMF (PT_LOOS + 0x9)
1908 #define PT_HP_PARALLEL (PT_LOOS + 0x10)
1909 #define PT_HP_FASTBIND (PT_LOOS + 0x11)
1910 #define PT_HP_OPT_ANNOT (PT_LOOS + 0x12)
1911 #define PT_HP_HSL_ANNOT (PT_LOOS + 0x13)
1912 #define PT_HP_STACK (PT_LOOS + 0x14)
1914 #define PT_PARISC_ARCHEXT 0x70000000
1915 #define PT_PARISC_UNWIND 0x70000001
1919 #define PF_PARISC_SBP 0x08000000
1921 #define PF_HP_PAGE_SIZE 0x00100000
1922 #define PF_HP_FAR_SHARED 0x00200000
1923 #define PF_HP_NEAR_SHARED 0x00400000
1924 #define PF_HP_CODE 0x01000000
1925 #define PF_HP_MODIFY 0x02000000
1926 #define PF_HP_LAZYSWAP 0x04000000
1927 #define PF_HP_SBP 0x08000000
1934 #define EF_ALPHA_32BIT 1
1935 #define EF_ALPHA_CANRELAX 2
1940 #define SHT_ALPHA_DEBUG 0x70000001
1941 #define SHT_ALPHA_REGINFO 0x70000002
1945 #define SHF_ALPHA_GPREL 0x10000000
1948 #define STO_ALPHA_NOPV 0x80
1949 #define STO_ALPHA_STD_GPLOAD 0x88
1953 #define R_ALPHA_NONE 0
1954 #define R_ALPHA_REFLONG 1
1955 #define R_ALPHA_REFQUAD 2
1956 #define R_ALPHA_GPREL32 3
1957 #define R_ALPHA_LITERAL 4
1958 #define R_ALPHA_LITUSE 5
1959 #define R_ALPHA_GPDISP 6
1960 #define R_ALPHA_BRADDR 7
1961 #define R_ALPHA_HINT 8
1962 #define R_ALPHA_SREL16 9
1963 #define R_ALPHA_SREL32 10
1964 #define R_ALPHA_SREL64 11
1965 #define R_ALPHA_GPRELHIGH 17
1966 #define R_ALPHA_GPRELLOW 18
1967 #define R_ALPHA_GPREL16 19
1968 #define R_ALPHA_COPY 24
1969 #define R_ALPHA_GLOB_DAT 25
1970 #define R_ALPHA_JMP_SLOT 26
1971 #define R_ALPHA_RELATIVE 27
1972 #define R_ALPHA_TLS_GD_HI 28
1973 #define R_ALPHA_TLSGD 29
1974 #define R_ALPHA_TLS_LDM 30
1975 #define R_ALPHA_DTPMOD64 31
1976 #define R_ALPHA_GOTDTPREL 32
1977 #define R_ALPHA_DTPREL64 33
1978 #define R_ALPHA_DTPRELHI 34
1979 #define R_ALPHA_DTPRELLO 35
1980 #define R_ALPHA_DTPREL16 36
1981 #define R_ALPHA_GOTTPREL 37
1982 #define R_ALPHA_TPREL64 38
1983 #define R_ALPHA_TPRELHI 39
1984 #define R_ALPHA_TPRELLO 40
1985 #define R_ALPHA_TPREL16 41
1987 #define R_ALPHA_NUM 46
1990 #define LITUSE_ALPHA_ADDR 0
1991 #define LITUSE_ALPHA_BASE 1
1992 #define LITUSE_ALPHA_BYTOFF 2
1993 #define LITUSE_ALPHA_JSR 3
1994 #define LITUSE_ALPHA_TLS_GD 4
1995 #define LITUSE_ALPHA_TLS_LDM 5
1998 #define DT_ALPHA_PLTRO (DT_LOPROC + 0)
1999 #define DT_ALPHA_NUM 1
2004 #define EF_PPC_EMB 0x80000000
2007 #define EF_PPC_RELOCATABLE 0x00010000
2008 #define EF_PPC_RELOCATABLE_LIB 0x00008000
2012 #define R_PPC_NONE 0
2013 #define R_PPC_ADDR32 1
2014 #define R_PPC_ADDR24 2
2015 #define R_PPC_ADDR16 3
2016 #define R_PPC_ADDR16_LO 4
2017 #define R_PPC_ADDR16_HI 5
2018 #define R_PPC_ADDR16_HA 6
2019 #define R_PPC_ADDR14 7
2020 #define R_PPC_ADDR14_BRTAKEN 8
2021 #define R_PPC_ADDR14_BRNTAKEN 9
2022 #define R_PPC_REL24 10
2023 #define R_PPC_REL14 11
2024 #define R_PPC_REL14_BRTAKEN 12
2025 #define R_PPC_REL14_BRNTAKEN 13
2026 #define R_PPC_GOT16 14
2027 #define R_PPC_GOT16_LO 15
2028 #define R_PPC_GOT16_HI 16
2029 #define R_PPC_GOT16_HA 17
2030 #define R_PPC_PLTREL24 18
2031 #define R_PPC_COPY 19
2032 #define R_PPC_GLOB_DAT 20
2033 #define R_PPC_JMP_SLOT 21
2034 #define R_PPC_RELATIVE 22
2035 #define R_PPC_LOCAL24PC 23
2036 #define R_PPC_UADDR32 24
2037 #define R_PPC_UADDR16 25
2038 #define R_PPC_REL32 26
2039 #define R_PPC_PLT32 27
2040 #define R_PPC_PLTREL32 28
2041 #define R_PPC_PLT16_LO 29
2042 #define R_PPC_PLT16_HI 30
2043 #define R_PPC_PLT16_HA 31
2044 #define R_PPC_SDAREL16 32
2045 #define R_PPC_SECTOFF 33
2046 #define R_PPC_SECTOFF_LO 34
2047 #define R_PPC_SECTOFF_HI 35
2048 #define R_PPC_SECTOFF_HA 36
2051 #define R_PPC_TLS 67
2052 #define R_PPC_DTPMOD32 68
2053 #define R_PPC_TPREL16 69
2054 #define R_PPC_TPREL16_LO 70
2055 #define R_PPC_TPREL16_HI 71
2056 #define R_PPC_TPREL16_HA 72
2057 #define R_PPC_TPREL32 73
2058 #define R_PPC_DTPREL16 74
2059 #define R_PPC_DTPREL16_LO 75
2060 #define R_PPC_DTPREL16_HI 76
2061 #define R_PPC_DTPREL16_HA 77
2062 #define R_PPC_DTPREL32 78
2063 #define R_PPC_GOT_TLSGD16 79
2064 #define R_PPC_GOT_TLSGD16_LO 80
2065 #define R_PPC_GOT_TLSGD16_HI 81
2066 #define R_PPC_GOT_TLSGD16_HA 82
2067 #define R_PPC_GOT_TLSLD16 83
2068 #define R_PPC_GOT_TLSLD16_LO 84
2069 #define R_PPC_GOT_TLSLD16_HI 85
2070 #define R_PPC_GOT_TLSLD16_HA 86
2071 #define R_PPC_GOT_TPREL16 87
2072 #define R_PPC_GOT_TPREL16_LO 88
2073 #define R_PPC_GOT_TPREL16_HI 89
2074 #define R_PPC_GOT_TPREL16_HA 90
2075 #define R_PPC_GOT_DTPREL16 91
2076 #define R_PPC_GOT_DTPREL16_LO 92
2077 #define R_PPC_GOT_DTPREL16_HI 93
2078 #define R_PPC_GOT_DTPREL16_HA 94
2079 #define R_PPC_TLSGD 95
2080 #define R_PPC_TLSLD 96
2083 #define R_PPC_EMB_NADDR32 101
2084 #define R_PPC_EMB_NADDR16 102
2085 #define R_PPC_EMB_NADDR16_LO 103
2086 #define R_PPC_EMB_NADDR16_HI 104
2087 #define R_PPC_EMB_NADDR16_HA 105
2088 #define R_PPC_EMB_SDAI16 106
2089 #define R_PPC_EMB_SDA2I16 107
2090 #define R_PPC_EMB_SDA2REL 108
2091 #define R_PPC_EMB_SDA21 109
2092 #define R_PPC_EMB_MRKREF 110
2093 #define R_PPC_EMB_RELSEC16 111
2094 #define R_PPC_EMB_RELST_LO 112
2095 #define R_PPC_EMB_RELST_HI 113
2096 #define R_PPC_EMB_RELST_HA 114
2097 #define R_PPC_EMB_BIT_FLD 115
2098 #define R_PPC_EMB_RELSDA 116
2101 #define R_PPC_DIAB_SDA21_LO 180
2102 #define R_PPC_DIAB_SDA21_HI 181
2103 #define R_PPC_DIAB_SDA21_HA 182
2104 #define R_PPC_DIAB_RELSDA_LO 183
2105 #define R_PPC_DIAB_RELSDA_HI 184
2106 #define R_PPC_DIAB_RELSDA_HA 185
2109 #define R_PPC_IRELATIVE 248
2112 #define R_PPC_REL16 249
2113 #define R_PPC_REL16_LO 250
2114 #define R_PPC_REL16_HI 251
2115 #define R_PPC_REL16_HA 252
2119 #define R_PPC_TOC16 255
2122 #define DT_PPC_GOT (DT_LOPROC + 0)
2123 #define DT_PPC_OPT (DT_LOPROC + 1)
2124 #define DT_PPC_NUM 2
2126 #define PPC_OPT_TLS 1
2129 #define R_PPC64_NONE R_PPC_NONE
2130 #define R_PPC64_ADDR32 R_PPC_ADDR32
2131 #define R_PPC64_ADDR24 R_PPC_ADDR24
2132 #define R_PPC64_ADDR16 R_PPC_ADDR16
2133 #define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO
2134 #define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI
2135 #define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA
2136 #define R_PPC64_ADDR14 R_PPC_ADDR14
2137 #define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN
2138 #define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN
2139 #define R_PPC64_REL24 R_PPC_REL24
2140 #define R_PPC64_REL14 R_PPC_REL14
2141 #define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN
2142 #define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN
2143 #define R_PPC64_GOT16 R_PPC_GOT16
2144 #define R_PPC64_GOT16_LO R_PPC_GOT16_LO
2145 #define R_PPC64_GOT16_HI R_PPC_GOT16_HI
2146 #define R_PPC64_GOT16_HA R_PPC_GOT16_HA
2148 #define R_PPC64_COPY R_PPC_COPY
2149 #define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT
2150 #define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT
2151 #define R_PPC64_RELATIVE R_PPC_RELATIVE
2153 #define R_PPC64_UADDR32 R_PPC_UADDR32
2154 #define R_PPC64_UADDR16 R_PPC_UADDR16
2155 #define R_PPC64_REL32 R_PPC_REL32
2156 #define R_PPC64_PLT32 R_PPC_PLT32
2157 #define R_PPC64_PLTREL32 R_PPC_PLTREL32
2158 #define R_PPC64_PLT16_LO R_PPC_PLT16_LO
2159 #define R_PPC64_PLT16_HI R_PPC_PLT16_HI
2160 #define R_PPC64_PLT16_HA R_PPC_PLT16_HA
2162 #define R_PPC64_SECTOFF R_PPC_SECTOFF
2163 #define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO
2164 #define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI
2165 #define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA
2166 #define R_PPC64_ADDR30 37
2167 #define R_PPC64_ADDR64 38
2168 #define R_PPC64_ADDR16_HIGHER 39
2169 #define R_PPC64_ADDR16_HIGHERA 40
2170 #define R_PPC64_ADDR16_HIGHEST 41
2171 #define R_PPC64_ADDR16_HIGHESTA 42
2172 #define R_PPC64_UADDR64 43
2173 #define R_PPC64_REL64 44
2174 #define R_PPC64_PLT64 45
2175 #define R_PPC64_PLTREL64 46
2176 #define R_PPC64_TOC16 47
2177 #define R_PPC64_TOC16_LO 48
2178 #define R_PPC64_TOC16_HI 49
2179 #define R_PPC64_TOC16_HA 50
2180 #define R_PPC64_TOC 51
2181 #define R_PPC64_PLTGOT16 52
2182 #define R_PPC64_PLTGOT16_LO 53
2183 #define R_PPC64_PLTGOT16_HI 54
2184 #define R_PPC64_PLTGOT16_HA 55
2186 #define R_PPC64_ADDR16_DS 56
2187 #define R_PPC64_ADDR16_LO_DS 57
2188 #define R_PPC64_GOT16_DS 58
2189 #define R_PPC64_GOT16_LO_DS 59
2190 #define R_PPC64_PLT16_LO_DS 60
2191 #define R_PPC64_SECTOFF_DS 61
2192 #define R_PPC64_SECTOFF_LO_DS 62
2193 #define R_PPC64_TOC16_DS 63
2194 #define R_PPC64_TOC16_LO_DS 64
2195 #define R_PPC64_PLTGOT16_DS 65
2196 #define R_PPC64_PLTGOT16_LO_DS 66
2199 #define R_PPC64_TLS 67
2200 #define R_PPC64_DTPMOD64 68
2201 #define R_PPC64_TPREL16 69
2202 #define R_PPC64_TPREL16_LO 70
2203 #define R_PPC64_TPREL16_HI 71
2204 #define R_PPC64_TPREL16_HA 72
2205 #define R_PPC64_TPREL64 73
2206 #define R_PPC64_DTPREL16 74
2207 #define R_PPC64_DTPREL16_LO 75
2208 #define R_PPC64_DTPREL16_HI 76
2209 #define R_PPC64_DTPREL16_HA 77
2210 #define R_PPC64_DTPREL64 78
2211 #define R_PPC64_GOT_TLSGD16 79
2212 #define R_PPC64_GOT_TLSGD16_LO 80
2213 #define R_PPC64_GOT_TLSGD16_HI 81
2214 #define R_PPC64_GOT_TLSGD16_HA 82
2215 #define R_PPC64_GOT_TLSLD16 83
2216 #define R_PPC64_GOT_TLSLD16_LO 84
2217 #define R_PPC64_GOT_TLSLD16_HI 85
2218 #define R_PPC64_GOT_TLSLD16_HA 86
2219 #define R_PPC64_GOT_TPREL16_DS 87
2220 #define R_PPC64_GOT_TPREL16_LO_DS 88
2221 #define R_PPC64_GOT_TPREL16_HI 89
2222 #define R_PPC64_GOT_TPREL16_HA 90
2223 #define R_PPC64_GOT_DTPREL16_DS 91
2224 #define R_PPC64_GOT_DTPREL16_LO_DS 92
2225 #define R_PPC64_GOT_DTPREL16_HI 93
2226 #define R_PPC64_GOT_DTPREL16_HA 94
2227 #define R_PPC64_TPREL16_DS 95
2228 #define R_PPC64_TPREL16_LO_DS 96
2229 #define R_PPC64_TPREL16_HIGHER 97
2230 #define R_PPC64_TPREL16_HIGHERA 98
2231 #define R_PPC64_TPREL16_HIGHEST 99
2232 #define R_PPC64_TPREL16_HIGHESTA 100
2233 #define R_PPC64_DTPREL16_DS 101
2234 #define R_PPC64_DTPREL16_LO_DS 102
2235 #define R_PPC64_DTPREL16_HIGHER 103
2236 #define R_PPC64_DTPREL16_HIGHERA 104
2237 #define R_PPC64_DTPREL16_HIGHEST 105
2238 #define R_PPC64_DTPREL16_HIGHESTA 106
2239 #define R_PPC64_TLSGD 107
2240 #define R_PPC64_TLSLD 108
2241 #define R_PPC64_TOCSAVE 109
2242 #define R_PPC64_ADDR16_HIGH 110
2243 #define R_PPC64_ADDR16_HIGHA 111
2244 #define R_PPC64_TPREL16_HIGH 112
2245 #define R_PPC64_TPREL16_HIGHA 113
2246 #define R_PPC64_DTPREL16_HIGH 114
2247 #define R_PPC64_DTPREL16_HIGHA 115
2250 #define R_PPC64_JMP_IREL 247
2251 #define R_PPC64_IRELATIVE 248
2252 #define R_PPC64_REL16 249
2253 #define R_PPC64_REL16_LO 250
2254 #define R_PPC64_REL16_HI 251
2255 #define R_PPC64_REL16_HA 252
2257 #define EF_PPC64_ABI 3
2259 #define DT_PPC64_GLINK (DT_LOPROC + 0)
2260 #define DT_PPC64_OPD (DT_LOPROC + 1)
2261 #define DT_PPC64_OPDSZ (DT_LOPROC + 2)
2262 #define DT_PPC64_OPT (DT_LOPROC + 3)
2263 #define DT_PPC64_NUM 4
2265 #define PPC64_OPT_TLS 1
2266 #define PPC64_OPT_MULTI_TOC 2
2267 #define PPC64_OPT_LOCALENTRY 4
2269 #define STO_PPC64_LOCAL_BIT 5
2270 #define STO_PPC64_LOCAL_MASK 0xe0
2271 #define PPC64_LOCAL_ENTRY_OFFSET(x) (1 << (((x)&0xe0)>>5) & 0xfc)
2274 #define EF_ARM_RELEXEC 0x01
2275 #define EF_ARM_HASENTRY 0x02
2276 #define EF_ARM_INTERWORK 0x04
2277 #define EF_ARM_APCS_26 0x08
2278 #define EF_ARM_APCS_FLOAT 0x10
2279 #define EF_ARM_PIC 0x20
2280 #define EF_ARM_ALIGN8 0x40
2281 #define EF_ARM_NEW_ABI 0x80
2282 #define EF_ARM_OLD_ABI 0x100
2283 #define EF_ARM_SOFT_FLOAT 0x200
2284 #define EF_ARM_VFP_FLOAT 0x400
2285 #define EF_ARM_MAVERICK_FLOAT 0x800
2287 #define EF_ARM_ABI_FLOAT_SOFT 0x200
2288 #define EF_ARM_ABI_FLOAT_HARD 0x400
2291 #define EF_ARM_SYMSARESORTED 0x04
2292 #define EF_ARM_DYNSYMSUSESEGIDX 0x08
2293 #define EF_ARM_MAPSYMSFIRST 0x10
2294 #define EF_ARM_EABIMASK 0XFF000000
2297 #define EF_ARM_BE8 0x00800000
2298 #define EF_ARM_LE8 0x00400000
2300 #define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK)
2301 #define EF_ARM_EABI_UNKNOWN 0x00000000
2302 #define EF_ARM_EABI_VER1 0x01000000
2303 #define EF_ARM_EABI_VER2 0x02000000
2304 #define EF_ARM_EABI_VER3 0x03000000
2305 #define EF_ARM_EABI_VER4 0x04000000
2306 #define EF_ARM_EABI_VER5 0x05000000
2309 #define STT_ARM_TFUNC STT_LOPROC
2310 #define STT_ARM_16BIT STT_HIPROC
2313 #define SHF_ARM_ENTRYSECT 0x10000000
2314 #define SHF_ARM_COMDEF 0x80000000
2318 #define PF_ARM_SB 0x10000000
2320 #define PF_ARM_PI 0x20000000
2321 #define PF_ARM_ABS 0x40000000
2324 #define PT_ARM_EXIDX (PT_LOPROC + 1)
2327 #define SHT_ARM_EXIDX (SHT_LOPROC + 1)
2328 #define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2)
2329 #define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3)
2331 #define R_AARCH64_NONE 0
2332 #define R_AARCH64_P32_ABS32 1
2333 #define R_AARCH64_P32_COPY 180
2334 #define R_AARCH64_P32_GLOB_DAT 181
2335 #define R_AARCH64_P32_JUMP_SLOT 182
2336 #define R_AARCH64_P32_RELATIVE 183
2337 #define R_AARCH64_P32_TLS_DTPMOD 184
2338 #define R_AARCH64_P32_TLS_DTPREL 185
2339 #define R_AARCH64_P32_TLS_TPREL 186
2340 #define R_AARCH64_P32_TLSDESC 187
2341 #define R_AARCH64_P32_IRELATIVE 188
2342 #define R_AARCH64_ABS64 257
2343 #define R_AARCH64_ABS32 258
2344 #define R_AARCH64_ABS16 259
2345 #define R_AARCH64_PREL64 260
2346 #define R_AARCH64_PREL32 261
2347 #define R_AARCH64_PREL16 262
2348 #define R_AARCH64_MOVW_UABS_G0 263
2349 #define R_AARCH64_MOVW_UABS_G0_NC 264
2350 #define R_AARCH64_MOVW_UABS_G1 265
2351 #define R_AARCH64_MOVW_UABS_G1_NC 266
2352 #define R_AARCH64_MOVW_UABS_G2 267
2353 #define R_AARCH64_MOVW_UABS_G2_NC 268
2354 #define R_AARCH64_MOVW_UABS_G3 269
2355 #define R_AARCH64_MOVW_SABS_G0 270
2356 #define R_AARCH64_MOVW_SABS_G1 271
2357 #define R_AARCH64_MOVW_SABS_G2 272
2358 #define R_AARCH64_LD_PREL_LO19 273
2359 #define R_AARCH64_ADR_PREL_LO21 274
2360 #define R_AARCH64_ADR_PREL_PG_HI21 275
2361 #define R_AARCH64_ADR_PREL_PG_HI21_NC 276
2362 #define R_AARCH64_ADD_ABS_LO12_NC 277
2363 #define R_AARCH64_LDST8_ABS_LO12_NC 278
2364 #define R_AARCH64_TSTBR14 279
2365 #define R_AARCH64_CONDBR19 280
2366 #define R_AARCH64_JUMP26 282
2367 #define R_AARCH64_CALL26 283
2368 #define R_AARCH64_LDST16_ABS_LO12_NC 284
2369 #define R_AARCH64_LDST32_ABS_LO12_NC 285
2370 #define R_AARCH64_LDST64_ABS_LO12_NC 286
2371 #define R_AARCH64_MOVW_PREL_G0 287
2372 #define R_AARCH64_MOVW_PREL_G0_NC 288
2373 #define R_AARCH64_MOVW_PREL_G1 289
2374 #define R_AARCH64_MOVW_PREL_G1_NC 290
2375 #define R_AARCH64_MOVW_PREL_G2 291
2376 #define R_AARCH64_MOVW_PREL_G2_NC 292
2377 #define R_AARCH64_MOVW_PREL_G3 293
2378 #define R_AARCH64_LDST128_ABS_LO12_NC 299
2379 #define R_AARCH64_MOVW_GOTOFF_G0 300
2380 #define R_AARCH64_MOVW_GOTOFF_G0_NC 301
2381 #define R_AARCH64_MOVW_GOTOFF_G1 302
2382 #define R_AARCH64_MOVW_GOTOFF_G1_NC 303
2383 #define R_AARCH64_MOVW_GOTOFF_G2 304
2384 #define R_AARCH64_MOVW_GOTOFF_G2_NC 305
2385 #define R_AARCH64_MOVW_GOTOFF_G3 306
2386 #define R_AARCH64_GOTREL64 307
2387 #define R_AARCH64_GOTREL32 308
2388 #define R_AARCH64_GOT_LD_PREL19 309
2389 #define R_AARCH64_LD64_GOTOFF_LO15 310
2390 #define R_AARCH64_ADR_GOT_PAGE 311
2391 #define R_AARCH64_LD64_GOT_LO12_NC 312
2392 #define R_AARCH64_LD64_GOTPAGE_LO15 313
2393 #define R_AARCH64_TLSGD_ADR_PREL21 512
2394 #define R_AARCH64_TLSGD_ADR_PAGE21 513
2395 #define R_AARCH64_TLSGD_ADD_LO12_NC 514
2396 #define R_AARCH64_TLSGD_MOVW_G1 515
2397 #define R_AARCH64_TLSGD_MOVW_G0_NC 516
2398 #define R_AARCH64_TLSLD_ADR_PREL21 517
2399 #define R_AARCH64_TLSLD_ADR_PAGE21 518
2400 #define R_AARCH64_TLSLD_ADD_LO12_NC 519
2401 #define R_AARCH64_TLSLD_MOVW_G1 520
2402 #define R_AARCH64_TLSLD_MOVW_G0_NC 521
2403 #define R_AARCH64_TLSLD_LD_PREL19 522
2404 #define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523
2405 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524
2406 #define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525
2407 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526
2408 #define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527
2409 #define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528
2410 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529
2411 #define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530
2412 #define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531
2413 #define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532
2414 #define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533
2415 #define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534
2416 #define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535
2417 #define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536
2418 #define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537
2419 #define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538
2420 #define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539
2421 #define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540
2422 #define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541
2423 #define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542
2424 #define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543
2425 #define R_AARCH64_TLSLE_MOVW_TPREL_G2 544
2426 #define R_AARCH64_TLSLE_MOVW_TPREL_G1 545
2427 #define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546
2428 #define R_AARCH64_TLSLE_MOVW_TPREL_G0 547
2429 #define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548
2430 #define R_AARCH64_TLSLE_ADD_TPREL_HI12 549
2431 #define R_AARCH64_TLSLE_ADD_TPREL_LO12 550
2432 #define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551
2433 #define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552
2434 #define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553
2435 #define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554
2436 #define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555
2437 #define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556
2438 #define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557
2439 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558
2440 #define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559
2441 #define R_AARCH64_TLSDESC_LD_PREL19 560
2442 #define R_AARCH64_TLSDESC_ADR_PREL21 561
2443 #define R_AARCH64_TLSDESC_ADR_PAGE21 562
2444 #define R_AARCH64_TLSDESC_LD64_LO12 563
2445 #define R_AARCH64_TLSDESC_ADD_LO12 564
2446 #define R_AARCH64_TLSDESC_OFF_G1 565
2447 #define R_AARCH64_TLSDESC_OFF_G0_NC 566
2448 #define R_AARCH64_TLSDESC_LDR 567
2449 #define R_AARCH64_TLSDESC_ADD 568
2450 #define R_AARCH64_TLSDESC_CALL 569
2451 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570
2452 #define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571
2453 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572
2454 #define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573
2455 #define R_AARCH64_COPY 1024
2456 #define R_AARCH64_GLOB_DAT 1025
2457 #define R_AARCH64_JUMP_SLOT 1026
2458 #define R_AARCH64_RELATIVE 1027
2459 #define R_AARCH64_TLS_DTPMOD 1028
2460 #define R_AARCH64_TLS_DTPMOD64 1028
2461 #define R_AARCH64_TLS_DTPREL 1029
2462 #define R_AARCH64_TLS_DTPREL64 1029
2463 #define R_AARCH64_TLS_TPREL 1030
2464 #define R_AARCH64_TLS_TPREL64 1030
2465 #define R_AARCH64_TLSDESC 1031
2468 #define R_ARM_NONE 0
2469 #define R_ARM_PC24 1
2470 #define R_ARM_ABS32 2
2471 #define R_ARM_REL32 3
2472 #define R_ARM_PC13 4
2473 #define R_ARM_ABS16 5
2474 #define R_ARM_ABS12 6
2475 #define R_ARM_THM_ABS5 7
2476 #define R_ARM_ABS8 8
2477 #define R_ARM_SBREL32 9
2478 #define R_ARM_THM_PC22 10
2479 #define R_ARM_THM_PC8 11
2480 #define R_ARM_AMP_VCALL9 12
2481 #define R_ARM_TLS_DESC 13
2482 #define R_ARM_THM_SWI8 14
2483 #define R_ARM_XPC25 15
2484 #define R_ARM_THM_XPC22 16
2485 #define R_ARM_TLS_DTPMOD32 17
2486 #define R_ARM_TLS_DTPOFF32 18
2487 #define R_ARM_TLS_TPOFF32 19
2488 #define R_ARM_COPY 20
2489 #define R_ARM_GLOB_DAT 21
2490 #define R_ARM_JUMP_SLOT 22
2491 #define R_ARM_RELATIVE 23
2492 #define R_ARM_GOTOFF 24
2493 #define R_ARM_GOTPC 25
2494 #define R_ARM_GOT32 26
2495 #define R_ARM_PLT32 27
2496 #define R_ARM_CALL 28
2497 #define R_ARM_JUMP24 29
2498 #define R_ARM_THM_JUMP24 30
2499 #define R_ARM_BASE_ABS 31
2500 #define R_ARM_ALU_PCREL_7_0 32
2501 #define R_ARM_ALU_PCREL_15_8 33
2502 #define R_ARM_ALU_PCREL_23_15 34
2503 #define R_ARM_LDR_SBREL_11_0 35
2504 #define R_ARM_ALU_SBREL_19_12 36
2505 #define R_ARM_ALU_SBREL_27_20 37
2506 #define R_ARM_TARGET1 38
2507 #define R_ARM_SBREL31 39
2508 #define R_ARM_V4BX 40
2509 #define R_ARM_TARGET2 41
2510 #define R_ARM_PREL31 42
2511 #define R_ARM_MOVW_ABS_NC 43
2512 #define R_ARM_MOVT_ABS 44
2513 #define R_ARM_MOVW_PREL_NC 45
2514 #define R_ARM_MOVT_PREL 46
2515 #define R_ARM_THM_MOVW_ABS_NC 47
2516 #define R_ARM_THM_MOVT_ABS 48
2517 #define R_ARM_THM_MOVW_PREL_NC 49
2518 #define R_ARM_THM_MOVT_PREL 50
2519 #define R_ARM_THM_JUMP19 51
2520 #define R_ARM_THM_JUMP6 52
2521 #define R_ARM_THM_ALU_PREL_11_0 53
2522 #define R_ARM_THM_PC12 54
2523 #define R_ARM_ABS32_NOI 55
2524 #define R_ARM_REL32_NOI 56
2525 #define R_ARM_ALU_PC_G0_NC 57
2526 #define R_ARM_ALU_PC_G0 58
2527 #define R_ARM_ALU_PC_G1_NC 59
2528 #define R_ARM_ALU_PC_G1 60
2529 #define R_ARM_ALU_PC_G2 61
2530 #define R_ARM_LDR_PC_G1 62
2531 #define R_ARM_LDR_PC_G2 63
2532 #define R_ARM_LDRS_PC_G0 64
2533 #define R_ARM_LDRS_PC_G1 65
2534 #define R_ARM_LDRS_PC_G2 66
2535 #define R_ARM_LDC_PC_G0 67
2536 #define R_ARM_LDC_PC_G1 68
2537 #define R_ARM_LDC_PC_G2 69
2538 #define R_ARM_ALU_SB_G0_NC 70
2539 #define R_ARM_ALU_SB_G0 71
2540 #define R_ARM_ALU_SB_G1_NC 72
2541 #define R_ARM_ALU_SB_G1 73
2542 #define R_ARM_ALU_SB_G2 74
2543 #define R_ARM_LDR_SB_G0 75
2544 #define R_ARM_LDR_SB_G1 76
2545 #define R_ARM_LDR_SB_G2 77
2546 #define R_ARM_LDRS_SB_G0 78
2547 #define R_ARM_LDRS_SB_G1 79
2548 #define R_ARM_LDRS_SB_G2 80
2549 #define R_ARM_LDC_SB_G0 81
2550 #define R_ARM_LDC_SB_G1 82
2551 #define R_ARM_LDC_SB_G2 83
2552 #define R_ARM_MOVW_BREL_NC 84
2553 #define R_ARM_MOVT_BREL 85
2554 #define R_ARM_MOVW_BREL 86
2555 #define R_ARM_THM_MOVW_BREL_NC 87
2556 #define R_ARM_THM_MOVT_BREL 88
2557 #define R_ARM_THM_MOVW_BREL 89
2558 #define R_ARM_TLS_GOTDESC 90
2559 #define R_ARM_TLS_CALL 91
2560 #define R_ARM_TLS_DESCSEQ 92
2561 #define R_ARM_THM_TLS_CALL 93
2562 #define R_ARM_PLT32_ABS 94
2563 #define R_ARM_GOT_ABS 95
2564 #define R_ARM_GOT_PREL 96
2565 #define R_ARM_GOT_BREL12 97
2566 #define R_ARM_GOTOFF12 98
2567 #define R_ARM_GOTRELAX 99
2568 #define R_ARM_GNU_VTENTRY 100
2569 #define R_ARM_GNU_VTINHERIT 101
2570 #define R_ARM_THM_PC11 102
2571 #define R_ARM_THM_PC9 103
2572 #define R_ARM_TLS_GD32 104
2574 #define R_ARM_TLS_LDM32 105
2576 #define R_ARM_TLS_LDO32 106
2578 #define R_ARM_TLS_IE32 107
2580 #define R_ARM_TLS_LE32 108
2581 #define R_ARM_TLS_LDO12 109
2582 #define R_ARM_TLS_LE12 110
2583 #define R_ARM_TLS_IE12GP 111
2584 #define R_ARM_ME_TOO 128
2585 #define R_ARM_THM_TLS_DESCSEQ 129
2586 #define R_ARM_THM_TLS_DESCSEQ16 129
2587 #define R_ARM_THM_TLS_DESCSEQ32 130
2588 #define R_ARM_THM_GOT_BREL12 131
2589 #define R_ARM_IRELATIVE 160
2590 #define R_ARM_RXPC25 249
2591 #define R_ARM_RSBREL32 250
2592 #define R_ARM_THM_RPC22 251
2593 #define R_ARM_RREL32 252
2594 #define R_ARM_RABS22 253
2595 #define R_ARM_RPC24 254
2596 #define R_ARM_RBASE 255
2598 #define R_ARM_NUM 256
2603 #define EF_IA_64_MASKOS 0x0000000f
2604 #define EF_IA_64_ABI64 0x00000010
2605 #define EF_IA_64_ARCH 0xff000000
2608 #define PT_IA_64_ARCHEXT (PT_LOPROC + 0)
2609 #define PT_IA_64_UNWIND (PT_LOPROC + 1)
2610 #define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12)
2611 #define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13)
2612 #define PT_IA_64_HP_STACK (PT_LOOS + 0x14)
2615 #define PF_IA_64_NORECOV 0x80000000
2618 #define SHT_IA_64_EXT (SHT_LOPROC + 0)
2619 #define SHT_IA_64_UNWIND (SHT_LOPROC + 1)
2622 #define SHF_IA_64_SHORT 0x10000000
2623 #define SHF_IA_64_NORECOV 0x20000000
2626 #define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0)
2627 #define DT_IA_64_NUM 1
2630 #define R_IA64_NONE 0x00
2631 #define R_IA64_IMM14 0x21
2632 #define R_IA64_IMM22 0x22
2633 #define R_IA64_IMM64 0x23
2634 #define R_IA64_DIR32MSB 0x24
2635 #define R_IA64_DIR32LSB 0x25
2636 #define R_IA64_DIR64MSB 0x26
2637 #define R_IA64_DIR64LSB 0x27
2638 #define R_IA64_GPREL22 0x2a
2639 #define R_IA64_GPREL64I 0x2b
2640 #define R_IA64_GPREL32MSB 0x2c
2641 #define R_IA64_GPREL32LSB 0x2d
2642 #define R_IA64_GPREL64MSB 0x2e
2643 #define R_IA64_GPREL64LSB 0x2f
2644 #define R_IA64_LTOFF22 0x32
2645 #define R_IA64_LTOFF64I 0x33
2646 #define R_IA64_PLTOFF22 0x3a
2647 #define R_IA64_PLTOFF64I 0x3b
2648 #define R_IA64_PLTOFF64MSB 0x3e
2649 #define R_IA64_PLTOFF64LSB 0x3f
2650 #define R_IA64_FPTR64I 0x43
2651 #define R_IA64_FPTR32MSB 0x44
2652 #define R_IA64_FPTR32LSB 0x45
2653 #define R_IA64_FPTR64MSB 0x46
2654 #define R_IA64_FPTR64LSB 0x47
2655 #define R_IA64_PCREL60B 0x48
2656 #define R_IA64_PCREL21B 0x49
2657 #define R_IA64_PCREL21M 0x4a
2658 #define R_IA64_PCREL21F 0x4b
2659 #define R_IA64_PCREL32MSB 0x4c
2660 #define R_IA64_PCREL32LSB 0x4d
2661 #define R_IA64_PCREL64MSB 0x4e
2662 #define R_IA64_PCREL64LSB 0x4f
2663 #define R_IA64_LTOFF_FPTR22 0x52
2664 #define R_IA64_LTOFF_FPTR64I 0x53
2665 #define R_IA64_LTOFF_FPTR32MSB 0x54
2666 #define R_IA64_LTOFF_FPTR32LSB 0x55
2667 #define R_IA64_LTOFF_FPTR64MSB 0x56
2668 #define R_IA64_LTOFF_FPTR64LSB 0x57
2669 #define R_IA64_SEGREL32MSB 0x5c
2670 #define R_IA64_SEGREL32LSB 0x5d
2671 #define R_IA64_SEGREL64MSB 0x5e
2672 #define R_IA64_SEGREL64LSB 0x5f
2673 #define R_IA64_SECREL32MSB 0x64
2674 #define R_IA64_SECREL32LSB 0x65
2675 #define R_IA64_SECREL64MSB 0x66
2676 #define R_IA64_SECREL64LSB 0x67
2677 #define R_IA64_REL32MSB 0x6c
2678 #define R_IA64_REL32LSB 0x6d
2679 #define R_IA64_REL64MSB 0x6e
2680 #define R_IA64_REL64LSB 0x6f
2681 #define R_IA64_LTV32MSB 0x74
2682 #define R_IA64_LTV32LSB 0x75
2683 #define R_IA64_LTV64MSB 0x76
2684 #define R_IA64_LTV64LSB 0x77
2685 #define R_IA64_PCREL21BI 0x79
2686 #define R_IA64_PCREL22 0x7a
2687 #define R_IA64_PCREL64I 0x7b
2688 #define R_IA64_IPLTMSB 0x80
2689 #define R_IA64_IPLTLSB 0x81
2690 #define R_IA64_COPY 0x84
2691 #define R_IA64_SUB 0x85
2692 #define R_IA64_LTOFF22X 0x86
2693 #define R_IA64_LDXMOV 0x87
2694 #define R_IA64_TPREL14 0x91
2695 #define R_IA64_TPREL22 0x92
2696 #define R_IA64_TPREL64I 0x93
2697 #define R_IA64_TPREL64MSB 0x96
2698 #define R_IA64_TPREL64LSB 0x97
2699 #define R_IA64_LTOFF_TPREL22 0x9a
2700 #define R_IA64_DTPMOD64MSB 0xa6
2701 #define R_IA64_DTPMOD64LSB 0xa7
2702 #define R_IA64_LTOFF_DTPMOD22 0xaa
2703 #define R_IA64_DTPREL14 0xb1
2704 #define R_IA64_DTPREL22 0xb2
2705 #define R_IA64_DTPREL64I 0xb3
2706 #define R_IA64_DTPREL32MSB 0xb4
2707 #define R_IA64_DTPREL32LSB 0xb5
2708 #define R_IA64_DTPREL64MSB 0xb6
2709 #define R_IA64_DTPREL64LSB 0xb7
2710 #define R_IA64_LTOFF_DTPREL22 0xba
2713 #define EF_SH_MACH_MASK 0x1f
2714 #define EF_SH_UNKNOWN 0x0
2718 #define EF_SH_DSP 0x4
2719 #define EF_SH3_DSP 0x5
2720 #define EF_SH4AL_DSP 0x6
2726 #define EF_SH4_NOFPU 0x10
2727 #define EF_SH4A_NOFPU 0x11
2728 #define EF_SH4_NOMMU_NOFPU 0x12
2729 #define EF_SH2A_NOFPU 0x13
2730 #define EF_SH3_NOMMU 0x14
2731 #define EF_SH2A_SH4_NOFPU 0x15
2732 #define EF_SH2A_SH3_NOFPU 0x16
2733 #define EF_SH2A_SH4 0x17
2734 #define EF_SH2A_SH3E 0x18
2737 #define R_SH_DIR32 1
2738 #define R_SH_REL32 2
2739 #define R_SH_DIR8WPN 3
2740 #define R_SH_IND12W 4
2741 #define R_SH_DIR8WPL 5
2742 #define R_SH_DIR8WPZ 6
2743 #define R_SH_DIR8BP 7
2744 #define R_SH_DIR8W 8
2745 #define R_SH_DIR8L 9
2746 #define R_SH_SWITCH16 25
2747 #define R_SH_SWITCH32 26
2748 #define R_SH_USES 27
2749 #define R_SH_COUNT 28
2750 #define R_SH_ALIGN 29
2751 #define R_SH_CODE 30
2752 #define R_SH_DATA 31
2753 #define R_SH_LABEL 32
2754 #define R_SH_SWITCH8 33
2755 #define R_SH_GNU_VTINHERIT 34
2756 #define R_SH_GNU_VTENTRY 35
2757 #define R_SH_TLS_GD_32 144
2758 #define R_SH_TLS_LD_32 145
2759 #define R_SH_TLS_LDO_32 146
2760 #define R_SH_TLS_IE_32 147
2761 #define R_SH_TLS_LE_32 148
2762 #define R_SH_TLS_DTPMOD32 149
2763 #define R_SH_TLS_DTPOFF32 150
2764 #define R_SH_TLS_TPOFF32 151
2765 #define R_SH_GOT32 160
2766 #define R_SH_PLT32 161
2767 #define R_SH_COPY 162
2768 #define R_SH_GLOB_DAT 163
2769 #define R_SH_JMP_SLOT 164
2770 #define R_SH_RELATIVE 165
2771 #define R_SH_GOTOFF 166
2772 #define R_SH_GOTPC 167
2773 #define R_SH_GOT20 201
2774 #define R_SH_GOTOFF20 202
2775 #define R_SH_GOTFUNCDESC 203
2776 #define R_SH_GOTFUNCDEST20 204
2777 #define R_SH_GOTOFFFUNCDESC 205
2778 #define R_SH_GOTOFFFUNCDEST20 206
2779 #define R_SH_FUNCDESC 207
2780 #define R_SH_FUNCDESC_VALUE 208
2782 #define R_SH_NUM 256
2786 #define R_390_NONE 0
2791 #define R_390_PC32 5
2792 #define R_390_GOT12 6
2793 #define R_390_GOT32 7
2794 #define R_390_PLT32 8
2795 #define R_390_COPY 9
2796 #define R_390_GLOB_DAT 10
2797 #define R_390_JMP_SLOT 11
2798 #define R_390_RELATIVE 12
2799 #define R_390_GOTOFF32 13
2800 #define R_390_GOTPC 14
2801 #define R_390_GOT16 15
2802 #define R_390_PC16 16
2803 #define R_390_PC16DBL 17
2804 #define R_390_PLT16DBL 18
2805 #define R_390_PC32DBL 19
2806 #define R_390_PLT32DBL 20
2807 #define R_390_GOTPCDBL 21
2809 #define R_390_PC64 23
2810 #define R_390_GOT64 24
2811 #define R_390_PLT64 25
2812 #define R_390_GOTENT 26
2813 #define R_390_GOTOFF16 27
2814 #define R_390_GOTOFF64 28
2815 #define R_390_GOTPLT12 29
2816 #define R_390_GOTPLT16 30
2817 #define R_390_GOTPLT32 31
2818 #define R_390_GOTPLT64 32
2819 #define R_390_GOTPLTENT 33
2820 #define R_390_PLTOFF16 34
2821 #define R_390_PLTOFF32 35
2822 #define R_390_PLTOFF64 36
2823 #define R_390_TLS_LOAD 37
2824 #define R_390_TLS_GDCALL 38
2826 #define R_390_TLS_LDCALL 39
2828 #define R_390_TLS_GD32 40
2830 #define R_390_TLS_GD64 41
2832 #define R_390_TLS_GOTIE12 42
2834 #define R_390_TLS_GOTIE32 43
2836 #define R_390_TLS_GOTIE64 44
2838 #define R_390_TLS_LDM32 45
2840 #define R_390_TLS_LDM64 46
2842 #define R_390_TLS_IE32 47
2844 #define R_390_TLS_IE64 48
2846 #define R_390_TLS_IEENT 49
2848 #define R_390_TLS_LE32 50
2850 #define R_390_TLS_LE64 51
2852 #define R_390_TLS_LDO32 52
2854 #define R_390_TLS_LDO64 53
2856 #define R_390_TLS_DTPMOD 54
2857 #define R_390_TLS_DTPOFF 55
2858 #define R_390_TLS_TPOFF 56
2861 #define R_390_GOT20 58
2862 #define R_390_GOTPLT20 59
2863 #define R_390_TLS_GOTIE20 60
2866 #define R_390_NUM 61
2870 #define R_CRIS_NONE 0
2874 #define R_CRIS_8_PCREL 4
2875 #define R_CRIS_16_PCREL 5
2876 #define R_CRIS_32_PCREL 6
2877 #define R_CRIS_GNU_VTINHERIT 7
2878 #define R_CRIS_GNU_VTENTRY 8
2879 #define R_CRIS_COPY 9
2880 #define R_CRIS_GLOB_DAT 10
2881 #define R_CRIS_JUMP_SLOT 11
2882 #define R_CRIS_RELATIVE 12
2883 #define R_CRIS_16_GOT 13
2884 #define R_CRIS_32_GOT 14
2885 #define R_CRIS_16_GOTPLT 15
2886 #define R_CRIS_32_GOTPLT 16
2887 #define R_CRIS_32_GOTREL 17
2888 #define R_CRIS_32_PLT_GOTREL 18
2889 #define R_CRIS_32_PLT_PCREL 19
2891 #define R_CRIS_NUM 20
2895 #define R_X86_64_NONE 0
2896 #define R_X86_64_64 1
2897 #define R_X86_64_PC32 2
2898 #define R_X86_64_GOT32 3
2899 #define R_X86_64_PLT32 4
2900 #define R_X86_64_COPY 5
2901 #define R_X86_64_GLOB_DAT 6
2902 #define R_X86_64_JUMP_SLOT 7
2903 #define R_X86_64_RELATIVE 8
2904 #define R_X86_64_GOTPCREL 9
2906 #define R_X86_64_32 10
2907 #define R_X86_64_32S 11
2908 #define R_X86_64_16 12
2909 #define R_X86_64_PC16 13
2910 #define R_X86_64_8 14
2911 #define R_X86_64_PC8 15
2912 #define R_X86_64_DTPMOD64 16
2913 #define R_X86_64_DTPOFF64 17
2914 #define R_X86_64_TPOFF64 18
2915 #define R_X86_64_TLSGD 19
2917 #define R_X86_64_TLSLD 20
2919 #define R_X86_64_DTPOFF32 21
2920 #define R_X86_64_GOTTPOFF 22
2922 #define R_X86_64_TPOFF32 23
2923 #define R_X86_64_PC64 24
2924 #define R_X86_64_GOTOFF64 25
2925 #define R_X86_64_GOTPC32 26
2926 #define R_X86_64_GOT64 27
2927 #define R_X86_64_GOTPCREL64 28
2928 #define R_X86_64_GOTPC64 29
2929 #define R_X86_64_GOTPLT64 30
2930 #define R_X86_64_PLTOFF64 31
2931 #define R_X86_64_SIZE32 32
2932 #define R_X86_64_SIZE64 33
2934 #define R_X86_64_GOTPC32_TLSDESC 34
2935 #define R_X86_64_TLSDESC_CALL 35
2937 #define R_X86_64_TLSDESC 36
2938 #define R_X86_64_IRELATIVE 37
2939 #define R_X86_64_RELATIVE64 38
2940 #define R_X86_64_GOTPCRELX 41
2941 #define R_X86_64_REX_GOTPCRELX 42
2942 #define R_X86_64_NUM 43
2946 #define R_MN10300_NONE 0
2947 #define R_MN10300_32 1
2948 #define R_MN10300_16 2
2949 #define R_MN10300_8 3
2950 #define R_MN10300_PCREL32 4
2951 #define R_MN10300_PCREL16 5
2952 #define R_MN10300_PCREL8 6
2953 #define R_MN10300_GNU_VTINHERIT 7
2954 #define R_MN10300_GNU_VTENTRY 8
2955 #define R_MN10300_24 9
2956 #define R_MN10300_GOTPC32 10
2957 #define R_MN10300_GOTPC16 11
2958 #define R_MN10300_GOTOFF32 12
2959 #define R_MN10300_GOTOFF24 13
2960 #define R_MN10300_GOTOFF16 14
2961 #define R_MN10300_PLT32 15
2962 #define R_MN10300_PLT16 16
2963 #define R_MN10300_GOT32 17
2964 #define R_MN10300_GOT24 18
2965 #define R_MN10300_GOT16 19
2966 #define R_MN10300_COPY 20
2967 #define R_MN10300_GLOB_DAT 21
2968 #define R_MN10300_JMP_SLOT 22
2969 #define R_MN10300_RELATIVE 23
2971 #define R_MN10300_NUM 24
2975 #define R_M32R_NONE 0
2979 #define R_M32R_10_PCREL 4
2980 #define R_M32R_18_PCREL 5
2981 #define R_M32R_26_PCREL 6
2982 #define R_M32R_HI16_ULO 7
2983 #define R_M32R_HI16_SLO 8
2984 #define R_M32R_LO16 9
2985 #define R_M32R_SDA16 10
2986 #define R_M32R_GNU_VTINHERIT 11
2987 #define R_M32R_GNU_VTENTRY 12
2989 #define R_M32R_16_RELA 33
2990 #define R_M32R_32_RELA 34
2991 #define R_M32R_24_RELA 35
2992 #define R_M32R_10_PCREL_RELA 36
2993 #define R_M32R_18_PCREL_RELA 37
2994 #define R_M32R_26_PCREL_RELA 38
2995 #define R_M32R_HI16_ULO_RELA 39
2996 #define R_M32R_HI16_SLO_RELA 40
2997 #define R_M32R_LO16_RELA 41
2998 #define R_M32R_SDA16_RELA 42
2999 #define R_M32R_RELA_GNU_VTINHERIT 43
3000 #define R_M32R_RELA_GNU_VTENTRY 44
3001 #define R_M32R_REL32 45
3003 #define R_M32R_GOT24 48
3004 #define R_M32R_26_PLTREL 49
3005 #define R_M32R_COPY 50
3006 #define R_M32R_GLOB_DAT 51
3007 #define R_M32R_JMP_SLOT 52
3008 #define R_M32R_RELATIVE 53
3009 #define R_M32R_GOTOFF 54
3010 #define R_M32R_GOTPC24 55
3011 #define R_M32R_GOT16_HI_ULO 56
3013 #define R_M32R_GOT16_HI_SLO 57
3015 #define R_M32R_GOT16_LO 58
3016 #define R_M32R_GOTPC_HI_ULO 59
3018 #define R_M32R_GOTPC_HI_SLO 60
3020 #define R_M32R_GOTPC_LO 61
3022 #define R_M32R_GOTOFF_HI_ULO 62
3024 #define R_M32R_GOTOFF_HI_SLO 63
3026 #define R_M32R_GOTOFF_LO 64
3027 #define R_M32R_NUM 256
3029 #define R_MICROBLAZE_NONE 0
3030 #define R_MICROBLAZE_32 1
3031 #define R_MICROBLAZE_32_PCREL 2
3032 #define R_MICROBLAZE_64_PCREL 3
3033 #define R_MICROBLAZE_32_PCREL_LO 4
3034 #define R_MICROBLAZE_64 5
3035 #define R_MICROBLAZE_32_LO 6
3036 #define R_MICROBLAZE_SRO32 7
3037 #define R_MICROBLAZE_SRW32 8
3038 #define R_MICROBLAZE_64_NONE 9
3039 #define R_MICROBLAZE_32_SYM_OP_SYM 10
3040 #define R_MICROBLAZE_GNU_VTINHERIT 11
3041 #define R_MICROBLAZE_GNU_VTENTRY 12
3042 #define R_MICROBLAZE_GOTPC_64 13
3043 #define R_MICROBLAZE_GOT_64 14
3044 #define R_MICROBLAZE_PLT_64 15
3045 #define R_MICROBLAZE_REL 16
3046 #define R_MICROBLAZE_JUMP_SLOT 17
3047 #define R_MICROBLAZE_GLOB_DAT 18
3048 #define R_MICROBLAZE_GOTOFF_64 19
3049 #define R_MICROBLAZE_GOTOFF_32 20
3050 #define R_MICROBLAZE_COPY 21
3051 #define R_MICROBLAZE_TLS 22
3052 #define R_MICROBLAZE_TLSGD 23
3053 #define R_MICROBLAZE_TLSLD 24
3054 #define R_MICROBLAZE_TLSDTPMOD32 25
3055 #define R_MICROBLAZE_TLSDTPREL32 26
3056 #define R_MICROBLAZE_TLSDTPREL64 27
3057 #define R_MICROBLAZE_TLSGOTTPREL32 28
3058 #define R_MICROBLAZE_TLSTPREL32 29
3060 #define DT_NIOS2_GP 0x70000002
3062 #define R_NIOS2_NONE 0
3063 #define R_NIOS2_S16 1
3064 #define R_NIOS2_U16 2
3065 #define R_NIOS2_PCREL16 3
3066 #define R_NIOS2_CALL26 4
3067 #define R_NIOS2_IMM5 5
3068 #define R_NIOS2_CACHE_OPX 6
3069 #define R_NIOS2_IMM6 7
3070 #define R_NIOS2_IMM8 8
3071 #define R_NIOS2_HI16 9
3072 #define R_NIOS2_LO16 10
3073 #define R_NIOS2_HIADJ16 11
3074 #define R_NIOS2_BFD_RELOC_32 12
3075 #define R_NIOS2_BFD_RELOC_16 13
3076 #define R_NIOS2_BFD_RELOC_8 14
3077 #define R_NIOS2_GPREL 15
3078 #define R_NIOS2_GNU_VTINHERIT 16
3079 #define R_NIOS2_GNU_VTENTRY 17
3080 #define R_NIOS2_UJMP 18
3081 #define R_NIOS2_CJMP 19
3082 #define R_NIOS2_CALLR 20
3083 #define R_NIOS2_ALIGN 21
3084 #define R_NIOS2_GOT16 22
3085 #define R_NIOS2_CALL16 23
3086 #define R_NIOS2_GOTOFF_LO 24
3087 #define R_NIOS2_GOTOFF_HA 25
3088 #define R_NIOS2_PCREL_LO 26
3089 #define R_NIOS2_PCREL_HA 27
3090 #define R_NIOS2_TLS_GD16 28
3091 #define R_NIOS2_TLS_LDM16 29
3092 #define R_NIOS2_TLS_LDO16 30
3093 #define R_NIOS2_TLS_IE16 31
3094 #define R_NIOS2_TLS_LE16 32
3095 #define R_NIOS2_TLS_DTPMOD 33
3096 #define R_NIOS2_TLS_DTPREL 34
3097 #define R_NIOS2_TLS_TPREL 35
3098 #define R_NIOS2_COPY 36
3099 #define R_NIOS2_GLOB_DAT 37
3100 #define R_NIOS2_JUMP_SLOT 38
3101 #define R_NIOS2_RELATIVE 39
3102 #define R_NIOS2_GOTOFF 40
3103 #define R_NIOS2_CALL26_NOAT 41
3104 #define R_NIOS2_GOT_LO 42
3105 #define R_NIOS2_GOT_HA 43
3106 #define R_NIOS2_CALL_LO 44
3107 #define R_NIOS2_CALL_HA 45
3109 #define R_OR1K_NONE 0
3113 #define R_OR1K_LO_16_IN_INSN 4
3114 #define R_OR1K_HI_16_IN_INSN 5
3115 #define R_OR1K_INSN_REL_26 6
3116 #define R_OR1K_GNU_VTENTRY 7
3117 #define R_OR1K_GNU_VTINHERIT 8
3118 #define R_OR1K_32_PCREL 9
3119 #define R_OR1K_16_PCREL 10
3120 #define R_OR1K_8_PCREL 11
3121 #define R_OR1K_GOTPC_HI16 12
3122 #define R_OR1K_GOTPC_LO16 13
3123 #define R_OR1K_GOT16 14
3124 #define R_OR1K_PLT26 15
3125 #define R_OR1K_GOTOFF_HI16 16
3126 #define R_OR1K_GOTOFF_LO16 17
3127 #define R_OR1K_COPY 18
3128 #define R_OR1K_GLOB_DAT 19
3129 #define R_OR1K_JMP_SLOT 20
3130 #define R_OR1K_RELATIVE 21
3131 #define R_OR1K_TLS_GD_HI16 22
3132 #define R_OR1K_TLS_GD_LO16 23
3133 #define R_OR1K_TLS_LDM_HI16 24
3134 #define R_OR1K_TLS_LDM_LO16 25
3135 #define R_OR1K_TLS_LDO_HI16 26
3136 #define R_OR1K_TLS_LDO_LO16 27
3137 #define R_OR1K_TLS_IE_HI16 28
3138 #define R_OR1K_TLS_IE_LO16 29
3139 #define R_OR1K_TLS_LE_HI16 30
3140 #define R_OR1K_TLS_LE_LO16 31
3141 #define R_OR1K_TLS_TPOFF 32
3142 #define R_OR1K_TLS_DTPOFF 33
3143 #define R_OR1K_TLS_DTPMOD 34
3145 #define R_BPF_NONE 0
3146 #define R_BPF_MAP_FD 1