-
Notifications
You must be signed in to change notification settings - Fork 1
/
attr_types.py
122 lines (116 loc) · 2.48 KB
/
attr_types.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
e_machines = {
"0": "No specific instruction set",
"1": "AT&T WE 32100",
"2": "SPARC",
"3": "x86",
"4": "Motorola 68000 (M68k)",
"5": "Motorola 88000 (M88k)",
"6": "Intel MCU",
"7": "Intel 80860",
"8": "MIPS",
"9": "IBM System/370",
"10": "MIPS RS3000 Little-endian",
"14": "Hewlett-Packard PA-RISC",
"15": "Reserved for future use",
"19": "Intel 80960",
"20": "PowerPC",
"21": "PowerPC (64-bit)",
"22": "S390, including S390x",
"23": "IBM SPU/SPC",
"36": "NEC V800",
"37": "Fujitsu FR20",
"38": "TRW RH-32",
"39": "Motorola RCE",
"40": "ARM (up to ARMv7/Aarch32)",
"41": "Digital Alpha",
"42": "SuperH",
"43": "SPARC Version 9",
"44": "Siemens TriCore embedded processor",
"45": "Argonaut RISC Core",
"46": "Hitachi H8/300",
"47": "Hitachi H8/300H",
"48": "Hitachi H8S",
"49": "Hitachi H8/500",
"50": "IA-64",
"51": "Stanford MIPS-X",
"52": "Motorola ColdFire",
"53": "Motorola M68HC12",
"54": "Fujitsu MMA Multimedia Accelerator",
"55": "Siemens PCP",
"56": "Sony nCPU embedded RISC processor",
"57": "Denso NDR1 microprocessor",
"58": "Motorola Star*Core processor",
"59": "Toyota ME16 processor",
"60": "STMicroelectronics ST100 processor",
"61": "Advanced Logic Corp. TinyJ embedded processor family",
"62": "AMD x86-64",
"140": "TMS320C6000 Family",
"175": "MCST Elbrus e2k",
"183": "ARM 64-bits (ARMv8/Aarch64)",
"243": "RISC-V",
"247": "Berkeley Packet Filter",
"257": "WDC 65C816"
}
p_types = {
"0": "NULL",
"1": "LOAD",
"2": "DYNAMIC",
"3": "INTERP",
"4": "NOTE",
"5": "SHLIB",
"6": "PHDR",
"7": "TLS",
"1610612736": "LOOS",
"1879048191": "HIOS",
"1879048192": "LOPROC",
"2147483647": "HIPROC"
}
p_flags = {
"0": "access denied",
"1": "E",
"2": "W",
"3": "WE",
"4": "R",
"5": "RE",
"6": "RW",
"7": "RWE"
}
s_types = {
"0": "null",
"1": "PROGBITS",
"2": "SYMTAB",
"3": "STRTAB",
"4": "RELA",
"5": "HASH",
"6": "DYNAMIC",
"7": "NOTE",
"8": "NOBITS",
"9": "REL",
"10": "SHLIB",
"11": "DYNSYM",
"14": "INITARRAY",
"15": "FINIARRAY",
"16": "PREINITARRAY",
"17": "GROUP",
"18": "SYMTABSHNDX",
"19": "NUM",
"1610612736": "LOOS"
}
s_flags = {
"1": "W",
"2": "A",
"3": "WA",
"6": "AX",
"4": "X",
"16": "MERGE",
"32": "STRINGS",
"64": "INFO_LINK",
"128": "LINK_ORDER",
"256": "OS_NONCONFORMING",
"512": "GROUP",
"1024": "TLS",
"67108864": "ORDERED",
"134217728": "EXCLUDE",
"267386880": "MASKOS",
"4026531840": "MASKPROC"
}