1#![allow(missing_docs)]
9#![allow(clippy::identity_op)]
10
11use crate::endian::{Endian, U32Bytes, U64Bytes, I32, I64, U16, U32, U64};
12use crate::pod::Pod;
13
14#[derive(Debug, Clone, Copy)]
16#[repr(C)]
17pub struct FileHeader32<E: Endian> {
18 pub e_ident: Ident,
20 pub e_type: U16<E>,
22 pub e_machine: U16<E>,
24 pub e_version: U32<E>,
26 pub e_entry: U32<E>,
28 pub e_phoff: U32<E>,
30 pub e_shoff: U32<E>,
32 pub e_flags: U32<E>,
36 pub e_ehsize: U16<E>,
38 pub e_phentsize: U16<E>,
40 pub e_phnum: U16<E>,
45 pub e_shentsize: U16<E>,
47 pub e_shnum: U16<E>,
53 pub e_shstrndx: U16<E>,
58}
59
60#[derive(Debug, Clone, Copy)]
62#[repr(C)]
63pub struct FileHeader64<E: Endian> {
64 pub e_ident: Ident,
66 pub e_type: U16<E>,
68 pub e_machine: U16<E>,
70 pub e_version: U32<E>,
72 pub e_entry: U64<E>,
74 pub e_phoff: U64<E>,
76 pub e_shoff: U64<E>,
78 pub e_flags: U32<E>,
82 pub e_ehsize: U16<E>,
84 pub e_phentsize: U16<E>,
86 pub e_phnum: U16<E>,
91 pub e_shentsize: U16<E>,
93 pub e_shnum: U16<E>,
99 pub e_shstrndx: U16<E>,
104}
105
106#[derive(Debug, Clone, Copy)]
110#[repr(C)]
111pub struct Ident {
112 pub magic: [u8; 4],
114 pub class: u8,
116 pub data: u8,
118 pub version: u8,
120 pub os_abi: u8,
122 pub abi_version: u8,
126 pub padding: [u8; 7],
128}
129
130pub const ELFMAG: [u8; 4] = [0x7f, b'E', b'L', b'F'];
132
133pub const ELFCLASSNONE: u8 = 0;
136pub const ELFCLASS32: u8 = 1;
138pub const ELFCLASS64: u8 = 2;
140
141pub const ELFDATANONE: u8 = 0;
144pub const ELFDATA2LSB: u8 = 1;
146pub const ELFDATA2MSB: u8 = 2;
148
149pub const ELFOSABI_NONE: u8 = 0;
152pub const ELFOSABI_SYSV: u8 = 0;
156pub const ELFOSABI_HPUX: u8 = 1;
158pub const ELFOSABI_NETBSD: u8 = 2;
160pub const ELFOSABI_GNU: u8 = 3;
162pub const ELFOSABI_LINUX: u8 = ELFOSABI_GNU;
166pub const ELFOSABI_HURD: u8 = 4;
168pub const ELFOSABI_SOLARIS: u8 = 6;
170pub const ELFOSABI_AIX: u8 = 7;
172pub const ELFOSABI_IRIX: u8 = 8;
174pub const ELFOSABI_FREEBSD: u8 = 9;
176pub const ELFOSABI_TRU64: u8 = 10;
178pub const ELFOSABI_MODESTO: u8 = 11;
180pub const ELFOSABI_OPENBSD: u8 = 12;
182pub const ELFOSABI_OPENVMS: u8 = 13;
184pub const ELFOSABI_NSK: u8 = 14;
186pub const ELFOSABI_AROS: u8 = 15;
188pub const ELFOSABI_FENIXOS: u8 = 16;
190pub const ELFOSABI_CLOUDABI: u8 = 17;
192pub const ELFOSABI_ARM_AEABI: u8 = 64;
194pub const ELFOSABI_ARM: u8 = 97;
196pub const ELFOSABI_STANDALONE: u8 = 255;
198
199pub const ET_NONE: u16 = 0;
202pub const ET_REL: u16 = 1;
204pub const ET_EXEC: u16 = 2;
206pub const ET_DYN: u16 = 3;
208pub const ET_CORE: u16 = 4;
210pub const ET_LOOS: u16 = 0xfe00;
212pub const ET_HIOS: u16 = 0xfeff;
214pub const ET_LOPROC: u16 = 0xff00;
216pub const ET_HIPROC: u16 = 0xffff;
218
219pub const EM_NONE: u16 = 0;
222pub const EM_M32: u16 = 1;
224pub const EM_SPARC: u16 = 2;
226pub const EM_386: u16 = 3;
228pub const EM_68K: u16 = 4;
230pub const EM_88K: u16 = 5;
232pub const EM_IAMCU: u16 = 6;
234pub const EM_860: u16 = 7;
236pub const EM_MIPS: u16 = 8;
238pub const EM_S370: u16 = 9;
240pub const EM_MIPS_RS3_LE: u16 = 10;
242pub const EM_PARISC: u16 = 15;
244pub const EM_VPP500: u16 = 17;
246pub const EM_SPARC32PLUS: u16 = 18;
248pub const EM_960: u16 = 19;
250pub const EM_PPC: u16 = 20;
252pub const EM_PPC64: u16 = 21;
254pub const EM_S390: u16 = 22;
256pub const EM_SPU: u16 = 23;
258pub const EM_V800: u16 = 36;
260pub const EM_FR20: u16 = 37;
262pub const EM_RH32: u16 = 38;
264pub const EM_RCE: u16 = 39;
266pub const EM_ARM: u16 = 40;
268pub const EM_FAKE_ALPHA: u16 = 41;
270pub const EM_SH: u16 = 42;
272pub const EM_SPARCV9: u16 = 43;
274pub const EM_TRICORE: u16 = 44;
276pub const EM_ARC: u16 = 45;
278pub const EM_H8_300: u16 = 46;
280pub const EM_H8_300H: u16 = 47;
282pub const EM_H8S: u16 = 48;
284pub const EM_H8_500: u16 = 49;
286pub const EM_IA_64: u16 = 50;
288pub const EM_MIPS_X: u16 = 51;
290pub const EM_COLDFIRE: u16 = 52;
292pub const EM_68HC12: u16 = 53;
294pub const EM_MMA: u16 = 54;
296pub const EM_PCP: u16 = 55;
298pub const EM_NCPU: u16 = 56;
300pub const EM_NDR1: u16 = 57;
302pub const EM_STARCORE: u16 = 58;
304pub const EM_ME16: u16 = 59;
306pub const EM_ST100: u16 = 60;
308pub const EM_TINYJ: u16 = 61;
310pub const EM_X86_64: u16 = 62;
312pub const EM_PDSP: u16 = 63;
314pub const EM_PDP10: u16 = 64;
316pub const EM_PDP11: u16 = 65;
318pub const EM_FX66: u16 = 66;
320pub const EM_ST9PLUS: u16 = 67;
322pub const EM_ST7: u16 = 68;
324pub const EM_68HC16: u16 = 69;
326pub const EM_68HC11: u16 = 70;
328pub const EM_68HC08: u16 = 71;
330pub const EM_68HC05: u16 = 72;
332pub const EM_SVX: u16 = 73;
334pub const EM_ST19: u16 = 74;
336pub const EM_VAX: u16 = 75;
338pub const EM_CRIS: u16 = 76;
340pub const EM_JAVELIN: u16 = 77;
342pub const EM_FIREPATH: u16 = 78;
344pub const EM_ZSP: u16 = 79;
346pub const EM_MMIX: u16 = 80;
348pub const EM_HUANY: u16 = 81;
350pub const EM_PRISM: u16 = 82;
352pub const EM_AVR: u16 = 83;
354pub const EM_FR30: u16 = 84;
356pub const EM_D10V: u16 = 85;
358pub const EM_D30V: u16 = 86;
360pub const EM_V850: u16 = 87;
362pub const EM_M32R: u16 = 88;
364pub const EM_MN10300: u16 = 89;
366pub const EM_MN10200: u16 = 90;
368pub const EM_PJ: u16 = 91;
370pub const EM_OPENRISC: u16 = 92;
372pub const EM_ARC_COMPACT: u16 = 93;
374pub const EM_XTENSA: u16 = 94;
376pub const EM_VIDEOCORE: u16 = 95;
378pub const EM_TMM_GPP: u16 = 96;
380pub const EM_NS32K: u16 = 97;
382pub const EM_TPC: u16 = 98;
384pub const EM_SNP1K: u16 = 99;
386pub const EM_ST200: u16 = 100;
388pub const EM_IP2K: u16 = 101;
390pub const EM_MAX: u16 = 102;
392pub const EM_CR: u16 = 103;
394pub const EM_F2MC16: u16 = 104;
396pub const EM_MSP430: u16 = 105;
398pub const EM_BLACKFIN: u16 = 106;
400pub const EM_SE_C33: u16 = 107;
402pub const EM_SEP: u16 = 108;
404pub const EM_ARCA: u16 = 109;
406pub const EM_UNICORE: u16 = 110;
408pub const EM_EXCESS: u16 = 111;
410pub const EM_DXP: u16 = 112;
412pub const EM_ALTERA_NIOS2: u16 = 113;
414pub const EM_CRX: u16 = 114;
416pub const EM_XGATE: u16 = 115;
418pub const EM_C166: u16 = 116;
420pub const EM_M16C: u16 = 117;
422pub const EM_DSPIC30F: u16 = 118;
424pub const EM_CE: u16 = 119;
426pub const EM_M32C: u16 = 120;
428pub const EM_TSK3000: u16 = 131;
430pub const EM_RS08: u16 = 132;
432pub const EM_SHARC: u16 = 133;
434pub const EM_ECOG2: u16 = 134;
436pub const EM_SCORE7: u16 = 135;
438pub const EM_DSP24: u16 = 136;
440pub const EM_VIDEOCORE3: u16 = 137;
442pub const EM_LATTICEMICO32: u16 = 138;
444pub const EM_SE_C17: u16 = 139;
446pub const EM_TI_C6000: u16 = 140;
448pub const EM_TI_C2000: u16 = 141;
450pub const EM_TI_C5500: u16 = 142;
452pub const EM_TI_ARP32: u16 = 143;
454pub const EM_TI_PRU: u16 = 144;
456pub const EM_MMDSP_PLUS: u16 = 160;
458pub const EM_CYPRESS_M8C: u16 = 161;
460pub const EM_R32C: u16 = 162;
462pub const EM_TRIMEDIA: u16 = 163;
464pub const EM_HEXAGON: u16 = 164;
466pub const EM_8051: u16 = 165;
468pub const EM_STXP7X: u16 = 166;
470pub const EM_NDS32: u16 = 167;
472pub const EM_ECOG1X: u16 = 168;
474pub const EM_MAXQ30: u16 = 169;
476pub const EM_XIMO16: u16 = 170;
478pub const EM_MANIK: u16 = 171;
480pub const EM_CRAYNV2: u16 = 172;
482pub const EM_RX: u16 = 173;
484pub const EM_METAG: u16 = 174;
486pub const EM_MCST_ELBRUS: u16 = 175;
488pub const EM_ECOG16: u16 = 176;
490pub const EM_CR16: u16 = 177;
492pub const EM_ETPU: u16 = 178;
494pub const EM_SLE9X: u16 = 179;
496pub const EM_L10M: u16 = 180;
498pub const EM_K10M: u16 = 181;
500pub const EM_AARCH64: u16 = 183;
502pub const EM_AVR32: u16 = 185;
504pub const EM_STM8: u16 = 186;
506pub const EM_TILE64: u16 = 187;
508pub const EM_TILEPRO: u16 = 188;
510pub const EM_MICROBLAZE: u16 = 189;
512pub const EM_CUDA: u16 = 190;
514pub const EM_TILEGX: u16 = 191;
516pub const EM_CLOUDSHIELD: u16 = 192;
518pub const EM_COREA_1ST: u16 = 193;
520pub const EM_COREA_2ND: u16 = 194;
522pub const EM_ARC_COMPACT2: u16 = 195;
524pub const EM_OPEN8: u16 = 196;
526pub const EM_RL78: u16 = 197;
528pub const EM_VIDEOCORE5: u16 = 198;
530pub const EM_78KOR: u16 = 199;
532pub const EM_56800EX: u16 = 200;
534pub const EM_BA1: u16 = 201;
536pub const EM_BA2: u16 = 202;
538pub const EM_XCORE: u16 = 203;
540pub const EM_MCHP_PIC: u16 = 204;
542pub const EM_KM32: u16 = 210;
544pub const EM_KMX32: u16 = 211;
546pub const EM_EMX16: u16 = 212;
548pub const EM_EMX8: u16 = 213;
550pub const EM_KVARC: u16 = 214;
552pub const EM_CDP: u16 = 215;
554pub const EM_COGE: u16 = 216;
556pub const EM_COOL: u16 = 217;
558pub const EM_NORC: u16 = 218;
560pub const EM_CSR_KALIMBA: u16 = 219;
562pub const EM_Z80: u16 = 220;
564pub const EM_VISIUM: u16 = 221;
566pub const EM_FT32: u16 = 222;
568pub const EM_MOXIE: u16 = 223;
570pub const EM_AMDGPU: u16 = 224;
572pub const EM_RISCV: u16 = 243;
574pub const EM_BPF: u16 = 247;
576pub const EM_CSKY: u16 = 252;
578pub const EM_LOONGARCH: u16 = 258;
580pub const EM_SBF: u16 = 263;
582pub const EM_ALPHA: u16 = 0x9026;
584
585pub const EV_NONE: u8 = 0;
588pub const EV_CURRENT: u8 = 1;
590
591#[derive(Debug, Clone, Copy)]
593#[repr(C)]
594pub struct SectionHeader32<E: Endian> {
595 pub sh_name: U32<E>,
599 pub sh_type: U32<E>,
601 pub sh_flags: U32<E>,
603 pub sh_addr: U32<E>,
605 pub sh_offset: U32<E>,
607 pub sh_size: U32<E>,
609 pub sh_link: U32<E>,
613 pub sh_info: U32<E>,
617 pub sh_addralign: U32<E>,
619 pub sh_entsize: U32<E>,
621}
622
623#[derive(Debug, Clone, Copy)]
625#[repr(C)]
626pub struct SectionHeader64<E: Endian> {
627 pub sh_name: U32<E>,
631 pub sh_type: U32<E>,
633 pub sh_flags: U64<E>,
635 pub sh_addr: U64<E>,
637 pub sh_offset: U64<E>,
639 pub sh_size: U64<E>,
641 pub sh_link: U32<E>,
645 pub sh_info: U32<E>,
649 pub sh_addralign: U64<E>,
651 pub sh_entsize: U64<E>,
653}
654
655pub const SHN_UNDEF: u16 = 0;
658pub const SHN_LORESERVE: u16 = 0xff00;
661pub const SHN_LOPROC: u16 = 0xff00;
663pub const SHN_HIPROC: u16 = 0xff1f;
665pub const SHN_LOOS: u16 = 0xff20;
667pub const SHN_HIOS: u16 = 0xff3f;
669pub const SHN_ABS: u16 = 0xfff1;
671pub const SHN_COMMON: u16 = 0xfff2;
673pub const SHN_XINDEX: u16 = 0xffff;
675pub const SHN_HIRESERVE: u16 = 0xffff;
677
678pub const SHT_NULL: u32 = 0;
681pub const SHT_PROGBITS: u32 = 1;
683pub const SHT_SYMTAB: u32 = 2;
685pub const SHT_STRTAB: u32 = 3;
687pub const SHT_RELA: u32 = 4;
689pub const SHT_HASH: u32 = 5;
691pub const SHT_DYNAMIC: u32 = 6;
693pub const SHT_NOTE: u32 = 7;
695pub const SHT_NOBITS: u32 = 8;
697pub const SHT_REL: u32 = 9;
699pub const SHT_SHLIB: u32 = 10;
701pub const SHT_DYNSYM: u32 = 11;
703pub const SHT_INIT_ARRAY: u32 = 14;
705pub const SHT_FINI_ARRAY: u32 = 15;
707pub const SHT_PREINIT_ARRAY: u32 = 16;
709pub const SHT_GROUP: u32 = 17;
711pub const SHT_SYMTAB_SHNDX: u32 = 18;
713pub const SHT_LOOS: u32 = 0x6000_0000;
715pub const SHT_GNU_ATTRIBUTES: u32 = 0x6fff_fff5;
717pub const SHT_GNU_HASH: u32 = 0x6fff_fff6;
719pub const SHT_GNU_LIBLIST: u32 = 0x6fff_fff7;
721pub const SHT_CHECKSUM: u32 = 0x6fff_fff8;
723pub const SHT_LOSUNW: u32 = 0x6fff_fffa;
725#[allow(non_upper_case_globals)]
726pub const SHT_SUNW_move: u32 = 0x6fff_fffa;
727pub const SHT_SUNW_COMDAT: u32 = 0x6fff_fffb;
728#[allow(non_upper_case_globals)]
729pub const SHT_SUNW_syminfo: u32 = 0x6fff_fffc;
730#[allow(non_upper_case_globals)]
732pub const SHT_GNU_VERDEF: u32 = 0x6fff_fffd;
733#[allow(non_upper_case_globals)]
735pub const SHT_GNU_VERNEED: u32 = 0x6fff_fffe;
736#[allow(non_upper_case_globals)]
738pub const SHT_GNU_VERSYM: u32 = 0x6fff_ffff;
739pub const SHT_HISUNW: u32 = 0x6fff_ffff;
741pub const SHT_HIOS: u32 = 0x6fff_ffff;
743pub const SHT_LOPROC: u32 = 0x7000_0000;
745pub const SHT_HIPROC: u32 = 0x7fff_ffff;
747pub const SHT_LOUSER: u32 = 0x8000_0000;
749pub const SHT_HIUSER: u32 = 0x8fff_ffff;
751
752pub const SHF_WRITE: u32 = 1 << 0;
755pub const SHF_ALLOC: u32 = 1 << 1;
757pub const SHF_EXECINSTR: u32 = 1 << 2;
759pub const SHF_MERGE: u32 = 1 << 4;
761pub const SHF_STRINGS: u32 = 1 << 5;
763pub const SHF_INFO_LINK: u32 = 1 << 6;
765pub const SHF_LINK_ORDER: u32 = 1 << 7;
767pub const SHF_OS_NONCONFORMING: u32 = 1 << 8;
769pub const SHF_GROUP: u32 = 1 << 9;
771pub const SHF_TLS: u32 = 1 << 10;
773pub const SHF_COMPRESSED: u32 = 1 << 11;
777pub const SHF_MASKOS: u32 = 0x0ff0_0000;
779pub const SHF_GNU_RETAIN: u32 = 1 << 21;
781pub const SHF_GNU_MBIND: u32 = 1 << 24;
783pub const SHF_MASKPROC: u32 = 0xf000_0000;
785pub const SHF_EXCLUDE: u32 = 0x8000_0000;
787
788#[derive(Debug, Default, Clone, Copy)]
795#[repr(C)]
796pub struct CompressionHeader32<E: Endian> {
797 pub ch_type: U32Bytes<E>,
799 pub ch_size: U32Bytes<E>,
801 pub ch_addralign: U32Bytes<E>,
803}
804
805#[derive(Debug, Default, Clone, Copy)]
812#[repr(C)]
813pub struct CompressionHeader64<E: Endian> {
814 pub ch_type: U32Bytes<E>,
816 pub ch_reserved: U32Bytes<E>,
818 pub ch_size: U64Bytes<E>,
820 pub ch_addralign: U64Bytes<E>,
822}
823
824pub const ELFCOMPRESS_ZLIB: u32 = 1;
826pub const ELFCOMPRESS_ZSTD: u32 = 2;
828pub const ELFCOMPRESS_LOOS: u32 = 0x6000_0000;
830pub const ELFCOMPRESS_HIOS: u32 = 0x6fff_ffff;
832pub const ELFCOMPRESS_LOPROC: u32 = 0x7000_0000;
834pub const ELFCOMPRESS_HIPROC: u32 = 0x7fff_ffff;
836
837pub const GRP_COMDAT: u32 = 1;
840
841#[derive(Debug, Default, Clone, Copy)]
843#[repr(C)]
844pub struct Sym32<E: Endian> {
845 pub st_name: U32<E>,
849 pub st_value: U32<E>,
851 pub st_size: U32<E>,
853 pub st_info: u8,
857 pub st_other: u8,
861 pub st_shndx: U16<E>,
863}
864
865impl<E: Endian> Sym32<E> {
866 #[inline]
868 pub fn st_bind(&self) -> u8 {
869 self.st_info >> 4
870 }
871
872 #[inline]
874 pub fn st_type(&self) -> u8 {
875 self.st_info & 0xf
876 }
877
878 #[inline]
880 pub fn set_st_info(&mut self, st_bind: u8, st_type: u8) {
881 self.st_info = (st_bind << 4) + (st_type & 0xf);
882 }
883
884 #[inline]
886 pub fn st_visibility(&self) -> u8 {
887 self.st_other & 0x3
888 }
889}
890
891#[derive(Debug, Default, Clone, Copy)]
893#[repr(C)]
894pub struct Sym64<E: Endian> {
895 pub st_name: U32<E>,
899 pub st_info: u8,
903 pub st_other: u8,
907 pub st_shndx: U16<E>,
909 pub st_value: U64<E>,
911 pub st_size: U64<E>,
913}
914
915impl<E: Endian> Sym64<E> {
916 #[inline]
918 pub fn st_bind(&self) -> u8 {
919 self.st_info >> 4
920 }
921
922 #[inline]
924 pub fn st_type(&self) -> u8 {
925 self.st_info & 0xf
926 }
927
928 #[inline]
930 pub fn set_st_info(&mut self, st_bind: u8, st_type: u8) {
931 self.st_info = (st_bind << 4) + (st_type & 0xf);
932 }
933
934 #[inline]
936 pub fn st_visibility(&self) -> u8 {
937 self.st_other & 0x3
938 }
939}
940
941#[derive(Debug, Clone, Copy)]
943#[repr(C)]
944pub struct Syminfo32<E: Endian> {
945 pub si_boundto: U16<E>,
947 pub si_flags: U16<E>,
949}
950
951#[derive(Debug, Clone, Copy)]
953#[repr(C)]
954pub struct Syminfo64<E: Endian> {
955 pub si_boundto: U16<E>,
957 pub si_flags: U16<E>,
959}
960
961pub const SYMINFO_BT_SELF: u16 = 0xffff;
964pub const SYMINFO_BT_PARENT: u16 = 0xfffe;
966pub const SYMINFO_BT_LOWRESERVE: u16 = 0xff00;
968
969pub const SYMINFO_FLG_DIRECT: u16 = 0x0001;
972pub const SYMINFO_FLG_PASSTHRU: u16 = 0x0002;
974pub const SYMINFO_FLG_COPY: u16 = 0x0004;
976pub const SYMINFO_FLG_LAZYLOAD: u16 = 0x0008;
978
979pub const SYMINFO_NONE: u16 = 0;
981pub const SYMINFO_CURRENT: u16 = 1;
982pub const SYMINFO_NUM: u16 = 2;
983
984pub const STB_LOCAL: u8 = 0;
987pub const STB_GLOBAL: u8 = 1;
989pub const STB_WEAK: u8 = 2;
991pub const STB_LOOS: u8 = 10;
993pub const STB_GNU_UNIQUE: u8 = 10;
995pub const STB_HIOS: u8 = 12;
997pub const STB_LOPROC: u8 = 13;
999pub const STB_HIPROC: u8 = 15;
1001
1002pub const STT_NOTYPE: u8 = 0;
1005pub const STT_OBJECT: u8 = 1;
1007pub const STT_FUNC: u8 = 2;
1009pub const STT_SECTION: u8 = 3;
1011pub const STT_FILE: u8 = 4;
1013pub const STT_COMMON: u8 = 5;
1015pub const STT_TLS: u8 = 6;
1017pub const STT_LOOS: u8 = 10;
1019pub const STT_GNU_IFUNC: u8 = 10;
1021pub const STT_HIOS: u8 = 12;
1023pub const STT_LOPROC: u8 = 13;
1025pub const STT_HIPROC: u8 = 15;
1027
1028pub const STV_DEFAULT: u8 = 0;
1031pub const STV_INTERNAL: u8 = 1;
1033pub const STV_HIDDEN: u8 = 2;
1035pub const STV_PROTECTED: u8 = 3;
1037
1038#[derive(Debug, Clone, Copy)]
1040#[repr(C)]
1041pub struct Rel32<E: Endian> {
1042 pub r_offset: U32<E>,
1044 pub r_info: U32<E>,
1046}
1047
1048impl<E: Endian> Rel32<E> {
1049 #[inline]
1051 pub fn r_sym(&self, endian: E) -> u32 {
1052 self.r_info.get(endian) >> 8
1053 }
1054
1055 #[inline]
1057 pub fn r_type(&self, endian: E) -> u32 {
1058 self.r_info.get(endian) & 0xff
1059 }
1060
1061 pub fn r_info(endian: E, r_sym: u32, r_type: u8) -> U32<E> {
1063 U32::new(endian, (r_sym << 8) | u32::from(r_type))
1064 }
1065
1066 pub fn set_r_info(&mut self, endian: E, r_sym: u32, r_type: u8) {
1068 self.r_info = Self::r_info(endian, r_sym, r_type)
1069 }
1070}
1071
1072#[derive(Debug, Clone, Copy)]
1074#[repr(C)]
1075pub struct Rela32<E: Endian> {
1076 pub r_offset: U32<E>,
1078 pub r_info: U32<E>,
1080 pub r_addend: I32<E>,
1082}
1083
1084impl<E: Endian> Rela32<E> {
1085 #[inline]
1087 pub fn r_sym(&self, endian: E) -> u32 {
1088 self.r_info.get(endian) >> 8
1089 }
1090
1091 #[inline]
1093 pub fn r_type(&self, endian: E) -> u32 {
1094 self.r_info.get(endian) & 0xff
1095 }
1096
1097 pub fn r_info(endian: E, r_sym: u32, r_type: u8) -> U32<E> {
1099 U32::new(endian, (r_sym << 8) | u32::from(r_type))
1100 }
1101
1102 pub fn set_r_info(&mut self, endian: E, r_sym: u32, r_type: u8) {
1104 self.r_info = Self::r_info(endian, r_sym, r_type)
1105 }
1106}
1107
1108impl<E: Endian> From<Rel32<E>> for Rela32<E> {
1109 fn from(rel: Rel32<E>) -> Self {
1110 Rela32 {
1111 r_offset: rel.r_offset,
1112 r_info: rel.r_info,
1113 r_addend: I32::default(),
1114 }
1115 }
1116}
1117
1118#[derive(Debug, Clone, Copy)]
1120#[repr(C)]
1121pub struct Rel64<E: Endian> {
1122 pub r_offset: U64<E>,
1124 pub r_info: U64<E>,
1126}
1127
1128impl<E: Endian> Rel64<E> {
1129 #[inline]
1131 pub fn r_sym(&self, endian: E) -> u32 {
1132 (self.r_info.get(endian) >> 32) as u32
1133 }
1134
1135 #[inline]
1137 pub fn r_type(&self, endian: E) -> u32 {
1138 (self.r_info.get(endian) & 0xffff_ffff) as u32
1139 }
1140
1141 pub fn r_info(endian: E, r_sym: u32, r_type: u32) -> U64<E> {
1143 U64::new(endian, (u64::from(r_sym) << 32) | u64::from(r_type))
1144 }
1145
1146 pub fn set_r_info(&mut self, endian: E, r_sym: u32, r_type: u32) {
1148 self.r_info = Self::r_info(endian, r_sym, r_type)
1149 }
1150}
1151
1152impl<E: Endian> From<Rel64<E>> for Rela64<E> {
1153 fn from(rel: Rel64<E>) -> Self {
1154 Rela64 {
1155 r_offset: rel.r_offset,
1156 r_info: rel.r_info,
1157 r_addend: I64::default(),
1158 }
1159 }
1160}
1161
1162#[derive(Debug, Clone, Copy)]
1164#[repr(C)]
1165pub struct Rela64<E: Endian> {
1166 pub r_offset: U64<E>,
1168 pub r_info: U64<E>,
1170 pub r_addend: I64<E>,
1172}
1173
1174impl<E: Endian> Rela64<E> {
1175 pub(crate) fn get_r_info(&self, endian: E, is_mips64el: bool) -> u64 {
1176 let mut t = self.r_info.get(endian);
1177 if is_mips64el {
1178 t = (t << 32)
1179 | ((t >> 8) & 0xff000000)
1180 | ((t >> 24) & 0x00ff0000)
1181 | ((t >> 40) & 0x0000ff00)
1182 | ((t >> 56) & 0x000000ff);
1183 }
1184 t
1185 }
1186
1187 #[inline]
1189 pub fn r_sym(&self, endian: E, is_mips64el: bool) -> u32 {
1190 (self.get_r_info(endian, is_mips64el) >> 32) as u32
1191 }
1192
1193 #[inline]
1195 pub fn r_type(&self, endian: E, is_mips64el: bool) -> u32 {
1196 (self.get_r_info(endian, is_mips64el) & 0xffff_ffff) as u32
1197 }
1198
1199 pub fn r_info(endian: E, is_mips64el: bool, r_sym: u32, r_type: u32) -> U64<E> {
1201 let mut t = (u64::from(r_sym) << 32) | u64::from(r_type);
1202 if is_mips64el {
1203 t = (t >> 32)
1204 | ((t & 0xff000000) << 8)
1205 | ((t & 0x00ff0000) << 24)
1206 | ((t & 0x0000ff00) << 40)
1207 | ((t & 0x000000ff) << 56);
1208 }
1209 U64::new(endian, t)
1210 }
1211
1212 pub fn set_r_info(&mut self, endian: E, is_mips64el: bool, r_sym: u32, r_type: u32) {
1214 self.r_info = Self::r_info(endian, is_mips64el, r_sym, r_type);
1215 }
1216}
1217
1218#[derive(Debug, Clone, Copy)]
1220#[repr(C)]
1221pub struct ProgramHeader32<E: Endian> {
1222 pub p_type: U32<E>,
1224 pub p_offset: U32<E>,
1226 pub p_vaddr: U32<E>,
1228 pub p_paddr: U32<E>,
1230 pub p_filesz: U32<E>,
1232 pub p_memsz: U32<E>,
1234 pub p_flags: U32<E>,
1236 pub p_align: U32<E>,
1238}
1239
1240#[derive(Debug, Clone, Copy)]
1242#[repr(C)]
1243pub struct ProgramHeader64<E: Endian> {
1244 pub p_type: U32<E>,
1246 pub p_flags: U32<E>,
1248 pub p_offset: U64<E>,
1250 pub p_vaddr: U64<E>,
1252 pub p_paddr: U64<E>,
1254 pub p_filesz: U64<E>,
1256 pub p_memsz: U64<E>,
1258 pub p_align: U64<E>,
1260}
1261
1262pub const PN_XNUM: u16 = 0xffff;
1267
1268pub const PT_NULL: u32 = 0;
1271pub const PT_LOAD: u32 = 1;
1273pub const PT_DYNAMIC: u32 = 2;
1275pub const PT_INTERP: u32 = 3;
1277pub const PT_NOTE: u32 = 4;
1279pub const PT_SHLIB: u32 = 5;
1281pub const PT_PHDR: u32 = 6;
1283pub const PT_TLS: u32 = 7;
1285pub const PT_LOOS: u32 = 0x6000_0000;
1287pub const PT_GNU_EH_FRAME: u32 = 0x6474_e550;
1289pub const PT_GNU_STACK: u32 = 0x6474_e551;
1291pub const PT_GNU_RELRO: u32 = 0x6474_e552;
1293pub const PT_GNU_PROPERTY: u32 = 0x6474_e553;
1295pub const PT_HIOS: u32 = 0x6fff_ffff;
1297pub const PT_LOPROC: u32 = 0x7000_0000;
1299pub const PT_HIPROC: u32 = 0x7fff_ffff;
1301
1302pub const PF_X: u32 = 1 << 0;
1305pub const PF_W: u32 = 1 << 1;
1307pub const PF_R: u32 = 1 << 2;
1309pub const PF_MASKOS: u32 = 0x0ff0_0000;
1311pub const PF_MASKPROC: u32 = 0xf000_0000;
1313
1314pub const ELF_NOTE_CORE: &[u8] = b"CORE";
1316pub const ELF_NOTE_LINUX: &[u8] = b"LINUX";
1320
1321pub const NT_PRSTATUS: u32 = 1;
1325pub const NT_PRFPREG: u32 = 2;
1327pub const NT_FPREGSET: u32 = 2;
1329pub const NT_PRPSINFO: u32 = 3;
1331pub const NT_PRXREG: u32 = 4;
1333pub const NT_TASKSTRUCT: u32 = 4;
1335pub const NT_PLATFORM: u32 = 5;
1337pub const NT_AUXV: u32 = 6;
1339pub const NT_GWINDOWS: u32 = 7;
1341pub const NT_ASRS: u32 = 8;
1343pub const NT_PSTATUS: u32 = 10;
1345pub const NT_PSINFO: u32 = 13;
1347pub const NT_PRCRED: u32 = 14;
1349pub const NT_UTSNAME: u32 = 15;
1351pub const NT_LWPSTATUS: u32 = 16;
1353pub const NT_LWPSINFO: u32 = 17;
1355pub const NT_PRFPXREG: u32 = 20;
1357pub const NT_SIGINFO: u32 = 0x5349_4749;
1359pub const NT_FILE: u32 = 0x4649_4c45;
1361pub const NT_PRXFPREG: u32 = 0x46e6_2b7f;
1363pub const NT_PPC_VMX: u32 = 0x100;
1365pub const NT_PPC_SPE: u32 = 0x101;
1367pub const NT_PPC_VSX: u32 = 0x102;
1369pub const NT_PPC_TAR: u32 = 0x103;
1371pub const NT_PPC_PPR: u32 = 0x104;
1373pub const NT_PPC_DSCR: u32 = 0x105;
1375pub const NT_PPC_EBB: u32 = 0x106;
1377pub const NT_PPC_PMU: u32 = 0x107;
1379pub const NT_PPC_TM_CGPR: u32 = 0x108;
1381pub const NT_PPC_TM_CFPR: u32 = 0x109;
1383pub const NT_PPC_TM_CVMX: u32 = 0x10a;
1385pub const NT_PPC_TM_CVSX: u32 = 0x10b;
1387pub const NT_PPC_TM_SPR: u32 = 0x10c;
1389pub const NT_PPC_TM_CTAR: u32 = 0x10d;
1391pub const NT_PPC_TM_CPPR: u32 = 0x10e;
1393pub const NT_PPC_TM_CDSCR: u32 = 0x10f;
1395pub const NT_PPC_PKEY: u32 = 0x110;
1397pub const NT_386_TLS: u32 = 0x200;
1399pub const NT_386_IOPERM: u32 = 0x201;
1401pub const NT_X86_XSTATE: u32 = 0x202;
1403pub const NT_S390_HIGH_GPRS: u32 = 0x300;
1405pub const NT_S390_TIMER: u32 = 0x301;
1407pub const NT_S390_TODCMP: u32 = 0x302;
1409pub const NT_S390_TODPREG: u32 = 0x303;
1411pub const NT_S390_CTRS: u32 = 0x304;
1413pub const NT_S390_PREFIX: u32 = 0x305;
1415pub const NT_S390_LAST_BREAK: u32 = 0x306;
1417pub const NT_S390_SYSTEM_CALL: u32 = 0x307;
1419pub const NT_S390_TDB: u32 = 0x308;
1421pub const NT_S390_VXRS_LOW: u32 = 0x309;
1423pub const NT_S390_VXRS_HIGH: u32 = 0x30a;
1425pub const NT_S390_GS_CB: u32 = 0x30b;
1427pub const NT_S390_GS_BC: u32 = 0x30c;
1429pub const NT_S390_RI_CB: u32 = 0x30d;
1431pub const NT_ARM_VFP: u32 = 0x400;
1433pub const NT_ARM_TLS: u32 = 0x401;
1435pub const NT_ARM_HW_BREAK: u32 = 0x402;
1437pub const NT_ARM_HW_WATCH: u32 = 0x403;
1439pub const NT_ARM_SYSTEM_CALL: u32 = 0x404;
1441pub const NT_ARM_SVE: u32 = 0x405;
1443pub const NT_VMCOREDD: u32 = 0x700;
1445pub const NT_MIPS_DSP: u32 = 0x800;
1447pub const NT_MIPS_FP_MODE: u32 = 0x801;
1449
1450pub const NT_VERSION: u32 = 1;
1457
1458#[derive(Debug, Clone, Copy)]
1460#[repr(C)]
1461pub struct Dyn32<E: Endian> {
1462 pub d_tag: U32<E>,
1464 pub d_val: U32<E>,
1466}
1467
1468#[derive(Debug, Clone, Copy)]
1470#[repr(C)]
1471pub struct Dyn64<E: Endian> {
1472 pub d_tag: U64<E>,
1474 pub d_val: U64<E>,
1476}
1477
1478pub const DT_NULL: u32 = 0;
1482pub const DT_NEEDED: u32 = 1;
1484pub const DT_PLTRELSZ: u32 = 2;
1486pub const DT_PLTGOT: u32 = 3;
1488pub const DT_HASH: u32 = 4;
1490pub const DT_STRTAB: u32 = 5;
1492pub const DT_SYMTAB: u32 = 6;
1494pub const DT_RELA: u32 = 7;
1496pub const DT_RELASZ: u32 = 8;
1498pub const DT_RELAENT: u32 = 9;
1500pub const DT_STRSZ: u32 = 10;
1502pub const DT_SYMENT: u32 = 11;
1504pub const DT_INIT: u32 = 12;
1506pub const DT_FINI: u32 = 13;
1508pub const DT_SONAME: u32 = 14;
1510pub const DT_RPATH: u32 = 15;
1512pub const DT_SYMBOLIC: u32 = 16;
1514pub const DT_REL: u32 = 17;
1516pub const DT_RELSZ: u32 = 18;
1518pub const DT_RELENT: u32 = 19;
1520pub const DT_PLTREL: u32 = 20;
1522pub const DT_DEBUG: u32 = 21;
1524pub const DT_TEXTREL: u32 = 22;
1526pub const DT_JMPREL: u32 = 23;
1528pub const DT_BIND_NOW: u32 = 24;
1530pub const DT_INIT_ARRAY: u32 = 25;
1532pub const DT_FINI_ARRAY: u32 = 26;
1534pub const DT_INIT_ARRAYSZ: u32 = 27;
1536pub const DT_FINI_ARRAYSZ: u32 = 28;
1538pub const DT_RUNPATH: u32 = 29;
1540pub const DT_FLAGS: u32 = 30;
1542pub const DT_ENCODING: u32 = 32;
1544pub const DT_PREINIT_ARRAY: u32 = 32;
1546pub const DT_PREINIT_ARRAYSZ: u32 = 33;
1548pub const DT_SYMTAB_SHNDX: u32 = 34;
1550pub const DT_LOOS: u32 = 0x6000_000d;
1552pub const DT_HIOS: u32 = 0x6fff_f000;
1554pub const DT_LOPROC: u32 = 0x7000_0000;
1556pub const DT_HIPROC: u32 = 0x7fff_ffff;
1558
1559pub const DT_VALRNGLO: u32 = 0x6fff_fd00;
1561pub const DT_GNU_PRELINKED: u32 = 0x6fff_fdf5;
1563pub const DT_GNU_CONFLICTSZ: u32 = 0x6fff_fdf6;
1565pub const DT_GNU_LIBLISTSZ: u32 = 0x6fff_fdf7;
1567pub const DT_CHECKSUM: u32 = 0x6fff_fdf8;
1568pub const DT_PLTPADSZ: u32 = 0x6fff_fdf9;
1569pub const DT_MOVEENT: u32 = 0x6fff_fdfa;
1570pub const DT_MOVESZ: u32 = 0x6fff_fdfb;
1571pub const DT_FEATURE_1: u32 = 0x6fff_fdfc;
1573pub const DT_POSFLAG_1: u32 = 0x6fff_fdfd;
1575pub const DT_SYMINSZ: u32 = 0x6fff_fdfe;
1577pub const DT_SYMINENT: u32 = 0x6fff_fdff;
1579pub const DT_VALRNGHI: u32 = 0x6fff_fdff;
1580
1581pub const DT_ADDRRNGLO: u32 = 0x6fff_fe00;
1586pub const DT_GNU_HASH: u32 = 0x6fff_fef5;
1588pub const DT_TLSDESC_PLT: u32 = 0x6fff_fef6;
1589pub const DT_TLSDESC_GOT: u32 = 0x6fff_fef7;
1590pub const DT_GNU_CONFLICT: u32 = 0x6fff_fef8;
1592pub const DT_GNU_LIBLIST: u32 = 0x6fff_fef9;
1594pub const DT_CONFIG: u32 = 0x6fff_fefa;
1596pub const DT_DEPAUDIT: u32 = 0x6fff_fefb;
1598pub const DT_AUDIT: u32 = 0x6fff_fefc;
1600pub const DT_PLTPAD: u32 = 0x6fff_fefd;
1602pub const DT_MOVETAB: u32 = 0x6fff_fefe;
1604pub const DT_SYMINFO: u32 = 0x6fff_feff;
1606pub const DT_ADDRRNGHI: u32 = 0x6fff_feff;
1607
1608pub const DT_VERSYM: u32 = 0x6fff_fff0;
1611pub const DT_RELACOUNT: u32 = 0x6fff_fff9;
1612pub const DT_RELCOUNT: u32 = 0x6fff_fffa;
1613pub const DT_FLAGS_1: u32 = 0x6fff_fffb;
1615pub const DT_VERDEF: u32 = 0x6fff_fffc;
1617pub const DT_VERDEFNUM: u32 = 0x6fff_fffd;
1619pub const DT_VERNEED: u32 = 0x6fff_fffe;
1621pub const DT_VERNEEDNUM: u32 = 0x6fff_ffff;
1623
1624pub const DT_AUXILIARY: u32 = 0x7fff_fffd;
1627pub const DT_FILTER: u32 = 0x7fff_ffff;
1629
1630pub const DF_ORIGIN: u32 = 0x0000_0001;
1633pub const DF_SYMBOLIC: u32 = 0x0000_0002;
1635pub const DF_TEXTREL: u32 = 0x0000_0004;
1637pub const DF_BIND_NOW: u32 = 0x0000_0008;
1639pub const DF_STATIC_TLS: u32 = 0x0000_0010;
1641
1642pub const DF_1_NOW: u32 = 0x0000_0001;
1645pub const DF_1_GLOBAL: u32 = 0x0000_0002;
1647pub const DF_1_GROUP: u32 = 0x0000_0004;
1649pub const DF_1_NODELETE: u32 = 0x0000_0008;
1651pub const DF_1_LOADFLTR: u32 = 0x0000_0010;
1653pub const DF_1_INITFIRST: u32 = 0x0000_0020;
1655pub const DF_1_NOOPEN: u32 = 0x0000_0040;
1657pub const DF_1_ORIGIN: u32 = 0x0000_0080;
1659pub const DF_1_DIRECT: u32 = 0x0000_0100;
1661pub const DF_1_TRANS: u32 = 0x0000_0200;
1662pub const DF_1_INTERPOSE: u32 = 0x0000_0400;
1664pub const DF_1_NODEFLIB: u32 = 0x0000_0800;
1666pub const DF_1_NODUMP: u32 = 0x0000_1000;
1668pub const DF_1_CONFALT: u32 = 0x0000_2000;
1670pub const DF_1_ENDFILTEE: u32 = 0x0000_4000;
1672pub const DF_1_DISPRELDNE: u32 = 0x0000_8000;
1674pub const DF_1_DISPRELPND: u32 = 0x0001_0000;
1676pub const DF_1_NODIRECT: u32 = 0x0002_0000;
1678pub const DF_1_IGNMULDEF: u32 = 0x0004_0000;
1679pub const DF_1_NOKSYMS: u32 = 0x0008_0000;
1680pub const DF_1_NOHDR: u32 = 0x0010_0000;
1681pub const DF_1_EDITED: u32 = 0x0020_0000;
1683pub const DF_1_NORELOC: u32 = 0x0040_0000;
1684pub const DF_1_SYMINTPOSE: u32 = 0x0080_0000;
1686pub const DF_1_GLOBAUDIT: u32 = 0x0100_0000;
1688pub const DF_1_SINGLETON: u32 = 0x0200_0000;
1690pub const DF_1_STUB: u32 = 0x0400_0000;
1691pub const DF_1_PIE: u32 = 0x0800_0000;
1692
1693#[derive(Debug, Clone, Copy)]
1695#[repr(C)]
1696pub struct Versym<E: Endian>(pub U16<E>);
1697
1698pub const VERSYM_HIDDEN: u16 = 0x8000;
1700pub const VERSYM_VERSION: u16 = 0x7fff;
1702
1703#[derive(Debug, Clone, Copy)]
1705#[repr(C)]
1706pub struct Verdef<E: Endian> {
1707 pub vd_version: U16<E>,
1709 pub vd_flags: U16<E>,
1711 pub vd_ndx: U16<E>,
1713 pub vd_cnt: U16<E>,
1715 pub vd_hash: U32<E>,
1717 pub vd_aux: U32<E>,
1719 pub vd_next: U32<E>,
1721}
1722
1723pub const VER_DEF_NONE: u16 = 0;
1726pub const VER_DEF_CURRENT: u16 = 1;
1728
1729pub const VER_FLG_BASE: u16 = 0x1;
1732pub const VER_FLG_WEAK: u16 = 0x2;
1735
1736pub const VER_NDX_LOCAL: u16 = 0;
1739pub const VER_NDX_GLOBAL: u16 = 1;
1741
1742#[derive(Debug, Clone, Copy)]
1744#[repr(C)]
1745pub struct Verdaux<E: Endian> {
1746 pub vda_name: U32<E>,
1748 pub vda_next: U32<E>,
1750}
1751
1752#[derive(Debug, Clone, Copy)]
1754#[repr(C)]
1755pub struct Verneed<E: Endian> {
1756 pub vn_version: U16<E>,
1758 pub vn_cnt: U16<E>,
1760 pub vn_file: U32<E>,
1762 pub vn_aux: U32<E>,
1764 pub vn_next: U32<E>,
1766}
1767
1768pub const VER_NEED_NONE: u16 = 0;
1771pub const VER_NEED_CURRENT: u16 = 1;
1773
1774#[derive(Debug, Clone, Copy)]
1776#[repr(C)]
1777pub struct Vernaux<E: Endian> {
1778 pub vna_hash: U32<E>,
1780 pub vna_flags: U16<E>,
1782 pub vna_other: U16<E>,
1784 pub vna_name: U32<E>,
1786 pub vna_next: U32<E>,
1788}
1789
1790#[derive(Debug, Clone, Copy)]
1796#[repr(C)]
1797pub struct NoteHeader32<E: Endian> {
1798 pub n_namesz: U32<E>,
1802 pub n_descsz: U32<E>,
1806 pub n_type: U32<E>,
1811}
1812
1813#[derive(Debug, Clone, Copy)]
1815#[repr(C)]
1816pub struct NoteHeader64<E: Endian> {
1817 pub n_namesz: U32<E>,
1821 pub n_descsz: U32<E>,
1825 pub n_type: U32<E>,
1830}
1831
1832pub const ELF_NOTE_SOLARIS: &[u8] = b"SUNW Solaris";
1834
1835pub const NT_SOLARIS_PAGESIZE_HINT: u32 = 1;
1838
1839pub const ELF_NOTE_GNU: &[u8] = b"GNU";
1841
1842pub const ELF_NOTE_GO: &[u8] = b"Go";
1845
1846pub const NT_GNU_ABI_TAG: u32 = 1;
1856
1857pub const ELF_NOTE_OS_LINUX: u32 = 0;
1859pub const ELF_NOTE_OS_GNU: u32 = 1;
1861pub const ELF_NOTE_OS_SOLARIS2: u32 = 2;
1863pub const ELF_NOTE_OS_FREEBSD: u32 = 3;
1865
1866pub const NT_GNU_HWCAP: u32 = 2;
1876
1877pub const NT_GNU_BUILD_ID: u32 = 3;
1881
1882pub const NT_GO_BUILD_ID: u32 = 4;
1887
1888pub const NT_GNU_GOLD_VERSION: u32 = 4;
1890
1891pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5;
1893
1894pub const GNU_PROPERTY_STACK_SIZE: u32 = 1;
1898pub const GNU_PROPERTY_NO_COPY_ON_PROTECTED: u32 = 2;
1900
1901pub const GNU_PROPERTY_UINT32_AND_LO: u32 = 0xb0000000;
1904pub const GNU_PROPERTY_UINT32_AND_HI: u32 = 0xb0007fff;
1905
1906pub const GNU_PROPERTY_UINT32_OR_LO: u32 = 0xb0008000;
1909pub const GNU_PROPERTY_UINT32_OR_HI: u32 = 0xb000ffff;
1910
1911pub const GNU_PROPERTY_1_NEEDED: u32 = GNU_PROPERTY_UINT32_OR_LO;
1913
1914pub const GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS: u32 = 1 << 0;
1917
1918pub const GNU_PROPERTY_LOPROC: u32 = 0xc0000000;
1920pub const GNU_PROPERTY_HIPROC: u32 = 0xdfffffff;
1922pub const GNU_PROPERTY_LOUSER: u32 = 0xe0000000;
1924pub const GNU_PROPERTY_HIUSER: u32 = 0xffffffff;
1926
1927pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 0xc0000000;
1929pub const GNU_PROPERTY_AARCH64_FEATURE_PAUTH: u32 = 0xc0000001;
1930
1931pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1 << 0;
1932pub const GNU_PROPERTY_AARCH64_FEATURE_1_PAC: u32 = 1 << 1;
1933
1934pub const GNU_PROPERTY_X86_UINT32_AND_LO: u32 = 0xc0000002;
1937pub const GNU_PROPERTY_X86_UINT32_AND_HI: u32 = 0xc0007fff;
1938
1939pub const GNU_PROPERTY_X86_UINT32_OR_LO: u32 = 0xc0008000;
1942pub const GNU_PROPERTY_X86_UINT32_OR_HI: u32 = 0xc000ffff;
1943
1944pub const GNU_PROPERTY_X86_UINT32_OR_AND_LO: u32 = 0xc0010000;
1948pub const GNU_PROPERTY_X86_UINT32_OR_AND_HI: u32 = 0xc0017fff;
1949
1950pub const GNU_PROPERTY_X86_ISA_1_USED: u32 = 0xc0010002;
1953pub const GNU_PROPERTY_X86_ISA_1_NEEDED: u32 = 0xc0008002;
1956pub const GNU_PROPERTY_X86_FEATURE_1_AND: u32 = 0xc0000002;
1958
1959pub const GNU_PROPERTY_X86_ISA_1_BASELINE: u32 = 1 << 0;
1962pub const GNU_PROPERTY_X86_ISA_1_V2: u32 = 1 << 1;
1966pub const GNU_PROPERTY_X86_ISA_1_V3: u32 = 1 << 2;
1969pub const GNU_PROPERTY_X86_ISA_1_V4: u32 = 1 << 3;
1972
1973pub const GNU_PROPERTY_X86_FEATURE_1_IBT: u32 = 1 << 0;
1975pub const GNU_PROPERTY_X86_FEATURE_1_SHSTK: u32 = 1 << 1;
1977
1978#[derive(Debug, Clone, Copy)]
1982#[repr(C)]
1983pub struct HashHeader<E: Endian> {
1984 pub bucket_count: U32<E>,
1986 pub chain_count: U32<E>,
1988 }
1993
1994pub fn hash(name: &[u8]) -> u32 {
1998 let mut hash = 0u32;
1999 for byte in name {
2000 hash = hash.wrapping_mul(16).wrapping_add(u32::from(*byte));
2001 hash ^= (hash >> 24) & 0xf0;
2002 }
2003 hash & 0xfff_ffff
2004}
2005
2006#[derive(Debug, Clone, Copy)]
2008#[repr(C)]
2009pub struct GnuHashHeader<E: Endian> {
2010 pub bucket_count: U32<E>,
2012 pub symbol_base: U32<E>,
2014 pub bloom_count: U32<E>,
2018 pub bloom_shift: U32<E>,
2020 }
2027
2028pub fn gnu_hash(name: &[u8]) -> u32 {
2032 let mut hash = 5381u32;
2033 for byte in name {
2034 hash = hash.wrapping_mul(33).wrapping_add(u32::from(*byte));
2035 }
2036 hash
2037}
2038
2039pub const R_68K_NONE: u32 = 0;
2045pub const R_68K_32: u32 = 1;
2047pub const R_68K_16: u32 = 2;
2049pub const R_68K_8: u32 = 3;
2051pub const R_68K_PC32: u32 = 4;
2053pub const R_68K_PC16: u32 = 5;
2055pub const R_68K_PC8: u32 = 6;
2057pub const R_68K_GOT32: u32 = 7;
2059pub const R_68K_GOT16: u32 = 8;
2061pub const R_68K_GOT8: u32 = 9;
2063pub const R_68K_GOT32O: u32 = 10;
2065pub const R_68K_GOT16O: u32 = 11;
2067pub const R_68K_GOT8O: u32 = 12;
2069pub const R_68K_PLT32: u32 = 13;
2071pub const R_68K_PLT16: u32 = 14;
2073pub const R_68K_PLT8: u32 = 15;
2075pub const R_68K_PLT32O: u32 = 16;
2077pub const R_68K_PLT16O: u32 = 17;
2079pub const R_68K_PLT8O: u32 = 18;
2081pub const R_68K_COPY: u32 = 19;
2083pub const R_68K_GLOB_DAT: u32 = 20;
2085pub const R_68K_JMP_SLOT: u32 = 21;
2087pub const R_68K_RELATIVE: u32 = 22;
2089pub const R_68K_TLS_GD32: u32 = 25;
2091pub const R_68K_TLS_GD16: u32 = 26;
2093pub const R_68K_TLS_GD8: u32 = 27;
2095pub const R_68K_TLS_LDM32: u32 = 28;
2097pub const R_68K_TLS_LDM16: u32 = 29;
2099pub const R_68K_TLS_LDM8: u32 = 30;
2101pub const R_68K_TLS_LDO32: u32 = 31;
2103pub const R_68K_TLS_LDO16: u32 = 32;
2105pub const R_68K_TLS_LDO8: u32 = 33;
2107pub const R_68K_TLS_IE32: u32 = 34;
2109pub const R_68K_TLS_IE16: u32 = 35;
2111pub const R_68K_TLS_IE8: u32 = 36;
2113pub const R_68K_TLS_LE32: u32 = 37;
2115pub const R_68K_TLS_LE16: u32 = 38;
2117pub const R_68K_TLS_LE8: u32 = 39;
2119pub const R_68K_TLS_DTPMOD32: u32 = 40;
2121pub const R_68K_TLS_DTPREL32: u32 = 41;
2123pub const R_68K_TLS_TPREL32: u32 = 42;
2125
2126pub const R_386_NONE: u32 = 0;
2132pub const R_386_32: u32 = 1;
2134pub const R_386_PC32: u32 = 2;
2136pub const R_386_GOT32: u32 = 3;
2138pub const R_386_PLT32: u32 = 4;
2140pub const R_386_COPY: u32 = 5;
2142pub const R_386_GLOB_DAT: u32 = 6;
2144pub const R_386_JMP_SLOT: u32 = 7;
2146pub const R_386_RELATIVE: u32 = 8;
2148pub const R_386_GOTOFF: u32 = 9;
2150pub const R_386_GOTPC: u32 = 10;
2152pub const R_386_32PLT: u32 = 11;
2154pub const R_386_TLS_TPOFF: u32 = 14;
2156pub const R_386_TLS_IE: u32 = 15;
2158pub const R_386_TLS_GOTIE: u32 = 16;
2160pub const R_386_TLS_LE: u32 = 17;
2162pub const R_386_TLS_GD: u32 = 18;
2164pub const R_386_TLS_LDM: u32 = 19;
2166pub const R_386_16: u32 = 20;
2168pub const R_386_PC16: u32 = 21;
2170pub const R_386_8: u32 = 22;
2172pub const R_386_PC8: u32 = 23;
2174pub const R_386_TLS_GD_32: u32 = 24;
2176pub const R_386_TLS_GD_PUSH: u32 = 25;
2178pub const R_386_TLS_GD_CALL: u32 = 26;
2180pub const R_386_TLS_GD_POP: u32 = 27;
2182pub const R_386_TLS_LDM_32: u32 = 28;
2184pub const R_386_TLS_LDM_PUSH: u32 = 29;
2186pub const R_386_TLS_LDM_CALL: u32 = 30;
2188pub const R_386_TLS_LDM_POP: u32 = 31;
2190pub const R_386_TLS_LDO_32: u32 = 32;
2192pub const R_386_TLS_IE_32: u32 = 33;
2194pub const R_386_TLS_LE_32: u32 = 34;
2196pub const R_386_TLS_DTPMOD32: u32 = 35;
2198pub const R_386_TLS_DTPOFF32: u32 = 36;
2200pub const R_386_TLS_TPOFF32: u32 = 37;
2202pub const R_386_SIZE32: u32 = 38;
2204pub const R_386_TLS_GOTDESC: u32 = 39;
2206pub const R_386_TLS_DESC_CALL: u32 = 40;
2208pub const R_386_TLS_DESC: u32 = 41;
2210pub const R_386_IRELATIVE: u32 = 42;
2212pub const R_386_GOT32X: u32 = 43;
2214
2215pub const R_SHARC_ADDR24_V3: u32 = 0x0b;
2225
2226pub const R_SHARC_ADDR32_V3: u32 = 0x0c;
2238
2239pub const R_SHARC_ADDR_VAR_V3: u32 = 0x0d;
2243
2244pub const R_SHARC_PCRSHORT_V3: u32 = 0x0e;
2251
2252pub const R_SHARC_PCRLONG_V3: u32 = 0x0f;
2261
2262pub const R_SHARC_DATA6_V3: u32 = 0x10;
2270
2271pub const R_SHARC_DATA16_V3: u32 = 0x11;
2277
2278pub const R_SHARC_DATA6_VISA_V3: u32 = 0x12;
2284
2285pub const R_SHARC_DATA7_VISA_V3: u32 = 0x13;
2287
2288pub const R_SHARC_DATA16_VISA_V3: u32 = 0x14;
2290
2291pub const R_SHARC_PCR6_VISA_V3: u32 = 0x17;
2297
2298pub const R_SHARC_ADDR_VAR16_V3: u32 = 0x19;
2302
2303pub const R_SHARC_CALC_PUSH_ADDR: u32 = 0xe0;
2304pub const R_SHARC_CALC_PUSH_ADDEND: u32 = 0xe1;
2305pub const R_SHARC_CALC_ADD: u32 = 0xe2;
2306pub const R_SHARC_CALC_SUB: u32 = 0xe3;
2307pub const R_SHARC_CALC_MUL: u32 = 0xe4;
2308pub const R_SHARC_CALC_DIV: u32 = 0xe5;
2309pub const R_SHARC_CALC_MOD: u32 = 0xe6;
2310pub const R_SHARC_CALC_LSHIFT: u32 = 0xe7;
2311pub const R_SHARC_CALC_RSHIFT: u32 = 0xe8;
2312pub const R_SHARC_CALC_AND: u32 = 0xe9;
2313pub const R_SHARC_CALC_OR: u32 = 0xea;
2314pub const R_SHARC_CALC_XOR: u32 = 0xeb;
2315pub const R_SHARC_CALC_PUSH_LEN: u32 = 0xec;
2316pub const R_SHARC_CALC_NOT: u32 = 0xf6;
2317
2318pub const SHT_SHARC_ADI_ATTRIBUTES: u32 = SHT_LOPROC + 0x2;
2322
2323pub const STT_SPARC_REGISTER: u8 = 13;
2329
2330pub const EF_SPARCV9_MM: u32 = 3;
2333pub const EF_SPARCV9_TSO: u32 = 0;
2334pub const EF_SPARCV9_PSO: u32 = 1;
2335pub const EF_SPARCV9_RMO: u32 = 2;
2336pub const EF_SPARC_LEDATA: u32 = 0x80_0000;
2338pub const EF_SPARC_EXT_MASK: u32 = 0xFF_FF00;
2339pub const EF_SPARC_32PLUS: u32 = 0x00_0100;
2341pub const EF_SPARC_SUN_US1: u32 = 0x00_0200;
2343pub const EF_SPARC_HAL_R1: u32 = 0x00_0400;
2345pub const EF_SPARC_SUN_US3: u32 = 0x00_0800;
2347
2348pub const R_SPARC_NONE: u32 = 0;
2352pub const R_SPARC_8: u32 = 1;
2354pub const R_SPARC_16: u32 = 2;
2356pub const R_SPARC_32: u32 = 3;
2358pub const R_SPARC_DISP8: u32 = 4;
2360pub const R_SPARC_DISP16: u32 = 5;
2362pub const R_SPARC_DISP32: u32 = 6;
2364pub const R_SPARC_WDISP30: u32 = 7;
2366pub const R_SPARC_WDISP22: u32 = 8;
2368pub const R_SPARC_HI22: u32 = 9;
2370pub const R_SPARC_22: u32 = 10;
2372pub const R_SPARC_13: u32 = 11;
2374pub const R_SPARC_LO10: u32 = 12;
2376pub const R_SPARC_GOT10: u32 = 13;
2378pub const R_SPARC_GOT13: u32 = 14;
2380pub const R_SPARC_GOT22: u32 = 15;
2382pub const R_SPARC_PC10: u32 = 16;
2384pub const R_SPARC_PC22: u32 = 17;
2386pub const R_SPARC_WPLT30: u32 = 18;
2388pub const R_SPARC_COPY: u32 = 19;
2390pub const R_SPARC_GLOB_DAT: u32 = 20;
2392pub const R_SPARC_JMP_SLOT: u32 = 21;
2394pub const R_SPARC_RELATIVE: u32 = 22;
2396pub const R_SPARC_UA32: u32 = 23;
2398
2399pub const R_SPARC_PLT32: u32 = 24;
2403pub const R_SPARC_HIPLT22: u32 = 25;
2405pub const R_SPARC_LOPLT10: u32 = 26;
2407pub const R_SPARC_PCPLT32: u32 = 27;
2409pub const R_SPARC_PCPLT22: u32 = 28;
2411pub const R_SPARC_PCPLT10: u32 = 29;
2413pub const R_SPARC_10: u32 = 30;
2415pub const R_SPARC_11: u32 = 31;
2417pub const R_SPARC_64: u32 = 32;
2419pub const R_SPARC_OLO10: u32 = 33;
2421pub const R_SPARC_HH22: u32 = 34;
2423pub const R_SPARC_HM10: u32 = 35;
2425pub const R_SPARC_LM22: u32 = 36;
2427pub const R_SPARC_PC_HH22: u32 = 37;
2429pub const R_SPARC_PC_HM10: u32 = 38;
2431pub const R_SPARC_PC_LM22: u32 = 39;
2433pub const R_SPARC_WDISP16: u32 = 40;
2435pub const R_SPARC_WDISP19: u32 = 41;
2437pub const R_SPARC_GLOB_JMP: u32 = 42;
2439pub const R_SPARC_7: u32 = 43;
2441pub const R_SPARC_5: u32 = 44;
2443pub const R_SPARC_6: u32 = 45;
2445pub const R_SPARC_DISP64: u32 = 46;
2447pub const R_SPARC_PLT64: u32 = 47;
2449pub const R_SPARC_HIX22: u32 = 48;
2451pub const R_SPARC_LOX10: u32 = 49;
2453pub const R_SPARC_H44: u32 = 50;
2455pub const R_SPARC_M44: u32 = 51;
2457pub const R_SPARC_L44: u32 = 52;
2459pub const R_SPARC_REGISTER: u32 = 53;
2461pub const R_SPARC_UA64: u32 = 54;
2463pub const R_SPARC_UA16: u32 = 55;
2465pub const R_SPARC_TLS_GD_HI22: u32 = 56;
2466pub const R_SPARC_TLS_GD_LO10: u32 = 57;
2467pub const R_SPARC_TLS_GD_ADD: u32 = 58;
2468pub const R_SPARC_TLS_GD_CALL: u32 = 59;
2469pub const R_SPARC_TLS_LDM_HI22: u32 = 60;
2470pub const R_SPARC_TLS_LDM_LO10: u32 = 61;
2471pub const R_SPARC_TLS_LDM_ADD: u32 = 62;
2472pub const R_SPARC_TLS_LDM_CALL: u32 = 63;
2473pub const R_SPARC_TLS_LDO_HIX22: u32 = 64;
2474pub const R_SPARC_TLS_LDO_LOX10: u32 = 65;
2475pub const R_SPARC_TLS_LDO_ADD: u32 = 66;
2476pub const R_SPARC_TLS_IE_HI22: u32 = 67;
2477pub const R_SPARC_TLS_IE_LO10: u32 = 68;
2478pub const R_SPARC_TLS_IE_LD: u32 = 69;
2479pub const R_SPARC_TLS_IE_LDX: u32 = 70;
2480pub const R_SPARC_TLS_IE_ADD: u32 = 71;
2481pub const R_SPARC_TLS_LE_HIX22: u32 = 72;
2482pub const R_SPARC_TLS_LE_LOX10: u32 = 73;
2483pub const R_SPARC_TLS_DTPMOD32: u32 = 74;
2484pub const R_SPARC_TLS_DTPMOD64: u32 = 75;
2485pub const R_SPARC_TLS_DTPOFF32: u32 = 76;
2486pub const R_SPARC_TLS_DTPOFF64: u32 = 77;
2487pub const R_SPARC_TLS_TPOFF32: u32 = 78;
2488pub const R_SPARC_TLS_TPOFF64: u32 = 79;
2489pub const R_SPARC_GOTDATA_HIX22: u32 = 80;
2490pub const R_SPARC_GOTDATA_LOX10: u32 = 81;
2491pub const R_SPARC_GOTDATA_OP_HIX22: u32 = 82;
2492pub const R_SPARC_GOTDATA_OP_LOX10: u32 = 83;
2493pub const R_SPARC_GOTDATA_OP: u32 = 84;
2494pub const R_SPARC_H34: u32 = 85;
2495pub const R_SPARC_SIZE32: u32 = 86;
2496pub const R_SPARC_SIZE64: u32 = 87;
2497pub const R_SPARC_WDISP10: u32 = 88;
2498pub const R_SPARC_JMP_IREL: u32 = 248;
2499pub const R_SPARC_IRELATIVE: u32 = 249;
2500pub const R_SPARC_GNU_VTINHERIT: u32 = 250;
2501pub const R_SPARC_GNU_VTENTRY: u32 = 251;
2502pub const R_SPARC_REV32: u32 = 252;
2503
2504pub const DT_SPARC_REGISTER: u32 = 0x7000_0001;
2507
2508pub const EF_MIPS_NOREORDER: u32 = 1;
2514pub const EF_MIPS_PIC: u32 = 2;
2516pub const EF_MIPS_CPIC: u32 = 4;
2518pub const EF_MIPS_XGOT: u32 = 8;
2519pub const EF_MIPS_64BIT_WHIRL: u32 = 16;
2520pub const EF_MIPS_ABI2: u32 = 32;
2521pub const EF_MIPS_ABI_ON32: u32 = 64;
2522pub const EF_MIPS_FP64: u32 = 512;
2524pub const EF_MIPS_NAN2008: u32 = 1024;
2526pub const EF_MIPS_ARCH: u32 = 0xf000_0000;
2528
2529pub const EF_MIPS_ABI_O32: u32 = 0x0000_1000;
2531pub const EF_MIPS_ABI_O64: u32 = 0x0000_2000;
2533pub const EF_MIPS_ABI_EABI32: u32 = 0x0000_3000;
2535pub const EF_MIPS_ABI_EABI64: u32 = 0x0000_4000;
2537pub const EF_MIPS_ABI: u32 = 0x0000_f000;
2539
2540pub const EF_MIPS_ARCH_1: u32 = 0x0000_0000;
2544pub const EF_MIPS_ARCH_2: u32 = 0x1000_0000;
2546pub const EF_MIPS_ARCH_3: u32 = 0x2000_0000;
2548pub const EF_MIPS_ARCH_4: u32 = 0x3000_0000;
2550pub const EF_MIPS_ARCH_5: u32 = 0x4000_0000;
2552pub const EF_MIPS_ARCH_32: u32 = 0x5000_0000;
2554pub const EF_MIPS_ARCH_64: u32 = 0x6000_0000;
2556pub const EF_MIPS_ARCH_32R2: u32 = 0x7000_0000;
2558pub const EF_MIPS_ARCH_64R2: u32 = 0x8000_0000;
2560pub const EF_MIPS_ARCH_32R6: u32 = 0x9000_0000;
2562pub const EF_MIPS_ARCH_64R6: u32 = 0xa000_0000;
2564
2565pub const SHN_MIPS_ACOMMON: u16 = 0xff00;
2569pub const SHN_MIPS_TEXT: u16 = 0xff01;
2571pub const SHN_MIPS_DATA: u16 = 0xff02;
2573pub const SHN_MIPS_SCOMMON: u16 = 0xff03;
2575pub const SHN_MIPS_SUNDEFINED: u16 = 0xff04;
2577
2578pub const SHT_MIPS_LIBLIST: u32 = 0x7000_0000;
2582pub const SHT_MIPS_MSYM: u32 = 0x7000_0001;
2583pub const SHT_MIPS_CONFLICT: u32 = 0x7000_0002;
2585pub const SHT_MIPS_GPTAB: u32 = 0x7000_0003;
2587pub const SHT_MIPS_UCODE: u32 = 0x7000_0004;
2589pub const SHT_MIPS_DEBUG: u32 = 0x7000_0005;
2591pub const SHT_MIPS_REGINFO: u32 = 0x7000_0006;
2593pub const SHT_MIPS_PACKAGE: u32 = 0x7000_0007;
2594pub const SHT_MIPS_PACKSYM: u32 = 0x7000_0008;
2595pub const SHT_MIPS_RELD: u32 = 0x7000_0009;
2596pub const SHT_MIPS_IFACE: u32 = 0x7000_000b;
2597pub const SHT_MIPS_CONTENT: u32 = 0x7000_000c;
2598pub const SHT_MIPS_OPTIONS: u32 = 0x7000_000d;
2600pub const SHT_MIPS_SHDR: u32 = 0x7000_0010;
2601pub const SHT_MIPS_FDESC: u32 = 0x7000_0011;
2602pub const SHT_MIPS_EXTSYM: u32 = 0x7000_0012;
2603pub const SHT_MIPS_DENSE: u32 = 0x7000_0013;
2604pub const SHT_MIPS_PDESC: u32 = 0x7000_0014;
2605pub const SHT_MIPS_LOCSYM: u32 = 0x7000_0015;
2606pub const SHT_MIPS_AUXSYM: u32 = 0x7000_0016;
2607pub const SHT_MIPS_OPTSYM: u32 = 0x7000_0017;
2608pub const SHT_MIPS_LOCSTR: u32 = 0x7000_0018;
2609pub const SHT_MIPS_LINE: u32 = 0x7000_0019;
2610pub const SHT_MIPS_RFDESC: u32 = 0x7000_001a;
2611pub const SHT_MIPS_DELTASYM: u32 = 0x7000_001b;
2612pub const SHT_MIPS_DELTAINST: u32 = 0x7000_001c;
2613pub const SHT_MIPS_DELTACLASS: u32 = 0x7000_001d;
2614pub const SHT_MIPS_DWARF: u32 = 0x7000_001e;
2616pub const SHT_MIPS_DELTADECL: u32 = 0x7000_001f;
2617pub const SHT_MIPS_SYMBOL_LIB: u32 = 0x7000_0020;
2618pub const SHT_MIPS_EVENTS: u32 = 0x7000_0021;
2620pub const SHT_MIPS_TRANSLATE: u32 = 0x7000_0022;
2621pub const SHT_MIPS_PIXIE: u32 = 0x7000_0023;
2622pub const SHT_MIPS_XLATE: u32 = 0x7000_0024;
2623pub const SHT_MIPS_XLATE_DEBUG: u32 = 0x7000_0025;
2624pub const SHT_MIPS_WHIRL: u32 = 0x7000_0026;
2625pub const SHT_MIPS_EH_REGION: u32 = 0x7000_0027;
2626pub const SHT_MIPS_XLATE_OLD: u32 = 0x7000_0028;
2627pub const SHT_MIPS_PDR_EXCEPTION: u32 = 0x7000_0029;
2628
2629pub const SHF_MIPS_GPREL: u32 = 0x1000_0000;
2633pub const SHF_MIPS_MERGE: u32 = 0x2000_0000;
2634pub const SHF_MIPS_ADDR: u32 = 0x4000_0000;
2635pub const SHF_MIPS_STRINGS: u32 = 0x8000_0000;
2636pub const SHF_MIPS_NOSTRIP: u32 = 0x0800_0000;
2637pub const SHF_MIPS_LOCAL: u32 = 0x0400_0000;
2638pub const SHF_MIPS_NAMES: u32 = 0x0200_0000;
2639pub const SHF_MIPS_NODUPE: u32 = 0x0100_0000;
2640
2641pub const STO_MIPS_PLT: u8 = 0x8;
2644pub const STO_MIPS_SC_ALIGN_UNUSED: u8 = 0xff;
2646
2647pub const STB_MIPS_SPLIT_COMMON: u8 = 13;
2649
2650pub const ODK_NULL: u32 = 0;
2658pub const ODK_REGINFO: u32 = 1;
2660pub const ODK_EXCEPTIONS: u32 = 2;
2662pub const ODK_PAD: u32 = 3;
2664pub const ODK_HWPATCH: u32 = 4;
2666pub const ODK_FILL: u32 = 5;
2668pub const ODK_TAGS: u32 = 6;
2670pub const ODK_HWAND: u32 = 7;
2672pub const ODK_HWOR: u32 = 8;
2674
2675pub const OEX_FPU_MIN: u32 = 0x1f;
2679pub const OEX_FPU_MAX: u32 = 0x1f00;
2681pub const OEX_PAGE0: u32 = 0x10000;
2683pub const OEX_SMM: u32 = 0x20000;
2685pub const OEX_FPDBUG: u32 = 0x40000;
2687pub const OEX_PRECISEFP: u32 = OEX_FPDBUG;
2688pub const OEX_DISMISS: u32 = 0x80000;
2690
2691pub const OEX_FPU_INVAL: u32 = 0x10;
2692pub const OEX_FPU_DIV0: u32 = 0x08;
2693pub const OEX_FPU_OFLO: u32 = 0x04;
2694pub const OEX_FPU_UFLO: u32 = 0x02;
2695pub const OEX_FPU_INEX: u32 = 0x01;
2696
2697pub const OHW_R4KEOP: u32 = 0x1;
2700pub const OHW_R8KPFETCH: u32 = 0x2;
2702pub const OHW_R5KEOP: u32 = 0x4;
2704pub const OHW_R5KCVTL: u32 = 0x8;
2706
2707pub const OPAD_PREFIX: u32 = 0x1;
2708pub const OPAD_POSTFIX: u32 = 0x2;
2709pub const OPAD_SYMBOL: u32 = 0x4;
2710
2711pub const OHWA0_R4KEOP_CHECKED: u32 = 0x0000_0001;
2718pub const OHWA1_R4KEOP_CLEAN: u32 = 0x0000_0002;
2719
2720pub const R_MIPS_NONE: u32 = 0;
2724pub const R_MIPS_16: u32 = 1;
2726pub const R_MIPS_32: u32 = 2;
2728pub const R_MIPS_REL32: u32 = 3;
2730pub const R_MIPS_26: u32 = 4;
2732pub const R_MIPS_HI16: u32 = 5;
2734pub const R_MIPS_LO16: u32 = 6;
2736pub const R_MIPS_GPREL16: u32 = 7;
2738pub const R_MIPS_LITERAL: u32 = 8;
2740pub const R_MIPS_GOT16: u32 = 9;
2742pub const R_MIPS_PC16: u32 = 10;
2744pub const R_MIPS_CALL16: u32 = 11;
2746pub const R_MIPS_GPREL32: u32 = 12;
2748
2749pub const R_MIPS_SHIFT5: u32 = 16;
2750pub const R_MIPS_SHIFT6: u32 = 17;
2751pub const R_MIPS_64: u32 = 18;
2752pub const R_MIPS_GOT_DISP: u32 = 19;
2753pub const R_MIPS_GOT_PAGE: u32 = 20;
2754pub const R_MIPS_GOT_OFST: u32 = 21;
2755pub const R_MIPS_GOT_HI16: u32 = 22;
2756pub const R_MIPS_GOT_LO16: u32 = 23;
2757pub const R_MIPS_SUB: u32 = 24;
2758pub const R_MIPS_INSERT_A: u32 = 25;
2759pub const R_MIPS_INSERT_B: u32 = 26;
2760pub const R_MIPS_DELETE: u32 = 27;
2761pub const R_MIPS_HIGHER: u32 = 28;
2762pub const R_MIPS_HIGHEST: u32 = 29;
2763pub const R_MIPS_CALL_HI16: u32 = 30;
2764pub const R_MIPS_CALL_LO16: u32 = 31;
2765pub const R_MIPS_SCN_DISP: u32 = 32;
2766pub const R_MIPS_REL16: u32 = 33;
2767pub const R_MIPS_ADD_IMMEDIATE: u32 = 34;
2768pub const R_MIPS_PJUMP: u32 = 35;
2769pub const R_MIPS_RELGOT: u32 = 36;
2770pub const R_MIPS_JALR: u32 = 37;
2771pub const R_MIPS_TLS_DTPMOD32: u32 = 38;
2773pub const R_MIPS_TLS_DTPREL32: u32 = 39;
2775pub const R_MIPS_TLS_DTPMOD64: u32 = 40;
2777pub const R_MIPS_TLS_DTPREL64: u32 = 41;
2779pub const R_MIPS_TLS_GD: u32 = 42;
2781pub const R_MIPS_TLS_LDM: u32 = 43;
2783pub const R_MIPS_TLS_DTPREL_HI16: u32 = 44;
2785pub const R_MIPS_TLS_DTPREL_LO16: u32 = 45;
2787pub const R_MIPS_TLS_GOTTPREL: u32 = 46;
2789pub const R_MIPS_TLS_TPREL32: u32 = 47;
2791pub const R_MIPS_TLS_TPREL64: u32 = 48;
2793pub const R_MIPS_TLS_TPREL_HI16: u32 = 49;
2795pub const R_MIPS_TLS_TPREL_LO16: u32 = 50;
2797pub const R_MIPS_GLOB_DAT: u32 = 51;
2798pub const R_MIPS_COPY: u32 = 126;
2799pub const R_MIPS_JUMP_SLOT: u32 = 127;
2800
2801pub const PT_MIPS_REGINFO: u32 = 0x7000_0000;
2805pub const PT_MIPS_RTPROC: u32 = 0x7000_0001;
2807pub const PT_MIPS_OPTIONS: u32 = 0x7000_0002;
2808pub const PT_MIPS_ABIFLAGS: u32 = 0x7000_0003;
2810
2811pub const PF_MIPS_LOCAL: u32 = 0x1000_0000;
2814
2815pub const DT_MIPS_RLD_VERSION: u32 = 0x7000_0001;
2819pub const DT_MIPS_TIME_STAMP: u32 = 0x7000_0002;
2821pub const DT_MIPS_ICHECKSUM: u32 = 0x7000_0003;
2823pub const DT_MIPS_IVERSION: u32 = 0x7000_0004;
2825pub const DT_MIPS_FLAGS: u32 = 0x7000_0005;
2827pub const DT_MIPS_BASE_ADDRESS: u32 = 0x7000_0006;
2829pub const DT_MIPS_MSYM: u32 = 0x7000_0007;
2830pub const DT_MIPS_CONFLICT: u32 = 0x7000_0008;
2832pub const DT_MIPS_LIBLIST: u32 = 0x7000_0009;
2834pub const DT_MIPS_LOCAL_GOTNO: u32 = 0x7000_000a;
2836pub const DT_MIPS_CONFLICTNO: u32 = 0x7000_000b;
2838pub const DT_MIPS_LIBLISTNO: u32 = 0x7000_0010;
2840pub const DT_MIPS_SYMTABNO: u32 = 0x7000_0011;
2842pub const DT_MIPS_UNREFEXTNO: u32 = 0x7000_0012;
2844pub const DT_MIPS_GOTSYM: u32 = 0x7000_0013;
2846pub const DT_MIPS_HIPAGENO: u32 = 0x7000_0014;
2848pub const DT_MIPS_RLD_MAP: u32 = 0x7000_0016;
2850pub const DT_MIPS_DELTA_CLASS: u32 = 0x7000_0017;
2852pub const DT_MIPS_DELTA_CLASS_NO: u32 = 0x7000_0018;
2854pub const DT_MIPS_DELTA_INSTANCE: u32 = 0x7000_0019;
2856pub const DT_MIPS_DELTA_INSTANCE_NO: u32 = 0x7000_001a;
2858pub const DT_MIPS_DELTA_RELOC: u32 = 0x7000_001b;
2860pub const DT_MIPS_DELTA_RELOC_NO: u32 = 0x7000_001c;
2862pub const DT_MIPS_DELTA_SYM: u32 = 0x7000_001d;
2864pub const DT_MIPS_DELTA_SYM_NO: u32 = 0x7000_001e;
2866pub const DT_MIPS_DELTA_CLASSSYM: u32 = 0x7000_0020;
2868pub const DT_MIPS_DELTA_CLASSSYM_NO: u32 = 0x7000_0021;
2870pub const DT_MIPS_CXX_FLAGS: u32 = 0x7000_0022;
2872pub const DT_MIPS_PIXIE_INIT: u32 = 0x7000_0023;
2873pub const DT_MIPS_SYMBOL_LIB: u32 = 0x7000_0024;
2874pub const DT_MIPS_LOCALPAGE_GOTIDX: u32 = 0x7000_0025;
2875pub const DT_MIPS_LOCAL_GOTIDX: u32 = 0x7000_0026;
2876pub const DT_MIPS_HIDDEN_GOTIDX: u32 = 0x7000_0027;
2877pub const DT_MIPS_PROTECTED_GOTIDX: u32 = 0x7000_0028;
2878pub const DT_MIPS_OPTIONS: u32 = 0x7000_0029;
2880pub const DT_MIPS_INTERFACE: u32 = 0x7000_002a;
2882pub const DT_MIPS_DYNSTR_ALIGN: u32 = 0x7000_002b;
2883pub const DT_MIPS_INTERFACE_SIZE: u32 = 0x7000_002c;
2885pub const DT_MIPS_RLD_TEXT_RESOLVE_ADDR: u32 = 0x7000_002d;
2887pub const DT_MIPS_PERF_SUFFIX: u32 = 0x7000_002e;
2889pub const DT_MIPS_COMPACT_SIZE: u32 = 0x7000_002f;
2891pub const DT_MIPS_GP_VALUE: u32 = 0x7000_0030;
2893pub const DT_MIPS_AUX_DYNAMIC: u32 = 0x7000_0031;
2895pub const DT_MIPS_PLTGOT: u32 = 0x7000_0032;
2897pub const DT_MIPS_RWPLT: u32 = 0x7000_0034;
2899pub const DT_MIPS_RLD_MAP_REL: u32 = 0x7000_0035;
2901
2902pub const RHF_NONE: u32 = 0;
2906pub const RHF_QUICKSTART: u32 = 1 << 0;
2908pub const RHF_NOTPOT: u32 = 1 << 1;
2910pub const RHF_NO_LIBRARY_REPLACEMENT: u32 = 1 << 2;
2912pub const RHF_NO_MOVE: u32 = 1 << 3;
2913pub const RHF_SGI_ONLY: u32 = 1 << 4;
2914pub const RHF_GUARANTEE_INIT: u32 = 1 << 5;
2915pub const RHF_DELTA_C_PLUS_PLUS: u32 = 1 << 6;
2916pub const RHF_GUARANTEE_START_INIT: u32 = 1 << 7;
2917pub const RHF_PIXIE: u32 = 1 << 8;
2918pub const RHF_DEFAULT_DELAY_LOAD: u32 = 1 << 9;
2919pub const RHF_REQUICKSTART: u32 = 1 << 10;
2920pub const RHF_REQUICKSTARTED: u32 = 1 << 11;
2921pub const RHF_CORD: u32 = 1 << 12;
2922pub const RHF_NO_UNRES_UNDEF: u32 = 1 << 13;
2923pub const RHF_RLD_ORDER_SAFE: u32 = 1 << 14;
2924
2925pub const LL_NONE: u32 = 0;
2932pub const LL_EXACT_MATCH: u32 = 1 << 0;
2934pub const LL_IGNORE_INT_VER: u32 = 1 << 1;
2936pub const LL_REQUIRE_MINOR: u32 = 1 << 2;
2937pub const LL_EXPORTS: u32 = 1 << 3;
2938pub const LL_DELAY_LOAD: u32 = 1 << 4;
2939pub const LL_DELTA: u32 = 1 << 5;
2940
2941pub const EF_PARISC_TRAPNIL: u32 = 0x0001_0000;
2949pub const EF_PARISC_EXT: u32 = 0x0002_0000;
2951pub const EF_PARISC_LSB: u32 = 0x0004_0000;
2953pub const EF_PARISC_WIDE: u32 = 0x0008_0000;
2955pub const EF_PARISC_NO_KABP: u32 = 0x0010_0000;
2957pub const EF_PARISC_LAZYSWAP: u32 = 0x0040_0000;
2959pub const EF_PARISC_ARCH: u32 = 0x0000_ffff;
2961
2962pub const EFA_PARISC_1_0: u32 = 0x020b;
2966pub const EFA_PARISC_1_1: u32 = 0x0210;
2968pub const EFA_PARISC_2_0: u32 = 0x0214;
2970
2971pub const SHN_PARISC_ANSI_COMMON: u16 = 0xff00;
2975pub const SHN_PARISC_HUGE_COMMON: u16 = 0xff01;
2977
2978pub const SHT_PARISC_EXT: u32 = 0x7000_0000;
2982pub const SHT_PARISC_UNWIND: u32 = 0x7000_0001;
2984pub const SHT_PARISC_DOC: u32 = 0x7000_0002;
2986
2987pub const SHF_PARISC_SHORT: u32 = 0x2000_0000;
2991pub const SHF_PARISC_HUGE: u32 = 0x4000_0000;
2993pub const SHF_PARISC_SBP: u32 = 0x8000_0000;
2995
2996pub const STT_PARISC_MILLICODE: u8 = 13;
3000
3001pub const STT_HP_OPAQUE: u8 = STT_LOOS + 0x1;
3002pub const STT_HP_STUB: u8 = STT_LOOS + 0x2;
3003
3004pub const R_PARISC_NONE: u32 = 0;
3008pub const R_PARISC_DIR32: u32 = 1;
3010pub const R_PARISC_DIR21L: u32 = 2;
3012pub const R_PARISC_DIR17R: u32 = 3;
3014pub const R_PARISC_DIR17F: u32 = 4;
3016pub const R_PARISC_DIR14R: u32 = 6;
3018pub const R_PARISC_PCREL32: u32 = 9;
3020pub const R_PARISC_PCREL21L: u32 = 10;
3022pub const R_PARISC_PCREL17R: u32 = 11;
3024pub const R_PARISC_PCREL17F: u32 = 12;
3026pub const R_PARISC_PCREL14R: u32 = 14;
3028pub const R_PARISC_DPREL21L: u32 = 18;
3030pub const R_PARISC_DPREL14R: u32 = 22;
3032pub const R_PARISC_GPREL21L: u32 = 26;
3034pub const R_PARISC_GPREL14R: u32 = 30;
3036pub const R_PARISC_LTOFF21L: u32 = 34;
3038pub const R_PARISC_LTOFF14R: u32 = 38;
3040pub const R_PARISC_SECREL32: u32 = 41;
3042pub const R_PARISC_SEGBASE: u32 = 48;
3044pub const R_PARISC_SEGREL32: u32 = 49;
3046pub const R_PARISC_PLTOFF21L: u32 = 50;
3048pub const R_PARISC_PLTOFF14R: u32 = 54;
3050pub const R_PARISC_LTOFF_FPTR32: u32 = 57;
3052pub const R_PARISC_LTOFF_FPTR21L: u32 = 58;
3054pub const R_PARISC_LTOFF_FPTR14R: u32 = 62;
3056pub const R_PARISC_FPTR64: u32 = 64;
3058pub const R_PARISC_PLABEL32: u32 = 65;
3060pub const R_PARISC_PLABEL21L: u32 = 66;
3062pub const R_PARISC_PLABEL14R: u32 = 70;
3064pub const R_PARISC_PCREL64: u32 = 72;
3066pub const R_PARISC_PCREL22F: u32 = 74;
3068pub const R_PARISC_PCREL14WR: u32 = 75;
3070pub const R_PARISC_PCREL14DR: u32 = 76;
3072pub const R_PARISC_PCREL16F: u32 = 77;
3074pub const R_PARISC_PCREL16WF: u32 = 78;
3076pub const R_PARISC_PCREL16DF: u32 = 79;
3078pub const R_PARISC_DIR64: u32 = 80;
3080pub const R_PARISC_DIR14WR: u32 = 83;
3082pub const R_PARISC_DIR14DR: u32 = 84;
3084pub const R_PARISC_DIR16F: u32 = 85;
3086pub const R_PARISC_DIR16WF: u32 = 86;
3088pub const R_PARISC_DIR16DF: u32 = 87;
3090pub const R_PARISC_GPREL64: u32 = 88;
3092pub const R_PARISC_GPREL14WR: u32 = 91;
3094pub const R_PARISC_GPREL14DR: u32 = 92;
3096pub const R_PARISC_GPREL16F: u32 = 93;
3098pub const R_PARISC_GPREL16WF: u32 = 94;
3100pub const R_PARISC_GPREL16DF: u32 = 95;
3102pub const R_PARISC_LTOFF64: u32 = 96;
3104pub const R_PARISC_LTOFF14WR: u32 = 99;
3106pub const R_PARISC_LTOFF14DR: u32 = 100;
3108pub const R_PARISC_LTOFF16F: u32 = 101;
3110pub const R_PARISC_LTOFF16WF: u32 = 102;
3112pub const R_PARISC_LTOFF16DF: u32 = 103;
3114pub const R_PARISC_SECREL64: u32 = 104;
3116pub const R_PARISC_SEGREL64: u32 = 112;
3118pub const R_PARISC_PLTOFF14WR: u32 = 115;
3120pub const R_PARISC_PLTOFF14DR: u32 = 116;
3122pub const R_PARISC_PLTOFF16F: u32 = 117;
3124pub const R_PARISC_PLTOFF16WF: u32 = 118;
3126pub const R_PARISC_PLTOFF16DF: u32 = 119;
3128pub const R_PARISC_LTOFF_FPTR64: u32 = 120;
3130pub const R_PARISC_LTOFF_FPTR14WR: u32 = 123;
3132pub const R_PARISC_LTOFF_FPTR14DR: u32 = 124;
3134pub const R_PARISC_LTOFF_FPTR16F: u32 = 125;
3136pub const R_PARISC_LTOFF_FPTR16WF: u32 = 126;
3138pub const R_PARISC_LTOFF_FPTR16DF: u32 = 127;
3140pub const R_PARISC_LORESERVE: u32 = 128;
3141pub const R_PARISC_COPY: u32 = 128;
3143pub const R_PARISC_IPLT: u32 = 129;
3145pub const R_PARISC_EPLT: u32 = 130;
3147pub const R_PARISC_TPREL32: u32 = 153;
3149pub const R_PARISC_TPREL21L: u32 = 154;
3151pub const R_PARISC_TPREL14R: u32 = 158;
3153pub const R_PARISC_LTOFF_TP21L: u32 = 162;
3155pub const R_PARISC_LTOFF_TP14R: u32 = 166;
3157pub const R_PARISC_LTOFF_TP14F: u32 = 167;
3159pub const R_PARISC_TPREL64: u32 = 216;
3161pub const R_PARISC_TPREL14WR: u32 = 219;
3163pub const R_PARISC_TPREL14DR: u32 = 220;
3165pub const R_PARISC_TPREL16F: u32 = 221;
3167pub const R_PARISC_TPREL16WF: u32 = 222;
3169pub const R_PARISC_TPREL16DF: u32 = 223;
3171pub const R_PARISC_LTOFF_TP64: u32 = 224;
3173pub const R_PARISC_LTOFF_TP14WR: u32 = 227;
3175pub const R_PARISC_LTOFF_TP14DR: u32 = 228;
3177pub const R_PARISC_LTOFF_TP16F: u32 = 229;
3179pub const R_PARISC_LTOFF_TP16WF: u32 = 230;
3181pub const R_PARISC_LTOFF_TP16DF: u32 = 231;
3183pub const R_PARISC_GNU_VTENTRY: u32 = 232;
3184pub const R_PARISC_GNU_VTINHERIT: u32 = 233;
3185pub const R_PARISC_TLS_GD21L: u32 = 234;
3187pub const R_PARISC_TLS_GD14R: u32 = 235;
3189pub const R_PARISC_TLS_GDCALL: u32 = 236;
3191pub const R_PARISC_TLS_LDM21L: u32 = 237;
3193pub const R_PARISC_TLS_LDM14R: u32 = 238;
3195pub const R_PARISC_TLS_LDMCALL: u32 = 239;
3197pub const R_PARISC_TLS_LDO21L: u32 = 240;
3199pub const R_PARISC_TLS_LDO14R: u32 = 241;
3201pub const R_PARISC_TLS_DTPMOD32: u32 = 242;
3203pub const R_PARISC_TLS_DTPMOD64: u32 = 243;
3205pub const R_PARISC_TLS_DTPOFF32: u32 = 244;
3207pub const R_PARISC_TLS_DTPOFF64: u32 = 245;
3209pub const R_PARISC_TLS_LE21L: u32 = R_PARISC_TPREL21L;
3210pub const R_PARISC_TLS_LE14R: u32 = R_PARISC_TPREL14R;
3211pub const R_PARISC_TLS_IE21L: u32 = R_PARISC_LTOFF_TP21L;
3212pub const R_PARISC_TLS_IE14R: u32 = R_PARISC_LTOFF_TP14R;
3213pub const R_PARISC_TLS_TPREL32: u32 = R_PARISC_TPREL32;
3214pub const R_PARISC_TLS_TPREL64: u32 = R_PARISC_TPREL64;
3215pub const R_PARISC_HIRESERVE: u32 = 255;
3216
3217pub const PT_HP_TLS: u32 = PT_LOOS + 0x0;
3220pub const PT_HP_CORE_NONE: u32 = PT_LOOS + 0x1;
3221pub const PT_HP_CORE_VERSION: u32 = PT_LOOS + 0x2;
3222pub const PT_HP_CORE_KERNEL: u32 = PT_LOOS + 0x3;
3223pub const PT_HP_CORE_COMM: u32 = PT_LOOS + 0x4;
3224pub const PT_HP_CORE_PROC: u32 = PT_LOOS + 0x5;
3225pub const PT_HP_CORE_LOADABLE: u32 = PT_LOOS + 0x6;
3226pub const PT_HP_CORE_STACK: u32 = PT_LOOS + 0x7;
3227pub const PT_HP_CORE_SHM: u32 = PT_LOOS + 0x8;
3228pub const PT_HP_CORE_MMF: u32 = PT_LOOS + 0x9;
3229pub const PT_HP_PARALLEL: u32 = PT_LOOS + 0x10;
3230pub const PT_HP_FASTBIND: u32 = PT_LOOS + 0x11;
3231pub const PT_HP_OPT_ANNOT: u32 = PT_LOOS + 0x12;
3232pub const PT_HP_HSL_ANNOT: u32 = PT_LOOS + 0x13;
3233pub const PT_HP_STACK: u32 = PT_LOOS + 0x14;
3234
3235pub const PT_PARISC_ARCHEXT: u32 = 0x7000_0000;
3236pub const PT_PARISC_UNWIND: u32 = 0x7000_0001;
3237
3238pub const PF_PARISC_SBP: u32 = 0x0800_0000;
3241
3242pub const PF_HP_PAGE_SIZE: u32 = 0x0010_0000;
3243pub const PF_HP_FAR_SHARED: u32 = 0x0020_0000;
3244pub const PF_HP_NEAR_SHARED: u32 = 0x0040_0000;
3245pub const PF_HP_CODE: u32 = 0x0100_0000;
3246pub const PF_HP_MODIFY: u32 = 0x0200_0000;
3247pub const PF_HP_LAZYSWAP: u32 = 0x0400_0000;
3248pub const PF_HP_SBP: u32 = 0x0800_0000;
3249
3250pub const EF_ALPHA_32BIT: u32 = 1;
3256pub const EF_ALPHA_CANRELAX: u32 = 2;
3258
3259pub const SHT_ALPHA_DEBUG: u32 = 0x7000_0001;
3263pub const SHT_ALPHA_REGINFO: u32 = 0x7000_0002;
3264
3265pub const SHF_ALPHA_GPREL: u32 = 0x1000_0000;
3268
3269pub const STO_ALPHA_NOPV: u8 = 0x80;
3272pub const STO_ALPHA_STD_GPLOAD: u8 = 0x88;
3274
3275pub const R_ALPHA_NONE: u32 = 0;
3279pub const R_ALPHA_REFLONG: u32 = 1;
3281pub const R_ALPHA_REFQUAD: u32 = 2;
3283pub const R_ALPHA_GPREL32: u32 = 3;
3285pub const R_ALPHA_LITERAL: u32 = 4;
3287pub const R_ALPHA_LITUSE: u32 = 5;
3289pub const R_ALPHA_GPDISP: u32 = 6;
3291pub const R_ALPHA_BRADDR: u32 = 7;
3293pub const R_ALPHA_HINT: u32 = 8;
3295pub const R_ALPHA_SREL16: u32 = 9;
3297pub const R_ALPHA_SREL32: u32 = 10;
3299pub const R_ALPHA_SREL64: u32 = 11;
3301pub const R_ALPHA_GPRELHIGH: u32 = 17;
3303pub const R_ALPHA_GPRELLOW: u32 = 18;
3305pub const R_ALPHA_GPREL16: u32 = 19;
3307pub const R_ALPHA_COPY: u32 = 24;
3309pub const R_ALPHA_GLOB_DAT: u32 = 25;
3311pub const R_ALPHA_JMP_SLOT: u32 = 26;
3313pub const R_ALPHA_RELATIVE: u32 = 27;
3315pub const R_ALPHA_TLS_GD_HI: u32 = 28;
3316pub const R_ALPHA_TLSGD: u32 = 29;
3317pub const R_ALPHA_TLS_LDM: u32 = 30;
3318pub const R_ALPHA_DTPMOD64: u32 = 31;
3319pub const R_ALPHA_GOTDTPREL: u32 = 32;
3320pub const R_ALPHA_DTPREL64: u32 = 33;
3321pub const R_ALPHA_DTPRELHI: u32 = 34;
3322pub const R_ALPHA_DTPRELLO: u32 = 35;
3323pub const R_ALPHA_DTPREL16: u32 = 36;
3324pub const R_ALPHA_GOTTPREL: u32 = 37;
3325pub const R_ALPHA_TPREL64: u32 = 38;
3326pub const R_ALPHA_TPRELHI: u32 = 39;
3327pub const R_ALPHA_TPRELLO: u32 = 40;
3328pub const R_ALPHA_TPREL16: u32 = 41;
3329
3330pub const LITUSE_ALPHA_ADDR: u32 = 0;
3332pub const LITUSE_ALPHA_BASE: u32 = 1;
3333pub const LITUSE_ALPHA_BYTOFF: u32 = 2;
3334pub const LITUSE_ALPHA_JSR: u32 = 3;
3335pub const LITUSE_ALPHA_TLS_GD: u32 = 4;
3336pub const LITUSE_ALPHA_TLS_LDM: u32 = 5;
3337
3338pub const DT_ALPHA_PLTRO: u32 = DT_LOPROC + 0;
3340
3341pub const EF_PPC_EMB: u32 = 0x8000_0000;
3346
3347pub const EF_PPC_RELOCATABLE: u32 = 0x0001_0000;
3350pub const EF_PPC_RELOCATABLE_LIB: u32 = 0x0000_8000;
3352
3353pub const R_PPC_NONE: u32 = 0;
3355pub const R_PPC_ADDR32: u32 = 1;
3357pub const R_PPC_ADDR24: u32 = 2;
3359pub const R_PPC_ADDR16: u32 = 3;
3361pub const R_PPC_ADDR16_LO: u32 = 4;
3363pub const R_PPC_ADDR16_HI: u32 = 5;
3365pub const R_PPC_ADDR16_HA: u32 = 6;
3367pub const R_PPC_ADDR14: u32 = 7;
3369pub const R_PPC_ADDR14_BRTAKEN: u32 = 8;
3370pub const R_PPC_ADDR14_BRNTAKEN: u32 = 9;
3371pub const R_PPC_REL24: u32 = 10;
3373pub const R_PPC_REL14: u32 = 11;
3375pub const R_PPC_REL14_BRTAKEN: u32 = 12;
3376pub const R_PPC_REL14_BRNTAKEN: u32 = 13;
3377pub const R_PPC_GOT16: u32 = 14;
3378pub const R_PPC_GOT16_LO: u32 = 15;
3379pub const R_PPC_GOT16_HI: u32 = 16;
3380pub const R_PPC_GOT16_HA: u32 = 17;
3381pub const R_PPC_PLTREL24: u32 = 18;
3382pub const R_PPC_COPY: u32 = 19;
3383pub const R_PPC_GLOB_DAT: u32 = 20;
3384pub const R_PPC_JMP_SLOT: u32 = 21;
3385pub const R_PPC_RELATIVE: u32 = 22;
3386pub const R_PPC_LOCAL24PC: u32 = 23;
3387pub const R_PPC_UADDR32: u32 = 24;
3388pub const R_PPC_UADDR16: u32 = 25;
3389pub const R_PPC_REL32: u32 = 26;
3390pub const R_PPC_PLT32: u32 = 27;
3391pub const R_PPC_PLTREL32: u32 = 28;
3392pub const R_PPC_PLT16_LO: u32 = 29;
3393pub const R_PPC_PLT16_HI: u32 = 30;
3394pub const R_PPC_PLT16_HA: u32 = 31;
3395pub const R_PPC_SDAREL16: u32 = 32;
3396pub const R_PPC_SECTOFF: u32 = 33;
3397pub const R_PPC_SECTOFF_LO: u32 = 34;
3398pub const R_PPC_SECTOFF_HI: u32 = 35;
3399pub const R_PPC_SECTOFF_HA: u32 = 36;
3400
3401pub const R_PPC_TLS: u32 = 67;
3404pub const R_PPC_DTPMOD32: u32 = 68;
3406pub const R_PPC_TPREL16: u32 = 69;
3408pub const R_PPC_TPREL16_LO: u32 = 70;
3410pub const R_PPC_TPREL16_HI: u32 = 71;
3412pub const R_PPC_TPREL16_HA: u32 = 72;
3414pub const R_PPC_TPREL32: u32 = 73;
3416pub const R_PPC_DTPREL16: u32 = 74;
3418pub const R_PPC_DTPREL16_LO: u32 = 75;
3420pub const R_PPC_DTPREL16_HI: u32 = 76;
3422pub const R_PPC_DTPREL16_HA: u32 = 77;
3424pub const R_PPC_DTPREL32: u32 = 78;
3426pub const R_PPC_GOT_TLSGD16: u32 = 79;
3428pub const R_PPC_GOT_TLSGD16_LO: u32 = 80;
3430pub const R_PPC_GOT_TLSGD16_HI: u32 = 81;
3432pub const R_PPC_GOT_TLSGD16_HA: u32 = 82;
3434pub const R_PPC_GOT_TLSLD16: u32 = 83;
3436pub const R_PPC_GOT_TLSLD16_LO: u32 = 84;
3438pub const R_PPC_GOT_TLSLD16_HI: u32 = 85;
3440pub const R_PPC_GOT_TLSLD16_HA: u32 = 86;
3442pub const R_PPC_GOT_TPREL16: u32 = 87;
3444pub const R_PPC_GOT_TPREL16_LO: u32 = 88;
3446pub const R_PPC_GOT_TPREL16_HI: u32 = 89;
3448pub const R_PPC_GOT_TPREL16_HA: u32 = 90;
3450pub const R_PPC_GOT_DTPREL16: u32 = 91;
3452pub const R_PPC_GOT_DTPREL16_LO: u32 = 92;
3454pub const R_PPC_GOT_DTPREL16_HI: u32 = 93;
3456pub const R_PPC_GOT_DTPREL16_HA: u32 = 94;
3458pub const R_PPC_TLSGD: u32 = 95;
3460pub const R_PPC_TLSLD: u32 = 96;
3462
3463pub const R_PPC_EMB_NADDR32: u32 = 101;
3465pub const R_PPC_EMB_NADDR16: u32 = 102;
3466pub const R_PPC_EMB_NADDR16_LO: u32 = 103;
3467pub const R_PPC_EMB_NADDR16_HI: u32 = 104;
3468pub const R_PPC_EMB_NADDR16_HA: u32 = 105;
3469pub const R_PPC_EMB_SDAI16: u32 = 106;
3470pub const R_PPC_EMB_SDA2I16: u32 = 107;
3471pub const R_PPC_EMB_SDA2REL: u32 = 108;
3472pub const R_PPC_EMB_SDA21: u32 = 109;
3474pub const R_PPC_EMB_MRKREF: u32 = 110;
3475pub const R_PPC_EMB_RELSEC16: u32 = 111;
3476pub const R_PPC_EMB_RELST_LO: u32 = 112;
3477pub const R_PPC_EMB_RELST_HI: u32 = 113;
3478pub const R_PPC_EMB_RELST_HA: u32 = 114;
3479pub const R_PPC_EMB_BIT_FLD: u32 = 115;
3480pub const R_PPC_EMB_RELSDA: u32 = 116;
3482
3483pub const R_PPC_DIAB_SDA21_LO: u32 = 180;
3486pub const R_PPC_DIAB_SDA21_HI: u32 = 181;
3488pub const R_PPC_DIAB_SDA21_HA: u32 = 182;
3490pub const R_PPC_DIAB_RELSDA_LO: u32 = 183;
3492pub const R_PPC_DIAB_RELSDA_HI: u32 = 184;
3494pub const R_PPC_DIAB_RELSDA_HA: u32 = 185;
3496
3497pub const R_PPC_IRELATIVE: u32 = 248;
3499
3500pub const R_PPC_REL16: u32 = 249;
3503pub const R_PPC_REL16_LO: u32 = 250;
3505pub const R_PPC_REL16_HI: u32 = 251;
3507pub const R_PPC_REL16_HA: u32 = 252;
3509
3510pub const R_PPC_TOC16: u32 = 255;
3513
3514pub const DT_PPC_GOT: u32 = DT_LOPROC + 0;
3516pub const DT_PPC_OPT: u32 = DT_LOPROC + 1;
3517
3518pub const PPC_OPT_TLS: u32 = 1;
3520
3521pub const R_PPC64_NONE: u32 = R_PPC_NONE;
3523pub const R_PPC64_ADDR32: u32 = R_PPC_ADDR32;
3525pub const R_PPC64_ADDR24: u32 = R_PPC_ADDR24;
3527pub const R_PPC64_ADDR16: u32 = R_PPC_ADDR16;
3529pub const R_PPC64_ADDR16_LO: u32 = R_PPC_ADDR16_LO;
3531pub const R_PPC64_ADDR16_HI: u32 = R_PPC_ADDR16_HI;
3533pub const R_PPC64_ADDR16_HA: u32 = R_PPC_ADDR16_HA;
3535pub const R_PPC64_ADDR14: u32 = R_PPC_ADDR14;
3537pub const R_PPC64_ADDR14_BRTAKEN: u32 = R_PPC_ADDR14_BRTAKEN;
3538pub const R_PPC64_ADDR14_BRNTAKEN: u32 = R_PPC_ADDR14_BRNTAKEN;
3539pub const R_PPC64_REL24: u32 = R_PPC_REL24;
3541pub const R_PPC64_REL14: u32 = R_PPC_REL14;
3543pub const R_PPC64_REL14_BRTAKEN: u32 = R_PPC_REL14_BRTAKEN;
3544pub const R_PPC64_REL14_BRNTAKEN: u32 = R_PPC_REL14_BRNTAKEN;
3545pub const R_PPC64_GOT16: u32 = R_PPC_GOT16;
3546pub const R_PPC64_GOT16_LO: u32 = R_PPC_GOT16_LO;
3547pub const R_PPC64_GOT16_HI: u32 = R_PPC_GOT16_HI;
3548pub const R_PPC64_GOT16_HA: u32 = R_PPC_GOT16_HA;
3549
3550pub const R_PPC64_COPY: u32 = R_PPC_COPY;
3551pub const R_PPC64_GLOB_DAT: u32 = R_PPC_GLOB_DAT;
3552pub const R_PPC64_JMP_SLOT: u32 = R_PPC_JMP_SLOT;
3553pub const R_PPC64_RELATIVE: u32 = R_PPC_RELATIVE;
3554
3555pub const R_PPC64_UADDR32: u32 = R_PPC_UADDR32;
3556pub const R_PPC64_UADDR16: u32 = R_PPC_UADDR16;
3557pub const R_PPC64_REL32: u32 = R_PPC_REL32;
3558pub const R_PPC64_PLT32: u32 = R_PPC_PLT32;
3559pub const R_PPC64_PLTREL32: u32 = R_PPC_PLTREL32;
3560pub const R_PPC64_PLT16_LO: u32 = R_PPC_PLT16_LO;
3561pub const R_PPC64_PLT16_HI: u32 = R_PPC_PLT16_HI;
3562pub const R_PPC64_PLT16_HA: u32 = R_PPC_PLT16_HA;
3563
3564pub const R_PPC64_SECTOFF: u32 = R_PPC_SECTOFF;
3565pub const R_PPC64_SECTOFF_LO: u32 = R_PPC_SECTOFF_LO;
3566pub const R_PPC64_SECTOFF_HI: u32 = R_PPC_SECTOFF_HI;
3567pub const R_PPC64_SECTOFF_HA: u32 = R_PPC_SECTOFF_HA;
3568pub const R_PPC64_ADDR30: u32 = 37;
3570pub const R_PPC64_ADDR64: u32 = 38;
3572pub const R_PPC64_ADDR16_HIGHER: u32 = 39;
3574pub const R_PPC64_ADDR16_HIGHERA: u32 = 40;
3576pub const R_PPC64_ADDR16_HIGHEST: u32 = 41;
3578pub const R_PPC64_ADDR16_HIGHESTA: u32 = 42;
3580pub const R_PPC64_UADDR64: u32 = 43;
3582pub const R_PPC64_REL64: u32 = 44;
3584pub const R_PPC64_PLT64: u32 = 45;
3586pub const R_PPC64_PLTREL64: u32 = 46;
3588pub const R_PPC64_TOC16: u32 = 47;
3590pub const R_PPC64_TOC16_LO: u32 = 48;
3592pub const R_PPC64_TOC16_HI: u32 = 49;
3594pub const R_PPC64_TOC16_HA: u32 = 50;
3596pub const R_PPC64_TOC: u32 = 51;
3598pub const R_PPC64_PLTGOT16: u32 = 52;
3600pub const R_PPC64_PLTGOT16_LO: u32 = 53;
3602pub const R_PPC64_PLTGOT16_HI: u32 = 54;
3604pub const R_PPC64_PLTGOT16_HA: u32 = 55;
3606
3607pub const R_PPC64_ADDR16_DS: u32 = 56;
3609pub const R_PPC64_ADDR16_LO_DS: u32 = 57;
3611pub const R_PPC64_GOT16_DS: u32 = 58;
3613pub const R_PPC64_GOT16_LO_DS: u32 = 59;
3615pub const R_PPC64_PLT16_LO_DS: u32 = 60;
3617pub const R_PPC64_SECTOFF_DS: u32 = 61;
3619pub const R_PPC64_SECTOFF_LO_DS: u32 = 62;
3621pub const R_PPC64_TOC16_DS: u32 = 63;
3623pub const R_PPC64_TOC16_LO_DS: u32 = 64;
3625pub const R_PPC64_PLTGOT16_DS: u32 = 65;
3627pub const R_PPC64_PLTGOT16_LO_DS: u32 = 66;
3629
3630pub const R_PPC64_TLS: u32 = 67;
3633pub const R_PPC64_DTPMOD64: u32 = 68;
3635pub const R_PPC64_TPREL16: u32 = 69;
3637pub const R_PPC64_TPREL16_LO: u32 = 70;
3639pub const R_PPC64_TPREL16_HI: u32 = 71;
3641pub const R_PPC64_TPREL16_HA: u32 = 72;
3643pub const R_PPC64_TPREL64: u32 = 73;
3645pub const R_PPC64_DTPREL16: u32 = 74;
3647pub const R_PPC64_DTPREL16_LO: u32 = 75;
3649pub const R_PPC64_DTPREL16_HI: u32 = 76;
3651pub const R_PPC64_DTPREL16_HA: u32 = 77;
3653pub const R_PPC64_DTPREL64: u32 = 78;
3655pub const R_PPC64_GOT_TLSGD16: u32 = 79;
3657pub const R_PPC64_GOT_TLSGD16_LO: u32 = 80;
3659pub const R_PPC64_GOT_TLSGD16_HI: u32 = 81;
3661pub const R_PPC64_GOT_TLSGD16_HA: u32 = 82;
3663pub const R_PPC64_GOT_TLSLD16: u32 = 83;
3665pub const R_PPC64_GOT_TLSLD16_LO: u32 = 84;
3667pub const R_PPC64_GOT_TLSLD16_HI: u32 = 85;
3669pub const R_PPC64_GOT_TLSLD16_HA: u32 = 86;
3671pub const R_PPC64_GOT_TPREL16_DS: u32 = 87;
3673pub const R_PPC64_GOT_TPREL16_LO_DS: u32 = 88;
3675pub const R_PPC64_GOT_TPREL16_HI: u32 = 89;
3677pub const R_PPC64_GOT_TPREL16_HA: u32 = 90;
3679pub const R_PPC64_GOT_DTPREL16_DS: u32 = 91;
3681pub const R_PPC64_GOT_DTPREL16_LO_DS: u32 = 92;
3683pub const R_PPC64_GOT_DTPREL16_HI: u32 = 93;
3685pub const R_PPC64_GOT_DTPREL16_HA: u32 = 94;
3687pub const R_PPC64_TPREL16_DS: u32 = 95;
3689pub const R_PPC64_TPREL16_LO_DS: u32 = 96;
3691pub const R_PPC64_TPREL16_HIGHER: u32 = 97;
3693pub const R_PPC64_TPREL16_HIGHERA: u32 = 98;
3695pub const R_PPC64_TPREL16_HIGHEST: u32 = 99;
3697pub const R_PPC64_TPREL16_HIGHESTA: u32 = 100;
3699pub const R_PPC64_DTPREL16_DS: u32 = 101;
3701pub const R_PPC64_DTPREL16_LO_DS: u32 = 102;
3703pub const R_PPC64_DTPREL16_HIGHER: u32 = 103;
3705pub const R_PPC64_DTPREL16_HIGHERA: u32 = 104;
3707pub const R_PPC64_DTPREL16_HIGHEST: u32 = 105;
3709pub const R_PPC64_DTPREL16_HIGHESTA: u32 = 106;
3711pub const R_PPC64_TLSGD: u32 = 107;
3713pub const R_PPC64_TLSLD: u32 = 108;
3715pub const R_PPC64_TOCSAVE: u32 = 109;
3717
3718pub const R_PPC64_ADDR16_HIGH: u32 = 110;
3720pub const R_PPC64_ADDR16_HIGHA: u32 = 111;
3721pub const R_PPC64_TPREL16_HIGH: u32 = 112;
3722pub const R_PPC64_TPREL16_HIGHA: u32 = 113;
3723pub const R_PPC64_DTPREL16_HIGH: u32 = 114;
3724pub const R_PPC64_DTPREL16_HIGHA: u32 = 115;
3725
3726pub const R_PPC64_JMP_IREL: u32 = 247;
3728pub const R_PPC64_IRELATIVE: u32 = 248;
3730pub const R_PPC64_REL16: u32 = 249;
3732pub const R_PPC64_REL16_LO: u32 = 250;
3734pub const R_PPC64_REL16_HI: u32 = 251;
3736pub const R_PPC64_REL16_HA: u32 = 252;
3738
3739pub const EF_PPC64_ABI: u32 = 3;
3746
3747pub const DT_PPC64_GLINK: u32 = DT_LOPROC + 0;
3749pub const DT_PPC64_OPD: u32 = DT_LOPROC + 1;
3750pub const DT_PPC64_OPDSZ: u32 = DT_LOPROC + 2;
3751pub const DT_PPC64_OPT: u32 = DT_LOPROC + 3;
3752
3753pub const PPC64_OPT_TLS: u32 = 1;
3755pub const PPC64_OPT_MULTI_TOC: u32 = 2;
3756pub const PPC64_OPT_LOCALENTRY: u32 = 4;
3757
3758pub const STO_PPC64_LOCAL_BIT: u8 = 5;
3760pub const STO_PPC64_LOCAL_MASK: u8 = 7 << STO_PPC64_LOCAL_BIT;
3761
3762pub const EF_ARM_RELEXEC: u32 = 0x01;
3766pub const EF_ARM_HASENTRY: u32 = 0x02;
3767pub const EF_ARM_INTERWORK: u32 = 0x04;
3768pub const EF_ARM_APCS_26: u32 = 0x08;
3769pub const EF_ARM_APCS_FLOAT: u32 = 0x10;
3770pub const EF_ARM_PIC: u32 = 0x20;
3771pub const EF_ARM_ALIGN8: u32 = 0x40;
3773pub const EF_ARM_NEW_ABI: u32 = 0x80;
3774pub const EF_ARM_OLD_ABI: u32 = 0x100;
3775pub const EF_ARM_SOFT_FLOAT: u32 = 0x200;
3776pub const EF_ARM_VFP_FLOAT: u32 = 0x400;
3777pub const EF_ARM_MAVERICK_FLOAT: u32 = 0x800;
3778
3779pub const EF_ARM_ABI_FLOAT_SOFT: u32 = 0x200;
3781pub const EF_ARM_ABI_FLOAT_HARD: u32 = 0x400;
3783
3784pub const EF_ARM_SYMSARESORTED: u32 = 0x04;
3787pub const EF_ARM_DYNSYMSUSESEGIDX: u32 = 0x08;
3788pub const EF_ARM_MAPSYMSFIRST: u32 = 0x10;
3789
3790pub const EF_ARM_BE8: u32 = 0x0080_0000;
3792pub const EF_ARM_LE8: u32 = 0x0040_0000;
3793
3794pub const EF_ARM_EABIMASK: u32 = 0xff00_0000;
3795pub const EF_ARM_EABI_UNKNOWN: u32 = 0x0000_0000;
3796pub const EF_ARM_EABI_VER1: u32 = 0x0100_0000;
3797pub const EF_ARM_EABI_VER2: u32 = 0x0200_0000;
3798pub const EF_ARM_EABI_VER3: u32 = 0x0300_0000;
3799pub const EF_ARM_EABI_VER4: u32 = 0x0400_0000;
3800pub const EF_ARM_EABI_VER5: u32 = 0x0500_0000;
3801
3802pub const STT_ARM_TFUNC: u8 = STT_LOPROC;
3805pub const STT_ARM_16BIT: u8 = STT_HIPROC;
3807
3808pub const SHF_ARM_ENTRYSECT: u32 = 0x1000_0000;
3811pub const SHF_ARM_COMDEF: u32 = 0x8000_0000;
3813
3814pub const PF_ARM_SB: u32 = 0x1000_0000;
3817pub const PF_ARM_PI: u32 = 0x2000_0000;
3819pub const PF_ARM_ABS: u32 = 0x4000_0000;
3821
3822pub const PT_ARM_EXIDX: u32 = PT_LOPROC + 1;
3825
3826pub const SHT_ARM_EXIDX: u32 = SHT_LOPROC + 1;
3829pub const SHT_ARM_PREEMPTMAP: u32 = SHT_LOPROC + 2;
3831pub const SHT_ARM_ATTRIBUTES: u32 = SHT_LOPROC + 3;
3833
3834pub const SHT_AARCH64_ATTRIBUTES: u32 = SHT_LOPROC + 3;
3837
3838pub const R_AARCH64_NONE: u32 = 0;
3842
3843pub const R_AARCH64_P32_ABS32: u32 = 1;
3846pub const R_AARCH64_P32_COPY: u32 = 180;
3848pub const R_AARCH64_P32_GLOB_DAT: u32 = 181;
3850pub const R_AARCH64_P32_JUMP_SLOT: u32 = 182;
3852pub const R_AARCH64_P32_RELATIVE: u32 = 183;
3854pub const R_AARCH64_P32_TLS_DTPMOD: u32 = 184;
3856pub const R_AARCH64_P32_TLS_DTPREL: u32 = 185;
3858pub const R_AARCH64_P32_TLS_TPREL: u32 = 186;
3860pub const R_AARCH64_P32_TLSDESC: u32 = 187;
3862pub const R_AARCH64_P32_IRELATIVE: u32 = 188;
3864
3865pub const R_AARCH64_ABS64: u32 = 257;
3868pub const R_AARCH64_ABS32: u32 = 258;
3870pub const R_AARCH64_ABS16: u32 = 259;
3872pub const R_AARCH64_PREL64: u32 = 260;
3874pub const R_AARCH64_PREL32: u32 = 261;
3876pub const R_AARCH64_PREL16: u32 = 262;
3878pub const R_AARCH64_MOVW_UABS_G0: u32 = 263;
3880pub const R_AARCH64_MOVW_UABS_G0_NC: u32 = 264;
3882pub const R_AARCH64_MOVW_UABS_G1: u32 = 265;
3884pub const R_AARCH64_MOVW_UABS_G1_NC: u32 = 266;
3886pub const R_AARCH64_MOVW_UABS_G2: u32 = 267;
3888pub const R_AARCH64_MOVW_UABS_G2_NC: u32 = 268;
3890pub const R_AARCH64_MOVW_UABS_G3: u32 = 269;
3892pub const R_AARCH64_MOVW_SABS_G0: u32 = 270;
3894pub const R_AARCH64_MOVW_SABS_G1: u32 = 271;
3896pub const R_AARCH64_MOVW_SABS_G2: u32 = 272;
3898pub const R_AARCH64_LD_PREL_LO19: u32 = 273;
3900pub const R_AARCH64_ADR_PREL_LO21: u32 = 274;
3902pub const R_AARCH64_ADR_PREL_PG_HI21: u32 = 275;
3904pub const R_AARCH64_ADR_PREL_PG_HI21_NC: u32 = 276;
3906pub const R_AARCH64_ADD_ABS_LO12_NC: u32 = 277;
3908pub const R_AARCH64_LDST8_ABS_LO12_NC: u32 = 278;
3910pub const R_AARCH64_TSTBR14: u32 = 279;
3912pub const R_AARCH64_CONDBR19: u32 = 280;
3914pub const R_AARCH64_JUMP26: u32 = 282;
3916pub const R_AARCH64_CALL26: u32 = 283;
3918pub const R_AARCH64_LDST16_ABS_LO12_NC: u32 = 284;
3920pub const R_AARCH64_LDST32_ABS_LO12_NC: u32 = 285;
3922pub const R_AARCH64_LDST64_ABS_LO12_NC: u32 = 286;
3924pub const R_AARCH64_MOVW_PREL_G0: u32 = 287;
3926pub const R_AARCH64_MOVW_PREL_G0_NC: u32 = 288;
3928pub const R_AARCH64_MOVW_PREL_G1: u32 = 289;
3930pub const R_AARCH64_MOVW_PREL_G1_NC: u32 = 290;
3932pub const R_AARCH64_MOVW_PREL_G2: u32 = 291;
3934pub const R_AARCH64_MOVW_PREL_G2_NC: u32 = 292;
3936pub const R_AARCH64_MOVW_PREL_G3: u32 = 293;
3938pub const R_AARCH64_LDST128_ABS_LO12_NC: u32 = 299;
3940pub const R_AARCH64_MOVW_GOTOFF_G0: u32 = 300;
3942pub const R_AARCH64_MOVW_GOTOFF_G0_NC: u32 = 301;
3944pub const R_AARCH64_MOVW_GOTOFF_G1: u32 = 302;
3946pub const R_AARCH64_MOVW_GOTOFF_G1_NC: u32 = 303;
3948pub const R_AARCH64_MOVW_GOTOFF_G2: u32 = 304;
3950pub const R_AARCH64_MOVW_GOTOFF_G2_NC: u32 = 305;
3952pub const R_AARCH64_MOVW_GOTOFF_G3: u32 = 306;
3954pub const R_AARCH64_GOTREL64: u32 = 307;
3956pub const R_AARCH64_GOTREL32: u32 = 308;
3958pub const R_AARCH64_GOT_LD_PREL19: u32 = 309;
3960pub const R_AARCH64_LD64_GOTOFF_LO15: u32 = 310;
3962pub const R_AARCH64_ADR_GOT_PAGE: u32 = 311;
3964pub const R_AARCH64_LD64_GOT_LO12_NC: u32 = 312;
3966pub const R_AARCH64_LD64_GOTPAGE_LO15: u32 = 313;
3968pub const R_AARCH64_TLSGD_ADR_PREL21: u32 = 512;
3970pub const R_AARCH64_TLSGD_ADR_PAGE21: u32 = 513;
3972pub const R_AARCH64_TLSGD_ADD_LO12_NC: u32 = 514;
3974pub const R_AARCH64_TLSGD_MOVW_G1: u32 = 515;
3976pub const R_AARCH64_TLSGD_MOVW_G0_NC: u32 = 516;
3978pub const R_AARCH64_TLSLD_ADR_PREL21: u32 = 517;
3980pub const R_AARCH64_TLSLD_ADR_PAGE21: u32 = 518;
3982pub const R_AARCH64_TLSLD_ADD_LO12_NC: u32 = 519;
3984pub const R_AARCH64_TLSLD_MOVW_G1: u32 = 520;
3986pub const R_AARCH64_TLSLD_MOVW_G0_NC: u32 = 521;
3988pub const R_AARCH64_TLSLD_LD_PREL19: u32 = 522;
3990pub const R_AARCH64_TLSLD_MOVW_DTPREL_G2: u32 = 523;
3992pub const R_AARCH64_TLSLD_MOVW_DTPREL_G1: u32 = 524;
3994pub const R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC: u32 = 525;
3996pub const R_AARCH64_TLSLD_MOVW_DTPREL_G0: u32 = 526;
3998pub const R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC: u32 = 527;
4000pub const R_AARCH64_TLSLD_ADD_DTPREL_HI12: u32 = 528;
4002pub const R_AARCH64_TLSLD_ADD_DTPREL_LO12: u32 = 529;
4004pub const R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC: u32 = 530;
4006pub const R_AARCH64_TLSLD_LDST8_DTPREL_LO12: u32 = 531;
4008pub const R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC: u32 = 532;
4010pub const R_AARCH64_TLSLD_LDST16_DTPREL_LO12: u32 = 533;
4012pub const R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC: u32 = 534;
4014pub const R_AARCH64_TLSLD_LDST32_DTPREL_LO12: u32 = 535;
4016pub const R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC: u32 = 536;
4018pub const R_AARCH64_TLSLD_LDST64_DTPREL_LO12: u32 = 537;
4020pub const R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC: u32 = 538;
4022pub const R_AARCH64_TLSIE_MOVW_GOTTPREL_G1: u32 = 539;
4024pub const R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC: u32 = 540;
4026pub const R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21: u32 = 541;
4028pub const R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: u32 = 542;
4030pub const R_AARCH64_TLSIE_LD_GOTTPREL_PREL19: u32 = 543;
4032pub const R_AARCH64_TLSLE_MOVW_TPREL_G2: u32 = 544;
4034pub const R_AARCH64_TLSLE_MOVW_TPREL_G1: u32 = 545;
4036pub const R_AARCH64_TLSLE_MOVW_TPREL_G1_NC: u32 = 546;
4038pub const R_AARCH64_TLSLE_MOVW_TPREL_G0: u32 = 547;
4040pub const R_AARCH64_TLSLE_MOVW_TPREL_G0_NC: u32 = 548;
4042pub const R_AARCH64_TLSLE_ADD_TPREL_HI12: u32 = 549;
4044pub const R_AARCH64_TLSLE_ADD_TPREL_LO12: u32 = 550;
4046pub const R_AARCH64_TLSLE_ADD_TPREL_LO12_NC: u32 = 551;
4048pub const R_AARCH64_TLSLE_LDST8_TPREL_LO12: u32 = 552;
4050pub const R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC: u32 = 553;
4052pub const R_AARCH64_TLSLE_LDST16_TPREL_LO12: u32 = 554;
4054pub const R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC: u32 = 555;
4056pub const R_AARCH64_TLSLE_LDST32_TPREL_LO12: u32 = 556;
4058pub const R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC: u32 = 557;
4060pub const R_AARCH64_TLSLE_LDST64_TPREL_LO12: u32 = 558;
4062pub const R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC: u32 = 559;
4064pub const R_AARCH64_TLSDESC_LD_PREL19: u32 = 560;
4066pub const R_AARCH64_TLSDESC_ADR_PREL21: u32 = 561;
4068pub const R_AARCH64_TLSDESC_ADR_PAGE21: u32 = 562;
4070pub const R_AARCH64_TLSDESC_LD64_LO12: u32 = 563;
4072pub const R_AARCH64_TLSDESC_ADD_LO12: u32 = 564;
4074pub const R_AARCH64_TLSDESC_OFF_G1: u32 = 565;
4076pub const R_AARCH64_TLSDESC_OFF_G0_NC: u32 = 566;
4078pub const R_AARCH64_TLSDESC_LDR: u32 = 567;
4080pub const R_AARCH64_TLSDESC_ADD: u32 = 568;
4082pub const R_AARCH64_TLSDESC_CALL: u32 = 569;
4084pub const R_AARCH64_TLSLE_LDST128_TPREL_LO12: u32 = 570;
4086pub const R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC: u32 = 571;
4088pub const R_AARCH64_TLSLD_LDST128_DTPREL_LO12: u32 = 572;
4090pub const R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC: u32 = 573;
4092pub const R_AARCH64_COPY: u32 = 1024;
4094pub const R_AARCH64_GLOB_DAT: u32 = 1025;
4096pub const R_AARCH64_JUMP_SLOT: u32 = 1026;
4098pub const R_AARCH64_RELATIVE: u32 = 1027;
4100pub const R_AARCH64_TLS_DTPMOD: u32 = 1028;
4102pub const R_AARCH64_TLS_DTPREL: u32 = 1029;
4104pub const R_AARCH64_TLS_TPREL: u32 = 1030;
4106pub const R_AARCH64_TLSDESC: u32 = 1031;
4108pub const R_AARCH64_IRELATIVE: u32 = 1032;
4110
4111pub const EF_AVR_ARCH: u32 = 0x7F;
4115
4116pub const EF_AVR_LINKRELAX_PREPARED: u32 = 0x80;
4119
4120pub const EF_AVR_ARCH_AVR1: u32 = 1;
4121pub const EF_AVR_ARCH_AVR2: u32 = 2;
4122pub const EF_AVR_ARCH_AVR25: u32 = 25;
4123pub const EF_AVR_ARCH_AVR3: u32 = 3;
4124pub const EF_AVR_ARCH_AVR31: u32 = 31;
4125pub const EF_AVR_ARCH_AVR35: u32 = 35;
4126pub const EF_AVR_ARCH_AVR4: u32 = 4;
4127pub const EF_AVR_ARCH_AVR5: u32 = 5;
4128pub const EF_AVR_ARCH_AVR51: u32 = 51;
4129pub const EF_AVR_ARCH_AVR6: u32 = 6;
4130pub const EF_AVR_ARCH_AVRTINY: u32 = 100;
4131pub const EF_AVR_ARCH_XMEGA1: u32 = 101;
4132pub const EF_AVR_ARCH_XMEGA2: u32 = 102;
4133pub const EF_AVR_ARCH_XMEGA3: u32 = 103;
4134pub const EF_AVR_ARCH_XMEGA4: u32 = 104;
4135pub const EF_AVR_ARCH_XMEGA5: u32 = 105;
4136pub const EF_AVR_ARCH_XMEGA6: u32 = 106;
4137pub const EF_AVR_ARCH_XMEGA7: u32 = 107;
4138
4139pub const R_AVR_NONE: u32 = 0;
4142pub const R_AVR_32: u32 = 1;
4144pub const R_AVR_7_PCREL: u32 = 2;
4145pub const R_AVR_13_PCREL: u32 = 3;
4146pub const R_AVR_16: u32 = 4;
4148pub const R_AVR_16_PM: u32 = 5;
4149pub const R_AVR_LO8_LDI: u32 = 6;
4150pub const R_AVR_HI8_LDI: u32 = 7;
4151pub const R_AVR_HH8_LDI: u32 = 8;
4152pub const R_AVR_LO8_LDI_NEG: u32 = 9;
4153pub const R_AVR_HI8_LDI_NEG: u32 = 10;
4154pub const R_AVR_HH8_LDI_NEG: u32 = 11;
4155pub const R_AVR_LO8_LDI_PM: u32 = 12;
4156pub const R_AVR_HI8_LDI_PM: u32 = 13;
4157pub const R_AVR_HH8_LDI_PM: u32 = 14;
4158pub const R_AVR_LO8_LDI_PM_NEG: u32 = 15;
4159pub const R_AVR_HI8_LDI_PM_NEG: u32 = 16;
4160pub const R_AVR_HH8_LDI_PM_NEG: u32 = 17;
4161pub const R_AVR_CALL: u32 = 18;
4162pub const R_AVR_LDI: u32 = 19;
4163pub const R_AVR_6: u32 = 20;
4164pub const R_AVR_6_ADIW: u32 = 21;
4165pub const R_AVR_MS8_LDI: u32 = 22;
4166pub const R_AVR_MS8_LDI_NEG: u32 = 23;
4167pub const R_AVR_LO8_LDI_GS: u32 = 24;
4168pub const R_AVR_HI8_LDI_GS: u32 = 25;
4169pub const R_AVR_8: u32 = 26;
4170pub const R_AVR_8_LO8: u32 = 27;
4171pub const R_AVR_8_HI8: u32 = 28;
4172pub const R_AVR_8_HLO8: u32 = 29;
4173pub const R_AVR_DIFF8: u32 = 30;
4174pub const R_AVR_DIFF16: u32 = 31;
4175pub const R_AVR_DIFF32: u32 = 32;
4176pub const R_AVR_LDS_STS_16: u32 = 33;
4177pub const R_AVR_PORT6: u32 = 34;
4178pub const R_AVR_PORT5: u32 = 35;
4179pub const R_AVR_32_PCREL: u32 = 36;
4180
4181pub const R_MSP430_32: u32 = 1;
4185pub const R_MSP430_16_BYTE: u32 = 5;
4187
4188pub const R_HEX_32: u32 = 6;
4192
4193pub const R_ARM_NONE: u32 = 0;
4197pub const R_ARM_PC24: u32 = 1;
4199pub const R_ARM_ABS32: u32 = 2;
4201pub const R_ARM_REL32: u32 = 3;
4203pub const R_ARM_PC13: u32 = 4;
4204pub const R_ARM_ABS16: u32 = 5;
4206pub const R_ARM_ABS12: u32 = 6;
4208pub const R_ARM_THM_ABS5: u32 = 7;
4210pub const R_ARM_ABS8: u32 = 8;
4212pub const R_ARM_SBREL32: u32 = 9;
4213pub const R_ARM_THM_PC22: u32 = 10;
4215pub const R_ARM_THM_PC8: u32 = 11;
4217pub const R_ARM_AMP_VCALL9: u32 = 12;
4218pub const R_ARM_SWI24: u32 = 13;
4220pub const R_ARM_TLS_DESC: u32 = 13;
4222pub const R_ARM_THM_SWI8: u32 = 14;
4224pub const R_ARM_XPC25: u32 = 15;
4226pub const R_ARM_THM_XPC22: u32 = 16;
4228pub const R_ARM_TLS_DTPMOD32: u32 = 17;
4230pub const R_ARM_TLS_DTPOFF32: u32 = 18;
4232pub const R_ARM_TLS_TPOFF32: u32 = 19;
4234pub const R_ARM_COPY: u32 = 20;
4236pub const R_ARM_GLOB_DAT: u32 = 21;
4238pub const R_ARM_JUMP_SLOT: u32 = 22;
4240pub const R_ARM_RELATIVE: u32 = 23;
4242pub const R_ARM_GOTOFF: u32 = 24;
4244pub const R_ARM_GOTPC: u32 = 25;
4246pub const R_ARM_GOT32: u32 = 26;
4248pub const R_ARM_PLT32: u32 = 27;
4250pub const R_ARM_CALL: u32 = 28;
4252pub const R_ARM_JUMP24: u32 = 29;
4254pub const R_ARM_THM_JUMP24: u32 = 30;
4256pub const R_ARM_BASE_ABS: u32 = 31;
4258pub const R_ARM_ALU_PCREL_7_0: u32 = 32;
4260pub const R_ARM_ALU_PCREL_15_8: u32 = 33;
4262pub const R_ARM_ALU_PCREL_23_15: u32 = 34;
4264pub const R_ARM_LDR_SBREL_11_0: u32 = 35;
4266pub const R_ARM_ALU_SBREL_19_12: u32 = 36;
4268pub const R_ARM_ALU_SBREL_27_20: u32 = 37;
4270pub const R_ARM_TARGET1: u32 = 38;
4271pub const R_ARM_SBREL31: u32 = 39;
4273pub const R_ARM_V4BX: u32 = 40;
4274pub const R_ARM_TARGET2: u32 = 41;
4275pub const R_ARM_PREL31: u32 = 42;
4277pub const R_ARM_MOVW_ABS_NC: u32 = 43;
4279pub const R_ARM_MOVT_ABS: u32 = 44;
4281pub const R_ARM_MOVW_PREL_NC: u32 = 45;
4283pub const R_ARM_MOVT_PREL: u32 = 46;
4285pub const R_ARM_THM_MOVW_ABS_NC: u32 = 47;
4287pub const R_ARM_THM_MOVT_ABS: u32 = 48;
4289pub const R_ARM_THM_MOVW_PREL_NC: u32 = 49;
4291pub const R_ARM_THM_MOVT_PREL: u32 = 50;
4293pub const R_ARM_THM_JUMP19: u32 = 51;
4295pub const R_ARM_THM_JUMP6: u32 = 52;
4297pub const R_ARM_THM_ALU_PREL_11_0: u32 = 53;
4299pub const R_ARM_THM_PC12: u32 = 54;
4301pub const R_ARM_ABS32_NOI: u32 = 55;
4303pub const R_ARM_REL32_NOI: u32 = 56;
4305pub const R_ARM_ALU_PC_G0_NC: u32 = 57;
4307pub const R_ARM_ALU_PC_G0: u32 = 58;
4309pub const R_ARM_ALU_PC_G1_NC: u32 = 59;
4311pub const R_ARM_ALU_PC_G1: u32 = 60;
4313pub const R_ARM_ALU_PC_G2: u32 = 61;
4315pub const R_ARM_LDR_PC_G1: u32 = 62;
4317pub const R_ARM_LDR_PC_G2: u32 = 63;
4319pub const R_ARM_LDRS_PC_G0: u32 = 64;
4321pub const R_ARM_LDRS_PC_G1: u32 = 65;
4323pub const R_ARM_LDRS_PC_G2: u32 = 66;
4325pub const R_ARM_LDC_PC_G0: u32 = 67;
4327pub const R_ARM_LDC_PC_G1: u32 = 68;
4329pub const R_ARM_LDC_PC_G2: u32 = 69;
4331pub const R_ARM_ALU_SB_G0_NC: u32 = 70;
4333pub const R_ARM_ALU_SB_G0: u32 = 71;
4335pub const R_ARM_ALU_SB_G1_NC: u32 = 72;
4337pub const R_ARM_ALU_SB_G1: u32 = 73;
4339pub const R_ARM_ALU_SB_G2: u32 = 74;
4341pub const R_ARM_LDR_SB_G0: u32 = 75;
4343pub const R_ARM_LDR_SB_G1: u32 = 76;
4345pub const R_ARM_LDR_SB_G2: u32 = 77;
4347pub const R_ARM_LDRS_SB_G0: u32 = 78;
4349pub const R_ARM_LDRS_SB_G1: u32 = 79;
4351pub const R_ARM_LDRS_SB_G2: u32 = 80;
4353pub const R_ARM_LDC_SB_G0: u32 = 81;
4355pub const R_ARM_LDC_SB_G1: u32 = 82;
4357pub const R_ARM_LDC_SB_G2: u32 = 83;
4359pub const R_ARM_MOVW_BREL_NC: u32 = 84;
4361pub const R_ARM_MOVT_BREL: u32 = 85;
4363pub const R_ARM_MOVW_BREL: u32 = 86;
4365pub const R_ARM_THM_MOVW_BREL_NC: u32 = 87;
4367pub const R_ARM_THM_MOVT_BREL: u32 = 88;
4369pub const R_ARM_THM_MOVW_BREL: u32 = 89;
4371pub const R_ARM_TLS_GOTDESC: u32 = 90;
4372pub const R_ARM_TLS_CALL: u32 = 91;
4373pub const R_ARM_TLS_DESCSEQ: u32 = 92;
4375pub const R_ARM_THM_TLS_CALL: u32 = 93;
4376pub const R_ARM_PLT32_ABS: u32 = 94;
4377pub const R_ARM_GOT_ABS: u32 = 95;
4379pub const R_ARM_GOT_PREL: u32 = 96;
4381pub const R_ARM_GOT_BREL12: u32 = 97;
4383pub const R_ARM_GOTOFF12: u32 = 98;
4385pub const R_ARM_GOTRELAX: u32 = 99;
4386pub const R_ARM_GNU_VTENTRY: u32 = 100;
4387pub const R_ARM_GNU_VTINHERIT: u32 = 101;
4388pub const R_ARM_THM_PC11: u32 = 102;
4390pub const R_ARM_THM_PC9: u32 = 103;
4392pub const R_ARM_TLS_GD32: u32 = 104;
4394pub const R_ARM_TLS_LDM32: u32 = 105;
4396pub const R_ARM_TLS_LDO32: u32 = 106;
4398pub const R_ARM_TLS_IE32: u32 = 107;
4400pub const R_ARM_TLS_LE32: u32 = 108;
4402pub const R_ARM_TLS_LDO12: u32 = 109;
4404pub const R_ARM_TLS_LE12: u32 = 110;
4406pub const R_ARM_TLS_IE12GP: u32 = 111;
4408pub const R_ARM_ME_TOO: u32 = 128;
4410pub const R_ARM_THM_TLS_DESCSEQ: u32 = 129;
4411pub const R_ARM_THM_TLS_DESCSEQ16: u32 = 129;
4412pub const R_ARM_THM_TLS_DESCSEQ32: u32 = 130;
4413pub const R_ARM_THM_GOT_BREL12: u32 = 131;
4415pub const R_ARM_IRELATIVE: u32 = 160;
4416pub const R_ARM_RXPC25: u32 = 249;
4417pub const R_ARM_RSBREL32: u32 = 250;
4418pub const R_ARM_THM_RPC22: u32 = 251;
4419pub const R_ARM_RREL32: u32 = 252;
4420pub const R_ARM_RABS22: u32 = 253;
4421pub const R_ARM_RPC24: u32 = 254;
4422pub const R_ARM_RBASE: u32 = 255;
4423
4424pub const R_CKCORE_NONE: u32 = 0;
4427pub const R_CKCORE_ADDR32: u32 = 1;
4429pub const R_CKCORE_PCRELIMM8BY4: u32 = 2;
4431pub const R_CKCORE_PCRELIMM11BY2: u32 = 3;
4433pub const R_CKCORE_PCREL32: u32 = 5;
4435pub const R_CKCORE_PCRELJSR_IMM11BY2: u32 = 6;
4437pub const R_CKCORE_RELATIVE: u32 = 9;
4439pub const R_CKCORE_COPY: u32 = 10;
4441pub const R_CKCORE_GLOB_DAT: u32 = 11;
4443pub const R_CKCORE_JUMP_SLOT: u32 = 12;
4445pub const R_CKCORE_GOTOFF: u32 = 13;
4447pub const R_CKCORE_GOTPC: u32 = 14;
4449pub const R_CKCORE_GOT32: u32 = 15;
4451pub const R_CKCORE_PLT32: u32 = 16;
4453pub const R_CKCORE_ADDRGOT: u32 = 17;
4455pub const R_CKCORE_ADDRPLT: u32 = 18;
4457pub const R_CKCORE_PCREL_IMM26BY2: u32 = 19;
4459pub const R_CKCORE_PCREL_IMM16BY2: u32 = 20;
4461pub const R_CKCORE_PCREL_IMM16BY4: u32 = 21;
4463pub const R_CKCORE_PCREL_IMM10BY2: u32 = 22;
4465pub const R_CKCORE_PCREL_IMM10BY4: u32 = 23;
4467pub const R_CKCORE_ADDR_HI16: u32 = 24;
4469pub const R_CKCORE_ADDR_LO16: u32 = 25;
4471pub const R_CKCORE_GOTPC_HI16: u32 = 26;
4473pub const R_CKCORE_GOTPC_LO16: u32 = 27;
4475pub const R_CKCORE_GOTOFF_HI16: u32 = 28;
4477pub const R_CKCORE_GOTOFF_LO16: u32 = 29;
4479pub const R_CKCORE_GOT12: u32 = 30;
4481pub const R_CKCORE_GOT_HI16: u32 = 31;
4483pub const R_CKCORE_GOT_LO16: u32 = 32;
4485pub const R_CKCORE_PLT12: u32 = 33;
4487pub const R_CKCORE_PLT_HI16: u32 = 34;
4489pub const R_CKCORE_PLT_LO16: u32 = 35;
4491pub const R_CKCORE_ADDRGOT_HI16: u32 = 36;
4493pub const R_CKCORE_ADDRGOT_LO16: u32 = 37;
4495pub const R_CKCORE_ADDRPLT_HI16: u32 = 38;
4497pub const R_CKCORE_ADDRPLT_LO16: u32 = 39;
4499pub const R_CKCORE_PCREL_JSR_IMM26BY2: u32 = 40;
4501pub const R_CKCORE_TOFFSET_LO16: u32 = 41;
4503pub const R_CKCORE_DOFFSET_LO16: u32 = 42;
4505pub const R_CKCORE_PCREL_IMM18BY2: u32 = 43;
4507pub const R_CKCORE_DOFFSET_IMM18: u32 = 44;
4509pub const R_CKCORE_DOFFSET_IMM18BY2: u32 = 45;
4511pub const R_CKCORE_DOFFSET_IMM18BY4: u32 = 46;
4513pub const R_CKCORE_GOT_IMM18BY4: u32 = 48;
4515pub const R_CKCORE_PLT_IMM18BY4: u32 = 49;
4517pub const R_CKCORE_PCREL_IMM7BY4: u32 = 50;
4519pub const R_CKCORE_TLS_LE32: u32 = 51;
4521pub const R_CKCORE_TLS_IE32: u32 = 52;
4522pub const R_CKCORE_TLS_GD32: u32 = 53;
4523pub const R_CKCORE_TLS_LDM32: u32 = 54;
4524pub const R_CKCORE_TLS_LDO32: u32 = 55;
4525pub const R_CKCORE_TLS_DTPMOD32: u32 = 56;
4526pub const R_CKCORE_TLS_DTPOFF32: u32 = 57;
4527pub const R_CKCORE_TLS_TPOFF32: u32 = 58;
4528
4529pub const EF_CSKY_ABIMASK: u32 = 0xF000_0000;
4531pub const EF_CSKY_OTHER: u32 = 0x0FFF_0000;
4532pub const EF_CSKY_PROCESSOR: u32 = 0x0000_FFFF;
4533
4534pub const EF_CSKY_ABIV1: u32 = 0x1000_0000;
4535pub const EF_CSKY_ABIV2: u32 = 0x2000_0000;
4536
4537pub const SHT_CSKY_ATTRIBUTES: u32 = SHT_LOPROC + 1;
4540
4541pub const EF_IA_64_MASKOS: u32 = 0x0000_000f;
4546pub const EF_IA_64_ABI64: u32 = 0x0000_0010;
4548pub const EF_IA_64_ARCH: u32 = 0xff00_0000;
4550
4551pub const PT_IA_64_ARCHEXT: u32 = PT_LOPROC + 0;
4554pub const PT_IA_64_UNWIND: u32 = PT_LOPROC + 1;
4556pub const PT_IA_64_HP_OPT_ANOT: u32 = PT_LOOS + 0x12;
4557pub const PT_IA_64_HP_HSL_ANOT: u32 = PT_LOOS + 0x13;
4558pub const PT_IA_64_HP_STACK: u32 = PT_LOOS + 0x14;
4559
4560pub const PF_IA_64_NORECOV: u32 = 0x8000_0000;
4563
4564pub const SHT_IA_64_EXT: u32 = SHT_LOPROC + 0;
4567pub const SHT_IA_64_UNWIND: u32 = SHT_LOPROC + 1;
4569
4570pub const SHF_IA_64_SHORT: u32 = 0x1000_0000;
4573pub const SHF_IA_64_NORECOV: u32 = 0x2000_0000;
4575
4576pub const DT_IA_64_PLT_RESERVE: u32 = DT_LOPROC + 0;
4578
4579pub const R_IA64_NONE: u32 = 0x00;
4582pub const R_IA64_IMM14: u32 = 0x21;
4584pub const R_IA64_IMM22: u32 = 0x22;
4586pub const R_IA64_IMM64: u32 = 0x23;
4588pub const R_IA64_DIR32MSB: u32 = 0x24;
4590pub const R_IA64_DIR32LSB: u32 = 0x25;
4592pub const R_IA64_DIR64MSB: u32 = 0x26;
4594pub const R_IA64_DIR64LSB: u32 = 0x27;
4596pub const R_IA64_GPREL22: u32 = 0x2a;
4598pub const R_IA64_GPREL64I: u32 = 0x2b;
4600pub const R_IA64_GPREL32MSB: u32 = 0x2c;
4602pub const R_IA64_GPREL32LSB: u32 = 0x2d;
4604pub const R_IA64_GPREL64MSB: u32 = 0x2e;
4606pub const R_IA64_GPREL64LSB: u32 = 0x2f;
4608pub const R_IA64_LTOFF22: u32 = 0x32;
4610pub const R_IA64_LTOFF64I: u32 = 0x33;
4612pub const R_IA64_PLTOFF22: u32 = 0x3a;
4614pub const R_IA64_PLTOFF64I: u32 = 0x3b;
4616pub const R_IA64_PLTOFF64MSB: u32 = 0x3e;
4618pub const R_IA64_PLTOFF64LSB: u32 = 0x3f;
4620pub const R_IA64_FPTR64I: u32 = 0x43;
4622pub const R_IA64_FPTR32MSB: u32 = 0x44;
4624pub const R_IA64_FPTR32LSB: u32 = 0x45;
4626pub const R_IA64_FPTR64MSB: u32 = 0x46;
4628pub const R_IA64_FPTR64LSB: u32 = 0x47;
4630pub const R_IA64_PCREL60B: u32 = 0x48;
4632pub const R_IA64_PCREL21B: u32 = 0x49;
4634pub const R_IA64_PCREL21M: u32 = 0x4a;
4636pub const R_IA64_PCREL21F: u32 = 0x4b;
4638pub const R_IA64_PCREL32MSB: u32 = 0x4c;
4640pub const R_IA64_PCREL32LSB: u32 = 0x4d;
4642pub const R_IA64_PCREL64MSB: u32 = 0x4e;
4644pub const R_IA64_PCREL64LSB: u32 = 0x4f;
4646pub const R_IA64_LTOFF_FPTR22: u32 = 0x52;
4648pub const R_IA64_LTOFF_FPTR64I: u32 = 0x53;
4650pub const R_IA64_LTOFF_FPTR32MSB: u32 = 0x54;
4652pub const R_IA64_LTOFF_FPTR32LSB: u32 = 0x55;
4654pub const R_IA64_LTOFF_FPTR64MSB: u32 = 0x56;
4656pub const R_IA64_LTOFF_FPTR64LSB: u32 = 0x57;
4658pub const R_IA64_SEGREL32MSB: u32 = 0x5c;
4660pub const R_IA64_SEGREL32LSB: u32 = 0x5d;
4662pub const R_IA64_SEGREL64MSB: u32 = 0x5e;
4664pub const R_IA64_SEGREL64LSB: u32 = 0x5f;
4666pub const R_IA64_SECREL32MSB: u32 = 0x64;
4668pub const R_IA64_SECREL32LSB: u32 = 0x65;
4670pub const R_IA64_SECREL64MSB: u32 = 0x66;
4672pub const R_IA64_SECREL64LSB: u32 = 0x67;
4674pub const R_IA64_REL32MSB: u32 = 0x6c;
4676pub const R_IA64_REL32LSB: u32 = 0x6d;
4678pub const R_IA64_REL64MSB: u32 = 0x6e;
4680pub const R_IA64_REL64LSB: u32 = 0x6f;
4682pub const R_IA64_LTV32MSB: u32 = 0x74;
4684pub const R_IA64_LTV32LSB: u32 = 0x75;
4686pub const R_IA64_LTV64MSB: u32 = 0x76;
4688pub const R_IA64_LTV64LSB: u32 = 0x77;
4690pub const R_IA64_PCREL21BI: u32 = 0x79;
4692pub const R_IA64_PCREL22: u32 = 0x7a;
4694pub const R_IA64_PCREL64I: u32 = 0x7b;
4696pub const R_IA64_IPLTMSB: u32 = 0x80;
4698pub const R_IA64_IPLTLSB: u32 = 0x81;
4700pub const R_IA64_COPY: u32 = 0x84;
4702pub const R_IA64_SUB: u32 = 0x85;
4704pub const R_IA64_LTOFF22X: u32 = 0x86;
4706pub const R_IA64_LDXMOV: u32 = 0x87;
4708pub const R_IA64_TPREL14: u32 = 0x91;
4710pub const R_IA64_TPREL22: u32 = 0x92;
4712pub const R_IA64_TPREL64I: u32 = 0x93;
4714pub const R_IA64_TPREL64MSB: u32 = 0x96;
4716pub const R_IA64_TPREL64LSB: u32 = 0x97;
4718pub const R_IA64_LTOFF_TPREL22: u32 = 0x9a;
4720pub const R_IA64_DTPMOD64MSB: u32 = 0xa6;
4722pub const R_IA64_DTPMOD64LSB: u32 = 0xa7;
4724pub const R_IA64_LTOFF_DTPMOD22: u32 = 0xaa;
4726pub const R_IA64_DTPREL14: u32 = 0xb1;
4728pub const R_IA64_DTPREL22: u32 = 0xb2;
4730pub const R_IA64_DTPREL64I: u32 = 0xb3;
4732pub const R_IA64_DTPREL32MSB: u32 = 0xb4;
4734pub const R_IA64_DTPREL32LSB: u32 = 0xb5;
4736pub const R_IA64_DTPREL64MSB: u32 = 0xb6;
4738pub const R_IA64_DTPREL64LSB: u32 = 0xb7;
4740pub const R_IA64_LTOFF_DTPREL22: u32 = 0xba;
4742
4743pub const EF_SH_MACH_MASK: u32 = 0x1f;
4747pub const EF_SH_UNKNOWN: u32 = 0x0;
4748pub const EF_SH1: u32 = 0x1;
4749pub const EF_SH2: u32 = 0x2;
4750pub const EF_SH3: u32 = 0x3;
4751pub const EF_SH_DSP: u32 = 0x4;
4752pub const EF_SH3_DSP: u32 = 0x5;
4753pub const EF_SH4AL_DSP: u32 = 0x6;
4754pub const EF_SH3E: u32 = 0x8;
4755pub const EF_SH4: u32 = 0x9;
4756pub const EF_SH2E: u32 = 0xb;
4757pub const EF_SH4A: u32 = 0xc;
4758pub const EF_SH2A: u32 = 0xd;
4759pub const EF_SH4_NOFPU: u32 = 0x10;
4760pub const EF_SH4A_NOFPU: u32 = 0x11;
4761pub const EF_SH4_NOMMU_NOFPU: u32 = 0x12;
4762pub const EF_SH2A_NOFPU: u32 = 0x13;
4763pub const EF_SH3_NOMMU: u32 = 0x14;
4764pub const EF_SH2A_SH4_NOFPU: u32 = 0x15;
4765pub const EF_SH2A_SH3_NOFPU: u32 = 0x16;
4766pub const EF_SH2A_SH4: u32 = 0x17;
4767pub const EF_SH2A_SH3E: u32 = 0x18;
4768
4769pub const R_SH_NONE: u32 = 0;
4771pub const R_SH_DIR32: u32 = 1;
4772pub const R_SH_REL32: u32 = 2;
4773pub const R_SH_DIR8WPN: u32 = 3;
4774pub const R_SH_IND12W: u32 = 4;
4775pub const R_SH_DIR8WPL: u32 = 5;
4776pub const R_SH_DIR8WPZ: u32 = 6;
4777pub const R_SH_DIR8BP: u32 = 7;
4778pub const R_SH_DIR8W: u32 = 8;
4779pub const R_SH_DIR8L: u32 = 9;
4780pub const R_SH_SWITCH16: u32 = 25;
4781pub const R_SH_SWITCH32: u32 = 26;
4782pub const R_SH_USES: u32 = 27;
4783pub const R_SH_COUNT: u32 = 28;
4784pub const R_SH_ALIGN: u32 = 29;
4785pub const R_SH_CODE: u32 = 30;
4786pub const R_SH_DATA: u32 = 31;
4787pub const R_SH_LABEL: u32 = 32;
4788pub const R_SH_SWITCH8: u32 = 33;
4789pub const R_SH_GNU_VTINHERIT: u32 = 34;
4790pub const R_SH_GNU_VTENTRY: u32 = 35;
4791pub const R_SH_TLS_GD_32: u32 = 144;
4792pub const R_SH_TLS_LD_32: u32 = 145;
4793pub const R_SH_TLS_LDO_32: u32 = 146;
4794pub const R_SH_TLS_IE_32: u32 = 147;
4795pub const R_SH_TLS_LE_32: u32 = 148;
4796pub const R_SH_TLS_DTPMOD32: u32 = 149;
4797pub const R_SH_TLS_DTPOFF32: u32 = 150;
4798pub const R_SH_TLS_TPOFF32: u32 = 151;
4799pub const R_SH_GOT32: u32 = 160;
4800pub const R_SH_PLT32: u32 = 161;
4801pub const R_SH_COPY: u32 = 162;
4802pub const R_SH_GLOB_DAT: u32 = 163;
4803pub const R_SH_JMP_SLOT: u32 = 164;
4804pub const R_SH_RELATIVE: u32 = 165;
4805pub const R_SH_GOTOFF: u32 = 166;
4806pub const R_SH_GOTPC: u32 = 167;
4807
4808pub const EF_S390_HIGH_GPRS: u32 = 0x0000_0001;
4814
4815pub const R_390_NONE: u32 = 0;
4819pub const R_390_8: u32 = 1;
4821pub const R_390_12: u32 = 2;
4823pub const R_390_16: u32 = 3;
4825pub const R_390_32: u32 = 4;
4827pub const R_390_PC32: u32 = 5;
4829pub const R_390_GOT12: u32 = 6;
4831pub const R_390_GOT32: u32 = 7;
4833pub const R_390_PLT32: u32 = 8;
4835pub const R_390_COPY: u32 = 9;
4837pub const R_390_GLOB_DAT: u32 = 10;
4839pub const R_390_JMP_SLOT: u32 = 11;
4841pub const R_390_RELATIVE: u32 = 12;
4843pub const R_390_GOTOFF32: u32 = 13;
4845pub const R_390_GOTPC: u32 = 14;
4847pub const R_390_GOT16: u32 = 15;
4849pub const R_390_PC16: u32 = 16;
4851pub const R_390_PC16DBL: u32 = 17;
4853pub const R_390_PLT16DBL: u32 = 18;
4855pub const R_390_PC32DBL: u32 = 19;
4857pub const R_390_PLT32DBL: u32 = 20;
4859pub const R_390_GOTPCDBL: u32 = 21;
4861pub const R_390_64: u32 = 22;
4863pub const R_390_PC64: u32 = 23;
4865pub const R_390_GOT64: u32 = 24;
4867pub const R_390_PLT64: u32 = 25;
4869pub const R_390_GOTENT: u32 = 26;
4871pub const R_390_GOTOFF16: u32 = 27;
4873pub const R_390_GOTOFF64: u32 = 28;
4875pub const R_390_GOTPLT12: u32 = 29;
4877pub const R_390_GOTPLT16: u32 = 30;
4879pub const R_390_GOTPLT32: u32 = 31;
4881pub const R_390_GOTPLT64: u32 = 32;
4883pub const R_390_GOTPLTENT: u32 = 33;
4885pub const R_390_PLTOFF16: u32 = 34;
4887pub const R_390_PLTOFF32: u32 = 35;
4889pub const R_390_PLTOFF64: u32 = 36;
4891pub const R_390_TLS_LOAD: u32 = 37;
4893pub const R_390_TLS_GDCALL: u32 = 38;
4895pub const R_390_TLS_LDCALL: u32 = 39;
4897pub const R_390_TLS_GD32: u32 = 40;
4899pub const R_390_TLS_GD64: u32 = 41;
4901pub const R_390_TLS_GOTIE12: u32 = 42;
4903pub const R_390_TLS_GOTIE32: u32 = 43;
4905pub const R_390_TLS_GOTIE64: u32 = 44;
4907pub const R_390_TLS_LDM32: u32 = 45;
4909pub const R_390_TLS_LDM64: u32 = 46;
4911pub const R_390_TLS_IE32: u32 = 47;
4913pub const R_390_TLS_IE64: u32 = 48;
4915pub const R_390_TLS_IEENT: u32 = 49;
4917pub const R_390_TLS_LE32: u32 = 50;
4919pub const R_390_TLS_LE64: u32 = 51;
4921pub const R_390_TLS_LDO32: u32 = 52;
4923pub const R_390_TLS_LDO64: u32 = 53;
4925pub const R_390_TLS_DTPMOD: u32 = 54;
4927pub const R_390_TLS_DTPOFF: u32 = 55;
4929pub const R_390_TLS_TPOFF: u32 = 56;
4931pub const R_390_20: u32 = 57;
4933pub const R_390_GOT20: u32 = 58;
4935pub const R_390_GOTPLT20: u32 = 59;
4937pub const R_390_TLS_GOTIE20: u32 = 60;
4939pub const R_390_IRELATIVE: u32 = 61;
4941
4942pub const R_CRIS_NONE: u32 = 0;
4944pub const R_CRIS_8: u32 = 1;
4945pub const R_CRIS_16: u32 = 2;
4946pub const R_CRIS_32: u32 = 3;
4947pub const R_CRIS_8_PCREL: u32 = 4;
4948pub const R_CRIS_16_PCREL: u32 = 5;
4949pub const R_CRIS_32_PCREL: u32 = 6;
4950pub const R_CRIS_GNU_VTINHERIT: u32 = 7;
4951pub const R_CRIS_GNU_VTENTRY: u32 = 8;
4952pub const R_CRIS_COPY: u32 = 9;
4953pub const R_CRIS_GLOB_DAT: u32 = 10;
4954pub const R_CRIS_JUMP_SLOT: u32 = 11;
4955pub const R_CRIS_RELATIVE: u32 = 12;
4956pub const R_CRIS_16_GOT: u32 = 13;
4957pub const R_CRIS_32_GOT: u32 = 14;
4958pub const R_CRIS_16_GOTPLT: u32 = 15;
4959pub const R_CRIS_32_GOTPLT: u32 = 16;
4960pub const R_CRIS_32_GOTREL: u32 = 17;
4961pub const R_CRIS_32_PLT_GOTREL: u32 = 18;
4962pub const R_CRIS_32_PLT_PCREL: u32 = 19;
4963
4964pub const R_X86_64_NONE: u32 = 0;
4967pub const R_X86_64_64: u32 = 1;
4969pub const R_X86_64_PC32: u32 = 2;
4971pub const R_X86_64_GOT32: u32 = 3;
4973pub const R_X86_64_PLT32: u32 = 4;
4975pub const R_X86_64_COPY: u32 = 5;
4977pub const R_X86_64_GLOB_DAT: u32 = 6;
4979pub const R_X86_64_JUMP_SLOT: u32 = 7;
4981pub const R_X86_64_RELATIVE: u32 = 8;
4983pub const R_X86_64_GOTPCREL: u32 = 9;
4985pub const R_X86_64_32: u32 = 10;
4987pub const R_X86_64_32S: u32 = 11;
4989pub const R_X86_64_16: u32 = 12;
4991pub const R_X86_64_PC16: u32 = 13;
4993pub const R_X86_64_8: u32 = 14;
4995pub const R_X86_64_PC8: u32 = 15;
4997pub const R_X86_64_DTPMOD64: u32 = 16;
4999pub const R_X86_64_DTPOFF64: u32 = 17;
5001pub const R_X86_64_TPOFF64: u32 = 18;
5003pub const R_X86_64_TLSGD: u32 = 19;
5005pub const R_X86_64_TLSLD: u32 = 20;
5007pub const R_X86_64_DTPOFF32: u32 = 21;
5009pub const R_X86_64_GOTTPOFF: u32 = 22;
5011pub const R_X86_64_TPOFF32: u32 = 23;
5013pub const R_X86_64_PC64: u32 = 24;
5015pub const R_X86_64_GOTOFF64: u32 = 25;
5017pub const R_X86_64_GOTPC32: u32 = 26;
5019pub const R_X86_64_GOT64: u32 = 27;
5021pub const R_X86_64_GOTPCREL64: u32 = 28;
5023pub const R_X86_64_GOTPC64: u32 = 29;
5025pub const R_X86_64_GOTPLT64: u32 = 30;
5027pub const R_X86_64_PLTOFF64: u32 = 31;
5029pub const R_X86_64_SIZE32: u32 = 32;
5031pub const R_X86_64_SIZE64: u32 = 33;
5033pub const R_X86_64_GOTPC32_TLSDESC: u32 = 34;
5035pub const R_X86_64_TLSDESC_CALL: u32 = 35;
5037pub const R_X86_64_TLSDESC: u32 = 36;
5039pub const R_X86_64_IRELATIVE: u32 = 37;
5041pub const R_X86_64_RELATIVE64: u32 = 38;
5043pub const R_X86_64_GOTPCRELX: u32 = 41;
5047pub const R_X86_64_REX_GOTPCRELX: u32 = 42;
5049
5050pub const SHT_X86_64_UNWIND: u32 = 0x7000_0001;
5053
5054pub const R_MN10300_NONE: u32 = 0;
5057pub const R_MN10300_32: u32 = 1;
5059pub const R_MN10300_16: u32 = 2;
5061pub const R_MN10300_8: u32 = 3;
5063pub const R_MN10300_PCREL32: u32 = 4;
5065pub const R_MN10300_PCREL16: u32 = 5;
5067pub const R_MN10300_PCREL8: u32 = 6;
5069pub const R_MN10300_GNU_VTINHERIT: u32 = 7;
5071pub const R_MN10300_GNU_VTENTRY: u32 = 8;
5073pub const R_MN10300_24: u32 = 9;
5075pub const R_MN10300_GOTPC32: u32 = 10;
5077pub const R_MN10300_GOTPC16: u32 = 11;
5079pub const R_MN10300_GOTOFF32: u32 = 12;
5081pub const R_MN10300_GOTOFF24: u32 = 13;
5083pub const R_MN10300_GOTOFF16: u32 = 14;
5085pub const R_MN10300_PLT32: u32 = 15;
5087pub const R_MN10300_PLT16: u32 = 16;
5089pub const R_MN10300_GOT32: u32 = 17;
5091pub const R_MN10300_GOT24: u32 = 18;
5093pub const R_MN10300_GOT16: u32 = 19;
5095pub const R_MN10300_COPY: u32 = 20;
5097pub const R_MN10300_GLOB_DAT: u32 = 21;
5099pub const R_MN10300_JMP_SLOT: u32 = 22;
5101pub const R_MN10300_RELATIVE: u32 = 23;
5103pub const R_MN10300_TLS_GD: u32 = 24;
5105pub const R_MN10300_TLS_LD: u32 = 25;
5107pub const R_MN10300_TLS_LDO: u32 = 26;
5109pub const R_MN10300_TLS_GOTIE: u32 = 27;
5111pub const R_MN10300_TLS_IE: u32 = 28;
5113pub const R_MN10300_TLS_LE: u32 = 29;
5115pub const R_MN10300_TLS_DTPMOD: u32 = 30;
5117pub const R_MN10300_TLS_DTPOFF: u32 = 31;
5119pub const R_MN10300_TLS_TPOFF: u32 = 32;
5121pub const R_MN10300_SYM_DIFF: u32 = 33;
5123pub const R_MN10300_ALIGN: u32 = 34;
5125
5126pub const R_M32R_NONE: u32 = 0;
5129pub const R_M32R_16: u32 = 1;
5131pub const R_M32R_32: u32 = 2;
5133pub const R_M32R_24: u32 = 3;
5135pub const R_M32R_10_PCREL: u32 = 4;
5137pub const R_M32R_18_PCREL: u32 = 5;
5139pub const R_M32R_26_PCREL: u32 = 6;
5141pub const R_M32R_HI16_ULO: u32 = 7;
5143pub const R_M32R_HI16_SLO: u32 = 8;
5145pub const R_M32R_LO16: u32 = 9;
5147pub const R_M32R_SDA16: u32 = 10;
5149pub const R_M32R_GNU_VTINHERIT: u32 = 11;
5150pub const R_M32R_GNU_VTENTRY: u32 = 12;
5151pub const R_M32R_16_RELA: u32 = 33;
5154pub const R_M32R_32_RELA: u32 = 34;
5156pub const R_M32R_24_RELA: u32 = 35;
5158pub const R_M32R_10_PCREL_RELA: u32 = 36;
5160pub const R_M32R_18_PCREL_RELA: u32 = 37;
5162pub const R_M32R_26_PCREL_RELA: u32 = 38;
5164pub const R_M32R_HI16_ULO_RELA: u32 = 39;
5166pub const R_M32R_HI16_SLO_RELA: u32 = 40;
5168pub const R_M32R_LO16_RELA: u32 = 41;
5170pub const R_M32R_SDA16_RELA: u32 = 42;
5172pub const R_M32R_RELA_GNU_VTINHERIT: u32 = 43;
5173pub const R_M32R_RELA_GNU_VTENTRY: u32 = 44;
5174pub const R_M32R_REL32: u32 = 45;
5176
5177pub const R_M32R_GOT24: u32 = 48;
5179pub const R_M32R_26_PLTREL: u32 = 49;
5181pub const R_M32R_COPY: u32 = 50;
5183pub const R_M32R_GLOB_DAT: u32 = 51;
5185pub const R_M32R_JMP_SLOT: u32 = 52;
5187pub const R_M32R_RELATIVE: u32 = 53;
5189pub const R_M32R_GOTOFF: u32 = 54;
5191pub const R_M32R_GOTPC24: u32 = 55;
5193pub const R_M32R_GOT16_HI_ULO: u32 = 56;
5195pub const R_M32R_GOT16_HI_SLO: u32 = 57;
5197pub const R_M32R_GOT16_LO: u32 = 58;
5199pub const R_M32R_GOTPC_HI_ULO: u32 = 59;
5201pub const R_M32R_GOTPC_HI_SLO: u32 = 60;
5203pub const R_M32R_GOTPC_LO: u32 = 61;
5205pub const R_M32R_GOTOFF_HI_ULO: u32 = 62;
5207pub const R_M32R_GOTOFF_HI_SLO: u32 = 63;
5209pub const R_M32R_GOTOFF_LO: u32 = 64;
5211pub const R_M32R_NUM: u32 = 256;
5213
5214pub const R_MICROBLAZE_NONE: u32 = 0;
5217pub const R_MICROBLAZE_32: u32 = 1;
5219pub const R_MICROBLAZE_32_PCREL: u32 = 2;
5221pub const R_MICROBLAZE_64_PCREL: u32 = 3;
5223pub const R_MICROBLAZE_32_PCREL_LO: u32 = 4;
5225pub const R_MICROBLAZE_64: u32 = 5;
5227pub const R_MICROBLAZE_32_LO: u32 = 6;
5229pub const R_MICROBLAZE_SRO32: u32 = 7;
5231pub const R_MICROBLAZE_SRW32: u32 = 8;
5233pub const R_MICROBLAZE_64_NONE: u32 = 9;
5235pub const R_MICROBLAZE_32_SYM_OP_SYM: u32 = 10;
5237pub const R_MICROBLAZE_GNU_VTINHERIT: u32 = 11;
5239pub const R_MICROBLAZE_GNU_VTENTRY: u32 = 12;
5241pub const R_MICROBLAZE_GOTPC_64: u32 = 13;
5243pub const R_MICROBLAZE_GOT_64: u32 = 14;
5245pub const R_MICROBLAZE_PLT_64: u32 = 15;
5247pub const R_MICROBLAZE_REL: u32 = 16;
5249pub const R_MICROBLAZE_JUMP_SLOT: u32 = 17;
5251pub const R_MICROBLAZE_GLOB_DAT: u32 = 18;
5253pub const R_MICROBLAZE_GOTOFF_64: u32 = 19;
5255pub const R_MICROBLAZE_GOTOFF_32: u32 = 20;
5257pub const R_MICROBLAZE_COPY: u32 = 21;
5259pub const R_MICROBLAZE_TLS: u32 = 22;
5261pub const R_MICROBLAZE_TLSGD: u32 = 23;
5263pub const R_MICROBLAZE_TLSLD: u32 = 24;
5265pub const R_MICROBLAZE_TLSDTPMOD32: u32 = 25;
5267pub const R_MICROBLAZE_TLSDTPREL32: u32 = 26;
5269pub const R_MICROBLAZE_TLSDTPREL64: u32 = 27;
5271pub const R_MICROBLAZE_TLSGOTTPREL32: u32 = 28;
5273pub const R_MICROBLAZE_TLSTPREL32: u32 = 29;
5275
5276pub const DT_NIOS2_GP: u32 = 0x7000_0002;
5279
5280pub const R_NIOS2_NONE: u32 = 0;
5283pub const R_NIOS2_S16: u32 = 1;
5285pub const R_NIOS2_U16: u32 = 2;
5287pub const R_NIOS2_PCREL16: u32 = 3;
5289pub const R_NIOS2_CALL26: u32 = 4;
5291pub const R_NIOS2_IMM5: u32 = 5;
5293pub const R_NIOS2_CACHE_OPX: u32 = 6;
5295pub const R_NIOS2_IMM6: u32 = 7;
5297pub const R_NIOS2_IMM8: u32 = 8;
5299pub const R_NIOS2_HI16: u32 = 9;
5301pub const R_NIOS2_LO16: u32 = 10;
5303pub const R_NIOS2_HIADJ16: u32 = 11;
5305pub const R_NIOS2_BFD_RELOC_32: u32 = 12;
5307pub const R_NIOS2_BFD_RELOC_16: u32 = 13;
5309pub const R_NIOS2_BFD_RELOC_8: u32 = 14;
5311pub const R_NIOS2_GPREL: u32 = 15;
5313pub const R_NIOS2_GNU_VTINHERIT: u32 = 16;
5315pub const R_NIOS2_GNU_VTENTRY: u32 = 17;
5317pub const R_NIOS2_UJMP: u32 = 18;
5319pub const R_NIOS2_CJMP: u32 = 19;
5321pub const R_NIOS2_CALLR: u32 = 20;
5323pub const R_NIOS2_ALIGN: u32 = 21;
5325pub const R_NIOS2_GOT16: u32 = 22;
5327pub const R_NIOS2_CALL16: u32 = 23;
5329pub const R_NIOS2_GOTOFF_LO: u32 = 24;
5331pub const R_NIOS2_GOTOFF_HA: u32 = 25;
5333pub const R_NIOS2_PCREL_LO: u32 = 26;
5335pub const R_NIOS2_PCREL_HA: u32 = 27;
5337pub const R_NIOS2_TLS_GD16: u32 = 28;
5339pub const R_NIOS2_TLS_LDM16: u32 = 29;
5341pub const R_NIOS2_TLS_LDO16: u32 = 30;
5343pub const R_NIOS2_TLS_IE16: u32 = 31;
5345pub const R_NIOS2_TLS_LE16: u32 = 32;
5347pub const R_NIOS2_TLS_DTPMOD: u32 = 33;
5349pub const R_NIOS2_TLS_DTPREL: u32 = 34;
5351pub const R_NIOS2_TLS_TPREL: u32 = 35;
5353pub const R_NIOS2_COPY: u32 = 36;
5355pub const R_NIOS2_GLOB_DAT: u32 = 37;
5357pub const R_NIOS2_JUMP_SLOT: u32 = 38;
5359pub const R_NIOS2_RELATIVE: u32 = 39;
5361pub const R_NIOS2_GOTOFF: u32 = 40;
5363pub const R_NIOS2_CALL26_NOAT: u32 = 41;
5365pub const R_NIOS2_GOT_LO: u32 = 42;
5367pub const R_NIOS2_GOT_HA: u32 = 43;
5369pub const R_NIOS2_CALL_LO: u32 = 44;
5371pub const R_NIOS2_CALL_HA: u32 = 45;
5373
5374pub const R_TILEPRO_NONE: u32 = 0;
5377pub const R_TILEPRO_32: u32 = 1;
5379pub const R_TILEPRO_16: u32 = 2;
5381pub const R_TILEPRO_8: u32 = 3;
5383pub const R_TILEPRO_32_PCREL: u32 = 4;
5385pub const R_TILEPRO_16_PCREL: u32 = 5;
5387pub const R_TILEPRO_8_PCREL: u32 = 6;
5389pub const R_TILEPRO_LO16: u32 = 7;
5391pub const R_TILEPRO_HI16: u32 = 8;
5393pub const R_TILEPRO_HA16: u32 = 9;
5395pub const R_TILEPRO_COPY: u32 = 10;
5397pub const R_TILEPRO_GLOB_DAT: u32 = 11;
5399pub const R_TILEPRO_JMP_SLOT: u32 = 12;
5401pub const R_TILEPRO_RELATIVE: u32 = 13;
5403pub const R_TILEPRO_BROFF_X1: u32 = 14;
5405pub const R_TILEPRO_JOFFLONG_X1: u32 = 15;
5407pub const R_TILEPRO_JOFFLONG_X1_PLT: u32 = 16;
5409pub const R_TILEPRO_IMM8_X0: u32 = 17;
5411pub const R_TILEPRO_IMM8_Y0: u32 = 18;
5413pub const R_TILEPRO_IMM8_X1: u32 = 19;
5415pub const R_TILEPRO_IMM8_Y1: u32 = 20;
5417pub const R_TILEPRO_MT_IMM15_X1: u32 = 21;
5419pub const R_TILEPRO_MF_IMM15_X1: u32 = 22;
5421pub const R_TILEPRO_IMM16_X0: u32 = 23;
5423pub const R_TILEPRO_IMM16_X1: u32 = 24;
5425pub const R_TILEPRO_IMM16_X0_LO: u32 = 25;
5427pub const R_TILEPRO_IMM16_X1_LO: u32 = 26;
5429pub const R_TILEPRO_IMM16_X0_HI: u32 = 27;
5431pub const R_TILEPRO_IMM16_X1_HI: u32 = 28;
5433pub const R_TILEPRO_IMM16_X0_HA: u32 = 29;
5435pub const R_TILEPRO_IMM16_X1_HA: u32 = 30;
5437pub const R_TILEPRO_IMM16_X0_PCREL: u32 = 31;
5439pub const R_TILEPRO_IMM16_X1_PCREL: u32 = 32;
5441pub const R_TILEPRO_IMM16_X0_LO_PCREL: u32 = 33;
5443pub const R_TILEPRO_IMM16_X1_LO_PCREL: u32 = 34;
5445pub const R_TILEPRO_IMM16_X0_HI_PCREL: u32 = 35;
5447pub const R_TILEPRO_IMM16_X1_HI_PCREL: u32 = 36;
5449pub const R_TILEPRO_IMM16_X0_HA_PCREL: u32 = 37;
5451pub const R_TILEPRO_IMM16_X1_HA_PCREL: u32 = 38;
5453pub const R_TILEPRO_IMM16_X0_GOT: u32 = 39;
5455pub const R_TILEPRO_IMM16_X1_GOT: u32 = 40;
5457pub const R_TILEPRO_IMM16_X0_GOT_LO: u32 = 41;
5459pub const R_TILEPRO_IMM16_X1_GOT_LO: u32 = 42;
5461pub const R_TILEPRO_IMM16_X0_GOT_HI: u32 = 43;
5463pub const R_TILEPRO_IMM16_X1_GOT_HI: u32 = 44;
5465pub const R_TILEPRO_IMM16_X0_GOT_HA: u32 = 45;
5467pub const R_TILEPRO_IMM16_X1_GOT_HA: u32 = 46;
5469pub const R_TILEPRO_MMSTART_X0: u32 = 47;
5471pub const R_TILEPRO_MMEND_X0: u32 = 48;
5473pub const R_TILEPRO_MMSTART_X1: u32 = 49;
5475pub const R_TILEPRO_MMEND_X1: u32 = 50;
5477pub const R_TILEPRO_SHAMT_X0: u32 = 51;
5479pub const R_TILEPRO_SHAMT_X1: u32 = 52;
5481pub const R_TILEPRO_SHAMT_Y0: u32 = 53;
5483pub const R_TILEPRO_SHAMT_Y1: u32 = 54;
5485pub const R_TILEPRO_DEST_IMM8_X1: u32 = 55;
5487pub const R_TILEPRO_TLS_GD_CALL: u32 = 60;
5490pub const R_TILEPRO_IMM8_X0_TLS_GD_ADD: u32 = 61;
5492pub const R_TILEPRO_IMM8_X1_TLS_GD_ADD: u32 = 62;
5494pub const R_TILEPRO_IMM8_Y0_TLS_GD_ADD: u32 = 63;
5496pub const R_TILEPRO_IMM8_Y1_TLS_GD_ADD: u32 = 64;
5498pub const R_TILEPRO_TLS_IE_LOAD: u32 = 65;
5500pub const R_TILEPRO_IMM16_X0_TLS_GD: u32 = 66;
5502pub const R_TILEPRO_IMM16_X1_TLS_GD: u32 = 67;
5504pub const R_TILEPRO_IMM16_X0_TLS_GD_LO: u32 = 68;
5506pub const R_TILEPRO_IMM16_X1_TLS_GD_LO: u32 = 69;
5508pub const R_TILEPRO_IMM16_X0_TLS_GD_HI: u32 = 70;
5510pub const R_TILEPRO_IMM16_X1_TLS_GD_HI: u32 = 71;
5512pub const R_TILEPRO_IMM16_X0_TLS_GD_HA: u32 = 72;
5514pub const R_TILEPRO_IMM16_X1_TLS_GD_HA: u32 = 73;
5516pub const R_TILEPRO_IMM16_X0_TLS_IE: u32 = 74;
5518pub const R_TILEPRO_IMM16_X1_TLS_IE: u32 = 75;
5520pub const R_TILEPRO_IMM16_X0_TLS_IE_LO: u32 = 76;
5522pub const R_TILEPRO_IMM16_X1_TLS_IE_LO: u32 = 77;
5524pub const R_TILEPRO_IMM16_X0_TLS_IE_HI: u32 = 78;
5526pub const R_TILEPRO_IMM16_X1_TLS_IE_HI: u32 = 79;
5528pub const R_TILEPRO_IMM16_X0_TLS_IE_HA: u32 = 80;
5530pub const R_TILEPRO_IMM16_X1_TLS_IE_HA: u32 = 81;
5532pub const R_TILEPRO_TLS_DTPMOD32: u32 = 82;
5534pub const R_TILEPRO_TLS_DTPOFF32: u32 = 83;
5536pub const R_TILEPRO_TLS_TPOFF32: u32 = 84;
5538pub const R_TILEPRO_IMM16_X0_TLS_LE: u32 = 85;
5540pub const R_TILEPRO_IMM16_X1_TLS_LE: u32 = 86;
5542pub const R_TILEPRO_IMM16_X0_TLS_LE_LO: u32 = 87;
5544pub const R_TILEPRO_IMM16_X1_TLS_LE_LO: u32 = 88;
5546pub const R_TILEPRO_IMM16_X0_TLS_LE_HI: u32 = 89;
5548pub const R_TILEPRO_IMM16_X1_TLS_LE_HI: u32 = 90;
5550pub const R_TILEPRO_IMM16_X0_TLS_LE_HA: u32 = 91;
5552pub const R_TILEPRO_IMM16_X1_TLS_LE_HA: u32 = 92;
5554
5555pub const R_TILEPRO_GNU_VTINHERIT: u32 = 128;
5557pub const R_TILEPRO_GNU_VTENTRY: u32 = 129;
5559
5560pub const R_TILEGX_NONE: u32 = 0;
5563pub const R_TILEGX_64: u32 = 1;
5565pub const R_TILEGX_32: u32 = 2;
5567pub const R_TILEGX_16: u32 = 3;
5569pub const R_TILEGX_8: u32 = 4;
5571pub const R_TILEGX_64_PCREL: u32 = 5;
5573pub const R_TILEGX_32_PCREL: u32 = 6;
5575pub const R_TILEGX_16_PCREL: u32 = 7;
5577pub const R_TILEGX_8_PCREL: u32 = 8;
5579pub const R_TILEGX_HW0: u32 = 9;
5581pub const R_TILEGX_HW1: u32 = 10;
5583pub const R_TILEGX_HW2: u32 = 11;
5585pub const R_TILEGX_HW3: u32 = 12;
5587pub const R_TILEGX_HW0_LAST: u32 = 13;
5589pub const R_TILEGX_HW1_LAST: u32 = 14;
5591pub const R_TILEGX_HW2_LAST: u32 = 15;
5593pub const R_TILEGX_COPY: u32 = 16;
5595pub const R_TILEGX_GLOB_DAT: u32 = 17;
5597pub const R_TILEGX_JMP_SLOT: u32 = 18;
5599pub const R_TILEGX_RELATIVE: u32 = 19;
5601pub const R_TILEGX_BROFF_X1: u32 = 20;
5603pub const R_TILEGX_JUMPOFF_X1: u32 = 21;
5605pub const R_TILEGX_JUMPOFF_X1_PLT: u32 = 22;
5607pub const R_TILEGX_IMM8_X0: u32 = 23;
5609pub const R_TILEGX_IMM8_Y0: u32 = 24;
5611pub const R_TILEGX_IMM8_X1: u32 = 25;
5613pub const R_TILEGX_IMM8_Y1: u32 = 26;
5615pub const R_TILEGX_DEST_IMM8_X1: u32 = 27;
5617pub const R_TILEGX_MT_IMM14_X1: u32 = 28;
5619pub const R_TILEGX_MF_IMM14_X1: u32 = 29;
5621pub const R_TILEGX_MMSTART_X0: u32 = 30;
5623pub const R_TILEGX_MMEND_X0: u32 = 31;
5625pub const R_TILEGX_SHAMT_X0: u32 = 32;
5627pub const R_TILEGX_SHAMT_X1: u32 = 33;
5629pub const R_TILEGX_SHAMT_Y0: u32 = 34;
5631pub const R_TILEGX_SHAMT_Y1: u32 = 35;
5633pub const R_TILEGX_IMM16_X0_HW0: u32 = 36;
5635pub const R_TILEGX_IMM16_X1_HW0: u32 = 37;
5637pub const R_TILEGX_IMM16_X0_HW1: u32 = 38;
5639pub const R_TILEGX_IMM16_X1_HW1: u32 = 39;
5641pub const R_TILEGX_IMM16_X0_HW2: u32 = 40;
5643pub const R_TILEGX_IMM16_X1_HW2: u32 = 41;
5645pub const R_TILEGX_IMM16_X0_HW3: u32 = 42;
5647pub const R_TILEGX_IMM16_X1_HW3: u32 = 43;
5649pub const R_TILEGX_IMM16_X0_HW0_LAST: u32 = 44;
5651pub const R_TILEGX_IMM16_X1_HW0_LAST: u32 = 45;
5653pub const R_TILEGX_IMM16_X0_HW1_LAST: u32 = 46;
5655pub const R_TILEGX_IMM16_X1_HW1_LAST: u32 = 47;
5657pub const R_TILEGX_IMM16_X0_HW2_LAST: u32 = 48;
5659pub const R_TILEGX_IMM16_X1_HW2_LAST: u32 = 49;
5661pub const R_TILEGX_IMM16_X0_HW0_PCREL: u32 = 50;
5663pub const R_TILEGX_IMM16_X1_HW0_PCREL: u32 = 51;
5665pub const R_TILEGX_IMM16_X0_HW1_PCREL: u32 = 52;
5667pub const R_TILEGX_IMM16_X1_HW1_PCREL: u32 = 53;
5669pub const R_TILEGX_IMM16_X0_HW2_PCREL: u32 = 54;
5671pub const R_TILEGX_IMM16_X1_HW2_PCREL: u32 = 55;
5673pub const R_TILEGX_IMM16_X0_HW3_PCREL: u32 = 56;
5675pub const R_TILEGX_IMM16_X1_HW3_PCREL: u32 = 57;
5677pub const R_TILEGX_IMM16_X0_HW0_LAST_PCREL: u32 = 58;
5679pub const R_TILEGX_IMM16_X1_HW0_LAST_PCREL: u32 = 59;
5681pub const R_TILEGX_IMM16_X0_HW1_LAST_PCREL: u32 = 60;
5683pub const R_TILEGX_IMM16_X1_HW1_LAST_PCREL: u32 = 61;
5685pub const R_TILEGX_IMM16_X0_HW2_LAST_PCREL: u32 = 62;
5687pub const R_TILEGX_IMM16_X1_HW2_LAST_PCREL: u32 = 63;
5689pub const R_TILEGX_IMM16_X0_HW0_GOT: u32 = 64;
5691pub const R_TILEGX_IMM16_X1_HW0_GOT: u32 = 65;
5693pub const R_TILEGX_IMM16_X0_HW0_PLT_PCREL: u32 = 66;
5695pub const R_TILEGX_IMM16_X1_HW0_PLT_PCREL: u32 = 67;
5697pub const R_TILEGX_IMM16_X0_HW1_PLT_PCREL: u32 = 68;
5699pub const R_TILEGX_IMM16_X1_HW1_PLT_PCREL: u32 = 69;
5701pub const R_TILEGX_IMM16_X0_HW2_PLT_PCREL: u32 = 70;
5703pub const R_TILEGX_IMM16_X1_HW2_PLT_PCREL: u32 = 71;
5705pub const R_TILEGX_IMM16_X0_HW0_LAST_GOT: u32 = 72;
5707pub const R_TILEGX_IMM16_X1_HW0_LAST_GOT: u32 = 73;
5709pub const R_TILEGX_IMM16_X0_HW1_LAST_GOT: u32 = 74;
5711pub const R_TILEGX_IMM16_X1_HW1_LAST_GOT: u32 = 75;
5713pub const R_TILEGX_IMM16_X0_HW3_PLT_PCREL: u32 = 76;
5715pub const R_TILEGX_IMM16_X1_HW3_PLT_PCREL: u32 = 77;
5717pub const R_TILEGX_IMM16_X0_HW0_TLS_GD: u32 = 78;
5719pub const R_TILEGX_IMM16_X1_HW0_TLS_GD: u32 = 79;
5721pub const R_TILEGX_IMM16_X0_HW0_TLS_LE: u32 = 80;
5723pub const R_TILEGX_IMM16_X1_HW0_TLS_LE: u32 = 81;
5725pub const R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE: u32 = 82;
5727pub const R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE: u32 = 83;
5729pub const R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE: u32 = 84;
5731pub const R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE: u32 = 85;
5733pub const R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD: u32 = 86;
5735pub const R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD: u32 = 87;
5737pub const R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD: u32 = 88;
5739pub const R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD: u32 = 89;
5741pub const R_TILEGX_IMM16_X0_HW0_TLS_IE: u32 = 92;
5744pub const R_TILEGX_IMM16_X1_HW0_TLS_IE: u32 = 93;
5746pub const R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL: u32 = 94;
5748pub const R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL: u32 = 95;
5750pub const R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL: u32 = 96;
5752pub const R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL: u32 = 97;
5754pub const R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL: u32 = 98;
5756pub const R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL: u32 = 99;
5758pub const R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE: u32 = 100;
5760pub const R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE: u32 = 101;
5762pub const R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE: u32 = 102;
5764pub const R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE: u32 = 103;
5766pub const R_TILEGX_TLS_DTPMOD64: u32 = 106;
5769pub const R_TILEGX_TLS_DTPOFF64: u32 = 107;
5771pub const R_TILEGX_TLS_TPOFF64: u32 = 108;
5773pub const R_TILEGX_TLS_DTPMOD32: u32 = 109;
5775pub const R_TILEGX_TLS_DTPOFF32: u32 = 110;
5777pub const R_TILEGX_TLS_TPOFF32: u32 = 111;
5779pub const R_TILEGX_TLS_GD_CALL: u32 = 112;
5781pub const R_TILEGX_IMM8_X0_TLS_GD_ADD: u32 = 113;
5783pub const R_TILEGX_IMM8_X1_TLS_GD_ADD: u32 = 114;
5785pub const R_TILEGX_IMM8_Y0_TLS_GD_ADD: u32 = 115;
5787pub const R_TILEGX_IMM8_Y1_TLS_GD_ADD: u32 = 116;
5789pub const R_TILEGX_TLS_IE_LOAD: u32 = 117;
5791pub const R_TILEGX_IMM8_X0_TLS_ADD: u32 = 118;
5793pub const R_TILEGX_IMM8_X1_TLS_ADD: u32 = 119;
5795pub const R_TILEGX_IMM8_Y0_TLS_ADD: u32 = 120;
5797pub const R_TILEGX_IMM8_Y1_TLS_ADD: u32 = 121;
5799
5800pub const R_TILEGX_GNU_VTINHERIT: u32 = 128;
5802pub const R_TILEGX_GNU_VTENTRY: u32 = 129;
5804
5805pub const EF_RISCV_RVC: u32 = 0x0001;
5807pub const EF_RISCV_FLOAT_ABI: u32 = 0x0006;
5808pub const EF_RISCV_FLOAT_ABI_SOFT: u32 = 0x0000;
5809pub const EF_RISCV_FLOAT_ABI_SINGLE: u32 = 0x0002;
5810pub const EF_RISCV_FLOAT_ABI_DOUBLE: u32 = 0x0004;
5811pub const EF_RISCV_FLOAT_ABI_QUAD: u32 = 0x0006;
5812pub const EF_RISCV_RVE: u32 = 0x0008;
5813pub const EF_RISCV_TSO: u32 = 0x0010;
5814
5815pub const SHT_RISCV_ATTRIBUTES: u32 = SHT_LOPROC + 3;
5818
5819pub const R_RISCV_NONE: u32 = 0;
5821pub const R_RISCV_32: u32 = 1;
5822pub const R_RISCV_64: u32 = 2;
5823pub const R_RISCV_RELATIVE: u32 = 3;
5824pub const R_RISCV_COPY: u32 = 4;
5825pub const R_RISCV_JUMP_SLOT: u32 = 5;
5826pub const R_RISCV_TLS_DTPMOD32: u32 = 6;
5827pub const R_RISCV_TLS_DTPMOD64: u32 = 7;
5828pub const R_RISCV_TLS_DTPREL32: u32 = 8;
5829pub const R_RISCV_TLS_DTPREL64: u32 = 9;
5830pub const R_RISCV_TLS_TPREL32: u32 = 10;
5831pub const R_RISCV_TLS_TPREL64: u32 = 11;
5832pub const R_RISCV_BRANCH: u32 = 16;
5833pub const R_RISCV_JAL: u32 = 17;
5834pub const R_RISCV_CALL: u32 = 18;
5835pub const R_RISCV_CALL_PLT: u32 = 19;
5836pub const R_RISCV_GOT_HI20: u32 = 20;
5837pub const R_RISCV_TLS_GOT_HI20: u32 = 21;
5838pub const R_RISCV_TLS_GD_HI20: u32 = 22;
5839pub const R_RISCV_PCREL_HI20: u32 = 23;
5840pub const R_RISCV_PCREL_LO12_I: u32 = 24;
5841pub const R_RISCV_PCREL_LO12_S: u32 = 25;
5842pub const R_RISCV_HI20: u32 = 26;
5843pub const R_RISCV_LO12_I: u32 = 27;
5844pub const R_RISCV_LO12_S: u32 = 28;
5845pub const R_RISCV_TPREL_HI20: u32 = 29;
5846pub const R_RISCV_TPREL_LO12_I: u32 = 30;
5847pub const R_RISCV_TPREL_LO12_S: u32 = 31;
5848pub const R_RISCV_TPREL_ADD: u32 = 32;
5849pub const R_RISCV_ADD8: u32 = 33;
5850pub const R_RISCV_ADD16: u32 = 34;
5851pub const R_RISCV_ADD32: u32 = 35;
5852pub const R_RISCV_ADD64: u32 = 36;
5853pub const R_RISCV_SUB8: u32 = 37;
5854pub const R_RISCV_SUB16: u32 = 38;
5855pub const R_RISCV_SUB32: u32 = 39;
5856pub const R_RISCV_SUB64: u32 = 40;
5857pub const R_RISCV_GNU_VTINHERIT: u32 = 41;
5858pub const R_RISCV_GNU_VTENTRY: u32 = 42;
5859pub const R_RISCV_ALIGN: u32 = 43;
5860pub const R_RISCV_RVC_BRANCH: u32 = 44;
5861pub const R_RISCV_RVC_JUMP: u32 = 45;
5862pub const R_RISCV_RVC_LUI: u32 = 46;
5863pub const R_RISCV_GPREL_I: u32 = 47;
5864pub const R_RISCV_GPREL_S: u32 = 48;
5865pub const R_RISCV_TPREL_I: u32 = 49;
5866pub const R_RISCV_TPREL_S: u32 = 50;
5867pub const R_RISCV_RELAX: u32 = 51;
5868pub const R_RISCV_SUB6: u32 = 52;
5869pub const R_RISCV_SET6: u32 = 53;
5870pub const R_RISCV_SET8: u32 = 54;
5871pub const R_RISCV_SET16: u32 = 55;
5872pub const R_RISCV_SET32: u32 = 56;
5873pub const R_RISCV_32_PCREL: u32 = 57;
5874pub const R_RISCV_IRELATIVE: u32 = 58;
5875pub const R_RISCV_PLT32: u32 = 59;
5876pub const R_RISCV_SET_ULEB128: u32 = 60;
5877pub const R_RISCV_SUB_ULEB128: u32 = 61;
5878pub const R_RISCV_TLSDESC_HI20: u32 = 62;
5879pub const R_RISCV_TLSDESC_LOAD_LO12: u32 = 63;
5880pub const R_RISCV_TLSDESC_ADD_LO12: u32 = 64;
5881pub const R_RISCV_TLSDESC_CALL: u32 = 65;
5882
5883pub const R_BPF_NONE: u32 = 0;
5886pub const R_BPF_64_64: u32 = 1;
5887pub const R_BPF_64_32: u32 = 10;
5888
5889pub const R_SBF_NONE: u32 = 0;
5892pub const R_SBF_64_64: u32 = 1;
5893pub const R_SBF_64_32: u32 = 10;
5894
5895pub const R_METAG_HIADDR16: u32 = 0;
5898pub const R_METAG_LOADDR16: u32 = 1;
5899pub const R_METAG_ADDR32: u32 = 2;
5901pub const R_METAG_NONE: u32 = 3;
5903pub const R_METAG_RELBRANCH: u32 = 4;
5904pub const R_METAG_GETSETOFF: u32 = 5;
5905
5906pub const R_METAG_REG32OP1: u32 = 6;
5908pub const R_METAG_REG32OP2: u32 = 7;
5909pub const R_METAG_REG32OP3: u32 = 8;
5910pub const R_METAG_REG16OP1: u32 = 9;
5911pub const R_METAG_REG16OP2: u32 = 10;
5912pub const R_METAG_REG16OP3: u32 = 11;
5913pub const R_METAG_REG32OP4: u32 = 12;
5914
5915pub const R_METAG_HIOG: u32 = 13;
5916pub const R_METAG_LOOG: u32 = 14;
5917
5918pub const R_METAG_REL8: u32 = 15;
5919pub const R_METAG_REL16: u32 = 16;
5920
5921pub const R_METAG_GNU_VTINHERIT: u32 = 30;
5922pub const R_METAG_GNU_VTENTRY: u32 = 31;
5923
5924pub const R_METAG_HI16_GOTOFF: u32 = 32;
5926pub const R_METAG_LO16_GOTOFF: u32 = 33;
5927pub const R_METAG_GETSET_GOTOFF: u32 = 34;
5928pub const R_METAG_GETSET_GOT: u32 = 35;
5929pub const R_METAG_HI16_GOTPC: u32 = 36;
5930pub const R_METAG_LO16_GOTPC: u32 = 37;
5931pub const R_METAG_HI16_PLT: u32 = 38;
5932pub const R_METAG_LO16_PLT: u32 = 39;
5933pub const R_METAG_RELBRANCH_PLT: u32 = 40;
5934pub const R_METAG_GOTOFF: u32 = 41;
5935pub const R_METAG_PLT: u32 = 42;
5936pub const R_METAG_COPY: u32 = 43;
5937pub const R_METAG_JMP_SLOT: u32 = 44;
5938pub const R_METAG_RELATIVE: u32 = 45;
5939pub const R_METAG_GLOB_DAT: u32 = 46;
5940
5941pub const R_METAG_TLS_GD: u32 = 47;
5943pub const R_METAG_TLS_LDM: u32 = 48;
5944pub const R_METAG_TLS_LDO_HI16: u32 = 49;
5945pub const R_METAG_TLS_LDO_LO16: u32 = 50;
5946pub const R_METAG_TLS_LDO: u32 = 51;
5947pub const R_METAG_TLS_IE: u32 = 52;
5948pub const R_METAG_TLS_IENONPIC: u32 = 53;
5949pub const R_METAG_TLS_IENONPIC_HI16: u32 = 54;
5950pub const R_METAG_TLS_IENONPIC_LO16: u32 = 55;
5951pub const R_METAG_TLS_TPOFF: u32 = 56;
5952pub const R_METAG_TLS_DTPMOD: u32 = 57;
5953pub const R_METAG_TLS_DTPOFF: u32 = 58;
5954pub const R_METAG_TLS_LE: u32 = 59;
5955pub const R_METAG_TLS_LE_HI16: u32 = 60;
5956pub const R_METAG_TLS_LE_LO16: u32 = 61;
5957
5958pub const R_NDS32_NONE: u32 = 0;
5960pub const R_NDS32_32_RELA: u32 = 20;
5961pub const R_NDS32_COPY: u32 = 39;
5962pub const R_NDS32_GLOB_DAT: u32 = 40;
5963pub const R_NDS32_JMP_SLOT: u32 = 41;
5964pub const R_NDS32_RELATIVE: u32 = 42;
5965pub const R_NDS32_TLS_TPOFF: u32 = 102;
5966pub const R_NDS32_TLS_DESC: u32 = 119;
5967
5968pub const EF_LARCH_ABI_MODIFIER_MASK: u32 = 0x7;
5972pub const EF_LARCH_ABI_SOFT_FLOAT: u32 = 0x1;
5974pub const EF_LARCH_ABI_SINGLE_FLOAT: u32 = 0x2;
5976pub const EF_LARCH_ABI_DOUBLE_FLOAT: u32 = 0x3;
5978pub const EF_LARCH_OBJABI_V1: u32 = 0x40;
5980
5981pub const R_LARCH_NONE: u32 = 0;
5984pub const R_LARCH_32: u32 = 1;
5986pub const R_LARCH_64: u32 = 2;
5988pub const R_LARCH_RELATIVE: u32 = 3;
5990pub const R_LARCH_COPY: u32 = 4;
5992pub const R_LARCH_JUMP_SLOT: u32 = 5;
5994pub const R_LARCH_TLS_DTPMOD32: u32 = 6;
5996pub const R_LARCH_TLS_DTPMOD64: u32 = 7;
5998pub const R_LARCH_TLS_DTPREL32: u32 = 8;
6000pub const R_LARCH_TLS_DTPREL64: u32 = 9;
6002pub const R_LARCH_TLS_TPREL32: u32 = 10;
6004pub const R_LARCH_TLS_TPREL64: u32 = 11;
6006pub const R_LARCH_IRELATIVE: u32 = 12;
6008pub const R_LARCH_MARK_LA: u32 = 20;
6010pub const R_LARCH_MARK_PCREL: u32 = 21;
6012pub const R_LARCH_SOP_PUSH_PCREL: u32 = 22;
6014pub const R_LARCH_SOP_PUSH_ABSOLUTE: u32 = 23;
6016pub const R_LARCH_SOP_PUSH_DUP: u32 = 24;
6018pub const R_LARCH_SOP_PUSH_GPREL: u32 = 25;
6020pub const R_LARCH_SOP_PUSH_TLS_TPREL: u32 = 26;
6022pub const R_LARCH_SOP_PUSH_TLS_GOT: u32 = 27;
6024pub const R_LARCH_SOP_PUSH_TLS_GD: u32 = 28;
6026pub const R_LARCH_SOP_PUSH_PLT_PCREL: u32 = 29;
6028pub const R_LARCH_SOP_ASSERT: u32 = 30;
6030pub const R_LARCH_SOP_NOT: u32 = 31;
6032pub const R_LARCH_SOP_SUB: u32 = 32;
6034pub const R_LARCH_SOP_SL: u32 = 33;
6036pub const R_LARCH_SOP_SR: u32 = 34;
6038pub const R_LARCH_SOP_ADD: u32 = 35;
6040pub const R_LARCH_SOP_AND: u32 = 36;
6042pub const R_LARCH_SOP_IF_ELSE: u32 = 37;
6044pub const R_LARCH_SOP_POP_32_S_10_5: u32 = 38;
6046pub const R_LARCH_SOP_POP_32_U_10_12: u32 = 39;
6048pub const R_LARCH_SOP_POP_32_S_10_12: u32 = 40;
6050pub const R_LARCH_SOP_POP_32_S_10_16: u32 = 41;
6052pub const R_LARCH_SOP_POP_32_S_10_16_S2: u32 = 42;
6055pub const R_LARCH_SOP_POP_32_S_5_20: u32 = 43;
6057pub const R_LARCH_SOP_POP_32_S_0_5_10_16_S2: u32 = 44;
6060pub const R_LARCH_SOP_POP_32_S_0_10_10_16_S2: u32 = 45;
6063pub const R_LARCH_SOP_POP_32_U: u32 = 46;
6065pub const R_LARCH_ADD8: u32 = 47;
6067pub const R_LARCH_ADD16: u32 = 48;
6069pub const R_LARCH_ADD24: u32 = 49;
6071pub const R_LARCH_ADD32: u32 = 50;
6073pub const R_LARCH_ADD64: u32 = 51;
6075pub const R_LARCH_SUB8: u32 = 52;
6077pub const R_LARCH_SUB16: u32 = 53;
6079pub const R_LARCH_SUB24: u32 = 54;
6081pub const R_LARCH_SUB32: u32 = 55;
6083pub const R_LARCH_SUB64: u32 = 56;
6085pub const R_LARCH_GNU_VTINHERIT: u32 = 57;
6087pub const R_LARCH_GNU_VTENTRY: u32 = 58;
6089pub const R_LARCH_B16: u32 = 64;
6091pub const R_LARCH_B21: u32 = 65;
6093pub const R_LARCH_B26: u32 = 66;
6095pub const R_LARCH_ABS_HI20: u32 = 67;
6097pub const R_LARCH_ABS_LO12: u32 = 68;
6099pub const R_LARCH_ABS64_LO20: u32 = 69;
6101pub const R_LARCH_ABS64_HI12: u32 = 70;
6103pub const R_LARCH_PCALA_HI20: u32 = 71;
6109pub const R_LARCH_PCALA_LO12: u32 = 72;
6112pub const R_LARCH_PCALA64_LO20: u32 = 73;
6115pub const R_LARCH_PCALA64_HI12: u32 = 74;
6118pub const R_LARCH_GOT_PC_HI20: u32 = 75;
6124pub const R_LARCH_GOT_PC_LO12: u32 = 76;
6127pub const R_LARCH_GOT64_PC_LO20: u32 = 77;
6130pub const R_LARCH_GOT64_PC_HI12: u32 = 78;
6133pub const R_LARCH_GOT_HI20: u32 = 79;
6135pub const R_LARCH_GOT_LO12: u32 = 80;
6137pub const R_LARCH_GOT64_LO20: u32 = 81;
6139pub const R_LARCH_GOT64_HI12: u32 = 82;
6141pub const R_LARCH_TLS_LE_HI20: u32 = 83;
6143pub const R_LARCH_TLS_LE_LO12: u32 = 84;
6145pub const R_LARCH_TLS_LE64_LO20: u32 = 85;
6147pub const R_LARCH_TLS_LE64_HI12: u32 = 86;
6149pub const R_LARCH_TLS_IE_PC_HI20: u32 = 87;
6155pub const R_LARCH_TLS_IE_PC_LO12: u32 = 88;
6158pub const R_LARCH_TLS_IE64_PC_LO20: u32 = 89;
6161pub const R_LARCH_TLS_IE64_PC_HI12: u32 = 90;
6164pub const R_LARCH_TLS_IE_HI20: u32 = 91;
6166pub const R_LARCH_TLS_IE_LO12: u32 = 92;
6168pub const R_LARCH_TLS_IE64_LO20: u32 = 93;
6170pub const R_LARCH_TLS_IE64_HI12: u32 = 94;
6172pub const R_LARCH_TLS_LD_PC_HI20: u32 = 95;
6175pub const R_LARCH_TLS_LD_HI20: u32 = 96;
6177pub const R_LARCH_TLS_GD_PC_HI20: u32 = 97;
6180pub const R_LARCH_TLS_GD_HI20: u32 = 98;
6182pub const R_LARCH_32_PCREL: u32 = 99;
6184pub const R_LARCH_RELAX: u32 = 100;
6187pub const R_LARCH_DELETE: u32 = 101;
6189pub const R_LARCH_ALIGN: u32 = 102;
6192pub const R_LARCH_PCREL20_S2: u32 = 103;
6194pub const R_LARCH_CFA: u32 = 104;
6196pub const R_LARCH_ADD6: u32 = 105;
6198pub const R_LARCH_SUB6: u32 = 106;
6200pub const R_LARCH_ADD_ULEB128: u32 = 107;
6202pub const R_LARCH_SUB_ULEB128: u32 = 108;
6204pub const R_LARCH_64_PCREL: u32 = 109;
6206pub const R_LARCH_CALL36: u32 = 110;
6209
6210pub const R_XTENSA_NONE: u32 = 0;
6212pub const R_XTENSA_32: u32 = 1;
6213pub const R_XTENSA_RTLD: u32 = 2;
6214pub const R_XTENSA_GLOB_DAT: u32 = 3;
6215pub const R_XTENSA_JMP_SLOT: u32 = 4;
6216pub const R_XTENSA_RELATIVE: u32 = 5;
6217pub const R_XTENSA_PLT: u32 = 6;
6218pub const R_XTENSA_OP0: u32 = 8;
6219pub const R_XTENSA_OP1: u32 = 9;
6220pub const R_XTENSA_OP2: u32 = 10;
6221pub const R_XTENSA_ASM_EXPAND: u32 = 11;
6222pub const R_XTENSA_ASM_SIMPLIFY: u32 = 12;
6223pub const R_XTENSA_32_PCREL: u32 = 14;
6224pub const R_XTENSA_GNU_VTINHERIT: u32 = 15;
6225pub const R_XTENSA_GNU_VTENTRY: u32 = 16;
6226pub const R_XTENSA_DIFF8: u32 = 17;
6227pub const R_XTENSA_DIFF16: u32 = 18;
6228pub const R_XTENSA_DIFF32: u32 = 19;
6229pub const R_XTENSA_SLOT0_OP: u32 = 20;
6230pub const R_XTENSA_SLOT1_OP: u32 = 21;
6231pub const R_XTENSA_SLOT2_OP: u32 = 22;
6232pub const R_XTENSA_SLOT3_OP: u32 = 23;
6233pub const R_XTENSA_SLOT4_OP: u32 = 24;
6234pub const R_XTENSA_SLOT5_OP: u32 = 25;
6235pub const R_XTENSA_SLOT6_OP: u32 = 26;
6236pub const R_XTENSA_SLOT7_OP: u32 = 27;
6237pub const R_XTENSA_SLOT8_OP: u32 = 28;
6238pub const R_XTENSA_SLOT9_OP: u32 = 29;
6239pub const R_XTENSA_SLOT10_OP: u32 = 30;
6240pub const R_XTENSA_SLOT11_OP: u32 = 31;
6241pub const R_XTENSA_SLOT12_OP: u32 = 32;
6242pub const R_XTENSA_SLOT13_OP: u32 = 33;
6243pub const R_XTENSA_SLOT14_OP: u32 = 34;
6244pub const R_XTENSA_SLOT0_ALT: u32 = 35;
6245pub const R_XTENSA_SLOT1_ALT: u32 = 36;
6246pub const R_XTENSA_SLOT2_ALT: u32 = 37;
6247pub const R_XTENSA_SLOT3_ALT: u32 = 38;
6248pub const R_XTENSA_SLOT4_ALT: u32 = 39;
6249pub const R_XTENSA_SLOT5_ALT: u32 = 40;
6250pub const R_XTENSA_SLOT6_ALT: u32 = 41;
6251pub const R_XTENSA_SLOT7_ALT: u32 = 42;
6252pub const R_XTENSA_SLOT8_ALT: u32 = 43;
6253pub const R_XTENSA_SLOT9_ALT: u32 = 44;
6254pub const R_XTENSA_SLOT10_ALT: u32 = 45;
6255pub const R_XTENSA_SLOT11_ALT: u32 = 46;
6256pub const R_XTENSA_SLOT12_ALT: u32 = 47;
6257pub const R_XTENSA_SLOT13_ALT: u32 = 48;
6258pub const R_XTENSA_SLOT14_ALT: u32 = 49;
6259pub const R_XTENSA_TLSDESC_FN: u32 = 50;
6260pub const R_XTENSA_TLSDESC_ARG: u32 = 51;
6261pub const R_XTENSA_TLS_DTPOFF: u32 = 52;
6262pub const R_XTENSA_TLS_TPOFF: u32 = 53;
6263pub const R_XTENSA_TLS_FUNC: u32 = 54;
6264pub const R_XTENSA_TLS_ARG: u32 = 55;
6265pub const R_XTENSA_TLS_CALL: u32 = 56;
6266pub const R_XTENSA_PDIFF8: u32 = 57;
6267pub const R_XTENSA_PDIFF16: u32 = 58;
6268pub const R_XTENSA_PDIFF32: u32 = 59;
6269pub const R_XTENSA_NDIFF8: u32 = 60;
6270pub const R_XTENSA_NDIFF16: u32 = 61;
6271pub const R_XTENSA_NDIFF32: u32 = 62;
6272
6273pub const EF_E2K_IPD: u32 = 3;
6275pub const EF_E2K_X86APP: u32 = 4;
6276pub const EF_E2K_4MB_PAGES: u32 = 8;
6277pub const EF_E2K_INCOMPAT: u32 = 16;
6278pub const EF_E2K_PM: u32 = 32;
6279pub const EF_E2K_PACK_SEGMENTS: u32 = 64;
6280
6281pub const fn ef_e2k_mach_to_flag(e_flags: u32, x: u32) -> u32 {
6283 (e_flags & 0xffffff) | (x << 24)
6284}
6285
6286pub const fn ef_e2k_flag_to_mach(e_flags: u32) -> u32 {
6288 e_flags >> 24
6289}
6290
6291pub const E_E2K_MACH_BASE: u32 = 0;
6297pub const E_E2K_MACH_EV1: u32 = 1;
6301pub const E_E2K_MACH_EV2: u32 = 2;
6303pub const E_E2K_MACH_EV3: u32 = 3;
6305pub const E_E2K_MACH_EV4: u32 = 4;
6307pub const E_E2K_MACH_EV5: u32 = 5;
6309pub const E_E2K_MACH_EV6: u32 = 6;
6311pub const E_E2K_MACH_EV7: u32 = 7;
6313pub const E_E2K_MACH_8C: u32 = 19;
6315pub const E_E2K_MACH_1CPLUS: u32 = 20;
6317pub const E_E2K_MACH_12C: u32 = 21;
6319pub const E_E2K_MACH_16C: u32 = 22;
6321pub const E_E2K_MACH_2C3: u32 = 23;
6323pub const E_E2K_MACH_48C: u32 = 24;
6325pub const E_E2K_MACH_8V7: u32 = 25;
6327
6328pub const R_E2K_32_ABS: u32 = 0;
6332pub const R_E2K_32_PC: u32 = 2;
6334pub const R_E2K_AP_GOT: u32 = 3;
6336pub const R_E2K_PL_GOT: u32 = 4;
6338pub const R_E2K_32_JMP_SLOT: u32 = 8;
6340pub const R_E2K_32_COPY: u32 = 9;
6342pub const R_E2K_32_RELATIVE: u32 = 10;
6344pub const R_E2K_32_IRELATIVE: u32 = 11;
6346pub const R_E2K_32_SIZE: u32 = 12;
6348pub const R_E2K_32_DYNOPT: u32 = 13;
6351pub const R_E2K_64_ABS: u32 = 50;
6353pub const R_E2K_64_ABS_LIT: u32 = 51;
6355pub const R_E2K_64_PC_LIT: u32 = 54;
6357pub const R_E2K_64_JMP_SLOT: u32 = 63;
6359pub const R_E2K_64_COPY: u32 = 64;
6361pub const R_E2K_64_RELATIVE: u32 = 65;
6363pub const R_E2K_64_RELATIVE_LIT: u32 = 66;
6365pub const R_E2K_64_IRELATIVE: u32 = 67;
6367pub const R_E2K_64_SIZE: u32 = 68;
6369pub const R_E2K_64_GOTOFF: u32 = 69;
6371
6372pub const R_E2K_TLS_GDMOD: u32 = 70;
6374pub const R_E2K_TLS_GDREL: u32 = 71;
6376pub const R_E2K_TLS_IE: u32 = 74;
6378pub const R_E2K_32_TLS_LE: u32 = 75;
6380pub const R_E2K_64_TLS_LE: u32 = 76;
6382pub const R_E2K_TLS_32_DTPMOD: u32 = 80;
6384pub const R_E2K_TLS_32_DTPREL: u32 = 81;
6386pub const R_E2K_TLS_64_DTPMOD: u32 = 82;
6388pub const R_E2K_TLS_64_DTPREL: u32 = 83;
6390pub const R_E2K_TLS_32_TPREL: u32 = 84;
6392pub const R_E2K_TLS_64_TPREL: u32 = 85;
6394
6395pub const R_E2K_AP: u32 = 100;
6397pub const R_E2K_PL: u32 = 101;
6399
6400pub const R_E2K_GOT: u32 = 108;
6402pub const R_E2K_GOTOFF: u32 = 109;
6404pub const R_E2K_DISP: u32 = 110;
6406pub const R_E2K_PREF: u32 = 111;
6408pub const R_E2K_NONE: u32 = 112;
6410pub const R_E2K_GOTPLT: u32 = 114;
6412pub const R_E2K_ISLOCAL: u32 = 115;
6415pub const R_E2K_ISLOCAL32: u32 = 118;
6418pub const R_E2K_64_GOTOFF_LIT: u32 = 256;
6420pub const R_E2K_64_DYNOPT: u32 = 257;
6423pub const R_E2K_64_PC: u32 = 258;
6425
6426pub const DT_E2K_LAZY: u32 = DT_LOPROC + 1;
6429pub const DT_E2K_LAZY_GOT: u32 = DT_LOPROC + 3;
6430
6431pub const DT_E2K_INIT_GOT: u32 = DT_LOPROC + 0x101c;
6432pub const DT_E2K_EXPORT_PL: u32 = DT_LOPROC + 0x101d;
6433pub const DT_E2K_EXPORT_PLSZ: u32 = DT_LOPROC + 0x101e;
6434pub const DT_E2K_REAL_PLTGOT: u32 = DT_LOPROC + 0x101f;
6435pub const DT_E2K_NO_SELFINIT: u32 = DT_LOPROC + 0x1020;
6436
6437pub const DT_E2K_NUM: u32 = 0x1021;
6438
6439#[allow(non_upper_case_globals)]
6440pub const Tag_File: u8 = 1;
6441#[allow(non_upper_case_globals)]
6442pub const Tag_Section: u8 = 2;
6443#[allow(non_upper_case_globals)]
6444pub const Tag_Symbol: u8 = 3;
6445
6446unsafe_impl_endian_pod!(
6447 FileHeader32,
6448 FileHeader64,
6449 SectionHeader32,
6450 SectionHeader64,
6451 CompressionHeader32,
6452 CompressionHeader64,
6453 Sym32,
6454 Sym64,
6455 Syminfo32,
6456 Syminfo64,
6457 Rel32,
6458 Rel64,
6459 Rela32,
6460 Rela64,
6461 ProgramHeader32,
6462 ProgramHeader64,
6463 Dyn32,
6464 Dyn64,
6465 Versym,
6466 Verdef,
6467 Verdaux,
6468 Verneed,
6469 Vernaux,
6470 NoteHeader32,
6471 NoteHeader64,
6472 HashHeader,
6473 GnuHashHeader,
6474);