lief 0.16.5__cp313-cp313-win32.whl → 0.17.0__cp313-cp313-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/ART/__init__.pyi +19 -18
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +165 -159
- lief/ELF/__init__.pyi +2807 -2348
- lief/MachO/__init__.pyi +1877 -1457
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2633 -2021
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.py +1 -1
- lief/__init__.pyi +280 -249
- lief/_lief.pyd +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +11015 -8889
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +4521 -4491
- lief/assembly/ebpf/__init__.pyi +535 -481
- lief/assembly/mips/__init__.pyi +2926 -2888
- lief/assembly/powerpc/__init__.pyi +2958 -2846
- lief/assembly/riscv/__init__.pyi +14788 -13826
- lief/assembly/x86/__init__.pyi +24970 -19926
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +31 -25
- lief/dwarf/__init__.pyi +160 -146
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/dwarf/parameters/__init__.pyi +3 -3
- lief/dwarf/types/__init__.pyi +49 -49
- lief/logging/__init__.pyi +12 -12
- lief/objc/__init__.pyi +26 -26
- lief/pdb/__init__.pyi +272 -38
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
lief/MachO/__init__.pyi
CHANGED
|
@@ -5,12 +5,14 @@ import lief.MachO
|
|
|
5
5
|
import os
|
|
6
6
|
from typing import Iterator, Optional, Union, overload
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
import lief
|
|
10
|
+
import lief.objc
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
class
|
|
13
|
+
class MACHO_TYPES(enum.Enum):
|
|
12
14
|
@staticmethod
|
|
13
|
-
def from_value(arg: int, /) ->
|
|
15
|
+
def from_value(arg: int, /) -> MACHO_TYPES: ...
|
|
14
16
|
|
|
15
17
|
def __eq__(self, arg, /) -> bool: ...
|
|
16
18
|
|
|
@@ -18,31 +20,23 @@ class ARM64_RELOCATION(enum.Enum):
|
|
|
18
20
|
|
|
19
21
|
def __int__(self) -> int: ...
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
SUBTRACTOR = 1
|
|
24
|
-
|
|
25
|
-
BRANCH26 = 2
|
|
26
|
-
|
|
27
|
-
PAGE21 = 3
|
|
28
|
-
|
|
29
|
-
PAGEOFF12 = 4
|
|
23
|
+
MAGIC = 4277009102
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
CIGAM = 3472551422
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
MAGIC_64 = 4277009103
|
|
34
28
|
|
|
35
|
-
|
|
29
|
+
CIGAM_64 = 3489328638
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
MAGIC_FAT = 3405691582
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
CIGAM_FAT = 3199925962
|
|
40
34
|
|
|
41
|
-
|
|
35
|
+
NEURAL_MODEL = 3203398350
|
|
42
36
|
|
|
43
|
-
class
|
|
37
|
+
class X86_RELOCATION(enum.Enum):
|
|
44
38
|
@staticmethod
|
|
45
|
-
def from_value(arg: int, /) ->
|
|
39
|
+
def from_value(arg: int, /) -> X86_RELOCATION: ...
|
|
46
40
|
|
|
47
41
|
def __eq__(self, arg, /) -> bool: ...
|
|
48
42
|
|
|
@@ -56,220 +50,814 @@ class ARM_RELOCATION(enum.Enum):
|
|
|
56
50
|
|
|
57
51
|
SECTDIFF = 2
|
|
58
52
|
|
|
59
|
-
|
|
53
|
+
PB_LA_PTR = 3
|
|
60
54
|
|
|
61
|
-
|
|
55
|
+
LOCAL_SECTDIFF = 4
|
|
62
56
|
|
|
63
|
-
|
|
57
|
+
TLV = 5
|
|
64
58
|
|
|
65
|
-
|
|
59
|
+
class X86_64_RELOCATION(enum.Enum):
|
|
60
|
+
@staticmethod
|
|
61
|
+
def from_value(arg: int, /) -> X86_64_RELOCATION: ...
|
|
66
62
|
|
|
67
|
-
|
|
63
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
68
64
|
|
|
69
|
-
|
|
65
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
70
66
|
|
|
71
|
-
|
|
67
|
+
def __int__(self) -> int: ...
|
|
72
68
|
|
|
73
|
-
|
|
74
|
-
class it_commands:
|
|
75
|
-
def __getitem__(self, arg: int, /) -> LoadCommand: ...
|
|
69
|
+
UNSIGNED = 0
|
|
76
70
|
|
|
77
|
-
|
|
71
|
+
SIGNED = 1
|
|
78
72
|
|
|
79
|
-
|
|
73
|
+
BRANCH = 2
|
|
80
74
|
|
|
81
|
-
|
|
75
|
+
GOT_LOAD = 3
|
|
82
76
|
|
|
83
|
-
|
|
84
|
-
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
77
|
+
GOT = 4
|
|
85
78
|
|
|
86
|
-
|
|
79
|
+
SUBTRACTOR = 5
|
|
87
80
|
|
|
88
|
-
|
|
81
|
+
SIGNED_1 = 6
|
|
89
82
|
|
|
90
|
-
|
|
83
|
+
SIGNED_2 = 7
|
|
91
84
|
|
|
92
|
-
|
|
93
|
-
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
85
|
+
SIGNED_4 = 8
|
|
94
86
|
|
|
95
|
-
|
|
87
|
+
TLV = 9
|
|
96
88
|
|
|
97
|
-
|
|
89
|
+
class PPC_RELOCATION(enum.Enum):
|
|
90
|
+
@staticmethod
|
|
91
|
+
def from_value(arg: int, /) -> PPC_RELOCATION: ...
|
|
98
92
|
|
|
99
|
-
|
|
93
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
100
94
|
|
|
101
|
-
|
|
102
|
-
def __getitem__(self, arg: int, /) -> Section: ...
|
|
95
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
103
96
|
|
|
104
|
-
|
|
97
|
+
def __int__(self) -> int: ...
|
|
105
98
|
|
|
106
|
-
|
|
99
|
+
VANILLA = 0
|
|
107
100
|
|
|
108
|
-
|
|
101
|
+
PAIR = 1
|
|
109
102
|
|
|
110
|
-
|
|
111
|
-
def __getitem__(self, arg: int, /) -> SegmentCommand: ...
|
|
103
|
+
BR14 = 2
|
|
112
104
|
|
|
113
|
-
|
|
105
|
+
BR24 = 3
|
|
114
106
|
|
|
115
|
-
|
|
107
|
+
HI16 = 4
|
|
116
108
|
|
|
117
|
-
|
|
109
|
+
LO16 = 5
|
|
118
110
|
|
|
119
|
-
|
|
120
|
-
def __getitem__(self, arg: int, /) -> DylibCommand: ...
|
|
111
|
+
HA16 = 6
|
|
121
112
|
|
|
122
|
-
|
|
113
|
+
LO14 = 7
|
|
123
114
|
|
|
124
|
-
|
|
115
|
+
SECTDIFF = 8
|
|
125
116
|
|
|
126
|
-
|
|
117
|
+
PB_LA_PTR = 9
|
|
127
118
|
|
|
128
|
-
|
|
129
|
-
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
119
|
+
HI16_SECTDIFF = 10
|
|
130
120
|
|
|
131
|
-
|
|
121
|
+
LO16_SECTDIFF = 11
|
|
132
122
|
|
|
133
|
-
|
|
123
|
+
HA16_SECTDIFF = 12
|
|
134
124
|
|
|
135
|
-
|
|
125
|
+
JBSR = 13
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
def __getitem__(self, arg: int, /) -> RPathCommand: ...
|
|
127
|
+
LO14_SECTDIFF = 14
|
|
139
128
|
|
|
140
|
-
|
|
129
|
+
LOCAL_SECTDIFF = 15
|
|
141
130
|
|
|
142
|
-
|
|
131
|
+
class ARM_RELOCATION(enum.Enum):
|
|
132
|
+
@staticmethod
|
|
133
|
+
def from_value(arg: int, /) -> ARM_RELOCATION: ...
|
|
143
134
|
|
|
144
|
-
|
|
135
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
145
136
|
|
|
146
|
-
|
|
147
|
-
def __getitem__(self, arg: int, /) -> SubClient: ...
|
|
137
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
148
138
|
|
|
149
|
-
|
|
139
|
+
def __int__(self) -> int: ...
|
|
150
140
|
|
|
151
|
-
|
|
141
|
+
VANILLA = 0
|
|
152
142
|
|
|
153
|
-
|
|
143
|
+
PAIR = 1
|
|
154
144
|
|
|
155
|
-
|
|
156
|
-
start: int
|
|
145
|
+
SECTDIFF = 2
|
|
157
146
|
|
|
158
|
-
|
|
147
|
+
LOCAL_SECTDIFF = 3
|
|
159
148
|
|
|
160
|
-
|
|
161
|
-
def header(self) -> Header: ... # type: ignore
|
|
149
|
+
PB_LA_PTR = 4
|
|
162
150
|
|
|
163
|
-
|
|
164
|
-
def sections(self) -> Binary.it_sections: ... # type: ignore
|
|
151
|
+
BR24 = 5
|
|
165
152
|
|
|
166
|
-
|
|
167
|
-
def relocations(self) -> Binary.it_relocations: ... # type: ignore
|
|
153
|
+
THUMB_RELOC_BR22 = 6
|
|
168
154
|
|
|
169
|
-
|
|
170
|
-
def segments(self) -> Binary.it_segments: ...
|
|
155
|
+
THUMB_32BIT_BRANCH = 7
|
|
171
156
|
|
|
172
|
-
|
|
173
|
-
def libraries(self) -> Binary.it_libraries: ... # type: ignore
|
|
157
|
+
HALF = 8
|
|
174
158
|
|
|
175
|
-
|
|
176
|
-
def symbols(self) -> Binary.it_symbols: ... # type: ignore
|
|
159
|
+
HALF_SECTDIFF = 9
|
|
177
160
|
|
|
178
|
-
|
|
161
|
+
class ARM64_RELOCATION(enum.Enum):
|
|
162
|
+
@staticmethod
|
|
163
|
+
def from_value(arg: int, /) -> ARM64_RELOCATION: ...
|
|
179
164
|
|
|
180
|
-
def
|
|
165
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
181
166
|
|
|
182
|
-
|
|
183
|
-
def imported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
167
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
184
168
|
|
|
185
|
-
|
|
186
|
-
def exported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
169
|
+
def __int__(self) -> int: ...
|
|
187
170
|
|
|
188
|
-
|
|
189
|
-
def commands(self) -> Binary.it_commands: ...
|
|
171
|
+
UNSIGNED = 0
|
|
190
172
|
|
|
191
|
-
|
|
192
|
-
def filesets(self) -> FatBinary.it_binaries: ...
|
|
173
|
+
SUBTRACTOR = 1
|
|
193
174
|
|
|
194
|
-
|
|
195
|
-
def has_filesets(self) -> bool: ...
|
|
175
|
+
BRANCH26 = 2
|
|
196
176
|
|
|
197
|
-
|
|
198
|
-
def fileset_name(self) -> str: ...
|
|
177
|
+
PAGE21 = 3
|
|
199
178
|
|
|
200
|
-
|
|
201
|
-
def imagebase(self) -> int: ...
|
|
179
|
+
PAGEOFF12 = 4
|
|
202
180
|
|
|
203
|
-
|
|
204
|
-
def virtual_size(self) -> int: ...
|
|
181
|
+
GOT_LOAD_PAGE21 = 5
|
|
205
182
|
|
|
206
|
-
|
|
207
|
-
def fat_offset(self) -> int: ...
|
|
183
|
+
GOT_LOAD_PAGEOFF12 = 6
|
|
208
184
|
|
|
209
|
-
|
|
185
|
+
POINTER_TO_GOT = 7
|
|
210
186
|
|
|
211
|
-
|
|
187
|
+
TLVP_LOAD_PAGE21 = 8
|
|
212
188
|
|
|
213
|
-
|
|
189
|
+
TLVP_LOAD_PAGEOFF12 = 9
|
|
214
190
|
|
|
215
|
-
|
|
191
|
+
ADDEND = 10
|
|
216
192
|
|
|
217
|
-
|
|
218
|
-
|
|
193
|
+
class DYLD_CHAINED_FORMAT(enum.Enum):
|
|
194
|
+
@staticmethod
|
|
195
|
+
def from_value(arg: int, /) -> DYLD_CHAINED_FORMAT: ...
|
|
219
196
|
|
|
220
|
-
|
|
221
|
-
def has_uuid(self) -> bool: ...
|
|
197
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
222
198
|
|
|
223
|
-
|
|
224
|
-
def uuid(self) -> UUIDCommand: ...
|
|
199
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
225
200
|
|
|
226
|
-
|
|
227
|
-
def has_main_command(self) -> bool: ...
|
|
201
|
+
def __int__(self) -> int: ...
|
|
228
202
|
|
|
229
|
-
|
|
230
|
-
def main_command(self) -> MainCommand: ...
|
|
203
|
+
IMPORT = 1
|
|
231
204
|
|
|
232
|
-
|
|
233
|
-
def has_dylinker(self) -> bool: ...
|
|
205
|
+
IMPORT_ADDEND = 2
|
|
234
206
|
|
|
235
|
-
|
|
236
|
-
def dylinker(self) -> DylinkerCommand: ...
|
|
207
|
+
IMPORT_ADDEND64 = 3
|
|
237
208
|
|
|
238
|
-
|
|
239
|
-
|
|
209
|
+
class DYLD_CHAINED_PTR_FORMAT(enum.Enum):
|
|
210
|
+
@staticmethod
|
|
211
|
+
def from_value(arg: int, /) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
240
212
|
|
|
241
|
-
|
|
242
|
-
def dyld_info(self) -> DyldInfo: ...
|
|
213
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
243
214
|
|
|
244
|
-
|
|
245
|
-
def has_function_starts(self) -> bool: ...
|
|
215
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
246
216
|
|
|
247
|
-
|
|
248
|
-
def function_starts(self) -> FunctionStarts: ...
|
|
217
|
+
def __int__(self) -> int: ...
|
|
249
218
|
|
|
250
|
-
|
|
251
|
-
def has_source_version(self) -> bool: ...
|
|
219
|
+
NONE = 0
|
|
252
220
|
|
|
253
|
-
|
|
254
|
-
def source_version(self) -> SourceVersion: ...
|
|
221
|
+
PTR_ARM64E = 1
|
|
255
222
|
|
|
256
|
-
|
|
257
|
-
def has_version_min(self) -> bool: ...
|
|
223
|
+
PTR_64 = 2
|
|
258
224
|
|
|
259
|
-
|
|
260
|
-
def version_min(self) -> VersionMin: ...
|
|
225
|
+
PTR_32 = 3
|
|
261
226
|
|
|
262
|
-
|
|
263
|
-
def has_routine_command(self) -> bool: ...
|
|
227
|
+
PTR_32_CACHE = 4
|
|
264
228
|
|
|
265
|
-
|
|
266
|
-
def routine_command(self) -> Routine: ...
|
|
229
|
+
PTR_32_FIRMWARE = 5
|
|
267
230
|
|
|
268
|
-
|
|
269
|
-
def has_thread_command(self) -> bool: ...
|
|
231
|
+
PTR_64_OFFSET = 6
|
|
270
232
|
|
|
271
|
-
|
|
272
|
-
|
|
233
|
+
PTR_ARM64E_KERNEL = 7
|
|
234
|
+
|
|
235
|
+
PTR_64_KERNEL_CACHE = 8
|
|
236
|
+
|
|
237
|
+
PTR_ARM64E_USERLAND = 9
|
|
238
|
+
|
|
239
|
+
PTR_ARM64E_FIRMWARE = 10
|
|
240
|
+
|
|
241
|
+
PTR_X86_64_KERNEL_CACHE = 11
|
|
242
|
+
|
|
243
|
+
PTR_ARM64E_USERLAND24 = 12
|
|
244
|
+
|
|
245
|
+
PTR_ARM64E_SHARED_CACHE = 13
|
|
246
|
+
|
|
247
|
+
PTR_ARM64E_SEGMENTED = 14
|
|
248
|
+
|
|
249
|
+
class ParserConfig:
|
|
250
|
+
def __init__(self) -> None: ...
|
|
251
|
+
|
|
252
|
+
parse_dyld_exports: bool
|
|
253
|
+
|
|
254
|
+
parse_dyld_bindings: bool
|
|
255
|
+
|
|
256
|
+
parse_dyld_rebases: bool
|
|
257
|
+
|
|
258
|
+
fix_from_memory: bool
|
|
259
|
+
|
|
260
|
+
from_dyld_shared_cache: bool
|
|
261
|
+
|
|
262
|
+
def full_dyldinfo(self, flag: bool) -> ParserConfig: ...
|
|
263
|
+
|
|
264
|
+
deep: ParserConfig = ...
|
|
265
|
+
|
|
266
|
+
quick: ParserConfig = ...
|
|
267
|
+
|
|
268
|
+
def parse_from_memory(address: int, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
269
|
+
|
|
270
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
271
|
+
|
|
272
|
+
class ChainedPointerAnalysis:
|
|
273
|
+
class dyld_chained_ptr_arm64e_rebase_t:
|
|
274
|
+
@property
|
|
275
|
+
def unpack_target(self) -> int: ...
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
def target(self) -> int: ...
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
def high8(self) -> int: ...
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def next(self) -> int: ...
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
def bind(self) -> bool: ...
|
|
288
|
+
|
|
289
|
+
@property
|
|
290
|
+
def auth(self) -> bool: ...
|
|
291
|
+
|
|
292
|
+
def __str__(self) -> str: ...
|
|
293
|
+
|
|
294
|
+
class dyld_chained_ptr_arm64e_bind_t:
|
|
295
|
+
@property
|
|
296
|
+
def ordinal(self) -> int: ...
|
|
297
|
+
|
|
298
|
+
@property
|
|
299
|
+
def zero(self) -> int: ...
|
|
300
|
+
|
|
301
|
+
@property
|
|
302
|
+
def addend(self) -> int: ...
|
|
303
|
+
|
|
304
|
+
@property
|
|
305
|
+
def next(self) -> int: ...
|
|
306
|
+
|
|
307
|
+
@property
|
|
308
|
+
def bind(self) -> bool: ...
|
|
309
|
+
|
|
310
|
+
@property
|
|
311
|
+
def auth(self) -> bool: ...
|
|
312
|
+
|
|
313
|
+
def __str__(self) -> str: ...
|
|
314
|
+
|
|
315
|
+
class dyld_chained_ptr_arm64e_auth_rebase_t:
|
|
316
|
+
@property
|
|
317
|
+
def target(self) -> int: ...
|
|
318
|
+
|
|
319
|
+
@property
|
|
320
|
+
def diversity(self) -> int: ...
|
|
321
|
+
|
|
322
|
+
@property
|
|
323
|
+
def addr_div(self) -> int: ...
|
|
324
|
+
|
|
325
|
+
@property
|
|
326
|
+
def key(self) -> int: ...
|
|
327
|
+
|
|
328
|
+
@property
|
|
329
|
+
def next(self) -> int: ...
|
|
330
|
+
|
|
331
|
+
@property
|
|
332
|
+
def bind(self) -> bool: ...
|
|
333
|
+
|
|
334
|
+
@property
|
|
335
|
+
def auth(self) -> int: ...
|
|
336
|
+
|
|
337
|
+
def __str__(self) -> str: ...
|
|
338
|
+
|
|
339
|
+
class dyld_chained_ptr_arm64e_auth_bind_t:
|
|
340
|
+
@property
|
|
341
|
+
def ordinal(self) -> int: ...
|
|
342
|
+
|
|
343
|
+
@property
|
|
344
|
+
def zero(self) -> int: ...
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
def diversity(self) -> int: ...
|
|
348
|
+
|
|
349
|
+
@property
|
|
350
|
+
def addr_div(self) -> int: ...
|
|
351
|
+
|
|
352
|
+
@property
|
|
353
|
+
def key(self) -> int: ...
|
|
354
|
+
|
|
355
|
+
@property
|
|
356
|
+
def next(self) -> int: ...
|
|
357
|
+
|
|
358
|
+
@property
|
|
359
|
+
def bind(self) -> bool: ...
|
|
360
|
+
|
|
361
|
+
@property
|
|
362
|
+
def auth(self) -> bool: ...
|
|
363
|
+
|
|
364
|
+
def __str__(self) -> str: ...
|
|
365
|
+
|
|
366
|
+
class dyld_chained_ptr_64_rebase_t:
|
|
367
|
+
@property
|
|
368
|
+
def unpack_target(self) -> int: ...
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def target(self) -> int: ...
|
|
372
|
+
|
|
373
|
+
@property
|
|
374
|
+
def high8(self) -> int: ...
|
|
375
|
+
|
|
376
|
+
@property
|
|
377
|
+
def reserved(self) -> int: ...
|
|
378
|
+
|
|
379
|
+
@property
|
|
380
|
+
def next(self) -> int: ...
|
|
381
|
+
|
|
382
|
+
@property
|
|
383
|
+
def bind(self) -> bool: ...
|
|
384
|
+
|
|
385
|
+
def __str__(self) -> str: ...
|
|
386
|
+
|
|
387
|
+
class dyld_chained_ptr_arm64e_bind24_t:
|
|
388
|
+
@property
|
|
389
|
+
def ordinal(self) -> int: ...
|
|
390
|
+
|
|
391
|
+
@property
|
|
392
|
+
def zero(self) -> int: ...
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
def addend(self) -> int: ...
|
|
396
|
+
|
|
397
|
+
@property
|
|
398
|
+
def next(self) -> int: ...
|
|
399
|
+
|
|
400
|
+
@property
|
|
401
|
+
def bind(self) -> bool: ...
|
|
402
|
+
|
|
403
|
+
@property
|
|
404
|
+
def auth(self) -> bool: ...
|
|
405
|
+
|
|
406
|
+
def __str__(self) -> str: ...
|
|
407
|
+
|
|
408
|
+
class dyld_chained_ptr_arm64e_auth_bind24_t:
|
|
409
|
+
@property
|
|
410
|
+
def ordinal(self) -> int: ...
|
|
411
|
+
|
|
412
|
+
@property
|
|
413
|
+
def zero(self) -> int: ...
|
|
414
|
+
|
|
415
|
+
@property
|
|
416
|
+
def diversity(self) -> int: ...
|
|
417
|
+
|
|
418
|
+
@property
|
|
419
|
+
def addr_div(self) -> int: ...
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def key(self) -> int: ...
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
def next(self) -> int: ...
|
|
426
|
+
|
|
427
|
+
@property
|
|
428
|
+
def bind(self) -> bool: ...
|
|
429
|
+
|
|
430
|
+
@property
|
|
431
|
+
def auth(self) -> bool: ...
|
|
432
|
+
|
|
433
|
+
def __str__(self) -> str: ...
|
|
434
|
+
|
|
435
|
+
class dyld_chained_ptr_64_bind_t:
|
|
436
|
+
@property
|
|
437
|
+
def ordinal(self) -> int: ...
|
|
438
|
+
|
|
439
|
+
@property
|
|
440
|
+
def addend(self) -> int: ...
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
def reserved(self) -> int: ...
|
|
444
|
+
|
|
445
|
+
@property
|
|
446
|
+
def next(self) -> int: ...
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
def bind(self) -> bool: ...
|
|
450
|
+
|
|
451
|
+
def __str__(self) -> str: ...
|
|
452
|
+
|
|
453
|
+
class dyld_chained_ptr_64_kernel_cache_rebase_t:
|
|
454
|
+
@property
|
|
455
|
+
def ordinal(self) -> int: ...
|
|
456
|
+
|
|
457
|
+
@property
|
|
458
|
+
def cache_level(self) -> int: ...
|
|
459
|
+
|
|
460
|
+
@property
|
|
461
|
+
def diversity(self) -> int: ...
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
def addr_div(self) -> int: ...
|
|
465
|
+
|
|
466
|
+
@property
|
|
467
|
+
def key(self) -> int: ...
|
|
468
|
+
|
|
469
|
+
@property
|
|
470
|
+
def next(self) -> int: ...
|
|
471
|
+
|
|
472
|
+
@property
|
|
473
|
+
def is_auth(self) -> bool: ...
|
|
474
|
+
|
|
475
|
+
def __str__(self) -> str: ...
|
|
476
|
+
|
|
477
|
+
class dyld_chained_ptr_32_rebase_t:
|
|
478
|
+
@property
|
|
479
|
+
def target(self) -> int: ...
|
|
480
|
+
|
|
481
|
+
@property
|
|
482
|
+
def next(self) -> int: ...
|
|
483
|
+
|
|
484
|
+
@property
|
|
485
|
+
def bind(self) -> int: ...
|
|
486
|
+
|
|
487
|
+
def __str__(self) -> str: ...
|
|
488
|
+
|
|
489
|
+
class dyld_chained_ptr_32_bind_t:
|
|
490
|
+
@property
|
|
491
|
+
def ordinal(self) -> int: ...
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
def addend(self) -> int: ...
|
|
495
|
+
|
|
496
|
+
@property
|
|
497
|
+
def next(self) -> int: ...
|
|
498
|
+
|
|
499
|
+
@property
|
|
500
|
+
def bind(self) -> bool: ...
|
|
501
|
+
|
|
502
|
+
def __str__(self) -> str: ...
|
|
503
|
+
|
|
504
|
+
class dyld_chained_ptr_32_cache_rebase_t:
|
|
505
|
+
@property
|
|
506
|
+
def target(self) -> int: ...
|
|
507
|
+
|
|
508
|
+
@property
|
|
509
|
+
def next(self) -> int: ...
|
|
510
|
+
|
|
511
|
+
def __str__(self) -> str: ...
|
|
512
|
+
|
|
513
|
+
class dyld_chained_ptr_32_firmware_rebase_t:
|
|
514
|
+
@property
|
|
515
|
+
def target(self) -> int: ...
|
|
516
|
+
|
|
517
|
+
@property
|
|
518
|
+
def next(self) -> int: ...
|
|
519
|
+
|
|
520
|
+
def __str__(self) -> str: ...
|
|
521
|
+
|
|
522
|
+
class dyld_chained_ptr_arm64e_segmented_rebase_t:
|
|
523
|
+
@property
|
|
524
|
+
def target_seg_offset(self) -> int: ...
|
|
525
|
+
|
|
526
|
+
@property
|
|
527
|
+
def target_seg_index(self) -> int: ...
|
|
528
|
+
|
|
529
|
+
@property
|
|
530
|
+
def padding(self) -> int: ...
|
|
531
|
+
|
|
532
|
+
@property
|
|
533
|
+
def next(self) -> int: ...
|
|
534
|
+
|
|
535
|
+
@property
|
|
536
|
+
def auth(self) -> bool: ...
|
|
537
|
+
|
|
538
|
+
def __str__(self) -> str: ...
|
|
539
|
+
|
|
540
|
+
class dyld_chained_ptr_arm64e_auth_segmented_rebase_t:
|
|
541
|
+
@property
|
|
542
|
+
def target_seg_offset(self) -> int: ...
|
|
543
|
+
|
|
544
|
+
@property
|
|
545
|
+
def target_seg_index(self) -> int: ...
|
|
546
|
+
|
|
547
|
+
@property
|
|
548
|
+
def diversity(self) -> int: ...
|
|
549
|
+
|
|
550
|
+
@property
|
|
551
|
+
def addr_div(self) -> int: ...
|
|
552
|
+
|
|
553
|
+
@property
|
|
554
|
+
def key(self) -> int: ...
|
|
555
|
+
|
|
556
|
+
@property
|
|
557
|
+
def next(self) -> int: ...
|
|
558
|
+
|
|
559
|
+
@property
|
|
560
|
+
def auth(self) -> bool: ...
|
|
561
|
+
|
|
562
|
+
def __str__(self) -> str: ...
|
|
563
|
+
|
|
564
|
+
@staticmethod
|
|
565
|
+
def stride(fmt: DYLD_CHAINED_PTR_FORMAT) -> int: ...
|
|
566
|
+
|
|
567
|
+
@staticmethod
|
|
568
|
+
def from_value(ptr: int, size: int) -> Optional[ChainedPointerAnalysis]: ...
|
|
569
|
+
|
|
570
|
+
@property
|
|
571
|
+
def value(self) -> int: ...
|
|
572
|
+
|
|
573
|
+
@property
|
|
574
|
+
def size(self) -> int: ...
|
|
575
|
+
|
|
576
|
+
@property
|
|
577
|
+
def dyld_chained_ptr_arm64e_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_rebase_t: ...
|
|
578
|
+
|
|
579
|
+
@property
|
|
580
|
+
def dyld_chained_ptr_arm64e_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind_t: ...
|
|
581
|
+
|
|
582
|
+
@property
|
|
583
|
+
def dyld_chained_ptr_arm64e_auth_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_rebase_t: ...
|
|
584
|
+
|
|
585
|
+
@property
|
|
586
|
+
def dyld_chained_ptr_arm64e_auth_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind_t: ...
|
|
587
|
+
|
|
588
|
+
@property
|
|
589
|
+
def dyld_chained_ptr_64_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_rebase_t: ...
|
|
590
|
+
|
|
591
|
+
@property
|
|
592
|
+
def dyld_chained_ptr_arm64e_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind24_t: ...
|
|
593
|
+
|
|
594
|
+
@property
|
|
595
|
+
def dyld_chained_ptr_arm64e_auth_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind24_t: ...
|
|
596
|
+
|
|
597
|
+
@property
|
|
598
|
+
def dyld_chained_ptr_64_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_bind_t: ...
|
|
599
|
+
|
|
600
|
+
@property
|
|
601
|
+
def dyld_chained_ptr_64_kernel_cache_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_kernel_cache_rebase_t: ...
|
|
602
|
+
|
|
603
|
+
@property
|
|
604
|
+
def dyld_chained_ptr_32_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_rebase_t: ...
|
|
605
|
+
|
|
606
|
+
@property
|
|
607
|
+
def dyld_chained_ptr_32_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_bind_t: ...
|
|
608
|
+
|
|
609
|
+
@property
|
|
610
|
+
def dyld_chained_ptr_32_cache_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_cache_rebase_t: ...
|
|
611
|
+
|
|
612
|
+
@property
|
|
613
|
+
def dyld_chained_ptr_32_firmware_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_firmware_rebase_t: ...
|
|
614
|
+
|
|
615
|
+
@property
|
|
616
|
+
def dyld_chained_ptr_arm64e_segmented_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_segmented_rebase_t: ...
|
|
617
|
+
|
|
618
|
+
@property
|
|
619
|
+
def dyld_chained_ptr_arm64e_auth_segmented_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_segmented_rebase_t: ...
|
|
620
|
+
|
|
621
|
+
def get_as(self, arg: DYLD_CHAINED_PTR_FORMAT, /) -> Union[lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_64_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind24_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind24_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_64_bind_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_64_kernel_cache_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_32_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_32_bind_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_32_cache_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_32_firmware_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_segmented_rebase_t, lief.MachO.ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_segmented_rebase_t, int, None]: ...
|
|
622
|
+
|
|
623
|
+
class FatBinary:
|
|
624
|
+
class it_binaries:
|
|
625
|
+
def __getitem__(self, arg: int, /) -> Binary: ...
|
|
626
|
+
|
|
627
|
+
def __len__(self) -> int: ...
|
|
628
|
+
|
|
629
|
+
def __iter__(self) -> FatBinary.it_binaries: ...
|
|
630
|
+
|
|
631
|
+
def __next__(self) -> Binary: ...
|
|
632
|
+
|
|
633
|
+
@property
|
|
634
|
+
def size(self) -> int: ...
|
|
635
|
+
|
|
636
|
+
def at(self, index: int) -> Binary: ...
|
|
637
|
+
|
|
638
|
+
def take(self, cpu: Header.CPU_TYPE) -> Optional[Binary]: ...
|
|
639
|
+
|
|
640
|
+
def write(self, filename: str) -> None: ...
|
|
641
|
+
|
|
642
|
+
def raw(self) -> list[int]: ...
|
|
643
|
+
|
|
644
|
+
def __len__(self) -> int: ...
|
|
645
|
+
|
|
646
|
+
def __getitem__(self, arg: int, /) -> Binary: ...
|
|
647
|
+
|
|
648
|
+
def __iter__(self) -> FatBinary.it_binaries: ...
|
|
649
|
+
|
|
650
|
+
def __str__(self) -> str: ...
|
|
651
|
+
|
|
652
|
+
class Binary(lief.Binary):
|
|
653
|
+
class it_commands:
|
|
654
|
+
def __getitem__(self, arg: int, /) -> LoadCommand: ...
|
|
655
|
+
|
|
656
|
+
def __len__(self) -> int: ...
|
|
657
|
+
|
|
658
|
+
def __iter__(self) -> Binary.it_commands: ...
|
|
659
|
+
|
|
660
|
+
def __next__(self) -> LoadCommand: ...
|
|
661
|
+
|
|
662
|
+
class it_symbols:
|
|
663
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
664
|
+
|
|
665
|
+
def __len__(self) -> int: ...
|
|
666
|
+
|
|
667
|
+
def __iter__(self) -> Binary.it_symbols: ...
|
|
668
|
+
|
|
669
|
+
def __next__(self) -> Symbol: ...
|
|
670
|
+
|
|
671
|
+
class it_filter_symbols:
|
|
672
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
673
|
+
|
|
674
|
+
def __len__(self) -> int: ...
|
|
675
|
+
|
|
676
|
+
def __iter__(self) -> Binary.it_filter_symbols: ...
|
|
677
|
+
|
|
678
|
+
def __next__(self) -> Symbol: ...
|
|
679
|
+
|
|
680
|
+
class it_sections:
|
|
681
|
+
def __getitem__(self, arg: int, /) -> Section: ...
|
|
682
|
+
|
|
683
|
+
def __len__(self) -> int: ...
|
|
684
|
+
|
|
685
|
+
def __iter__(self) -> Binary.it_sections: ...
|
|
686
|
+
|
|
687
|
+
def __next__(self) -> Section: ...
|
|
688
|
+
|
|
689
|
+
class it_segments:
|
|
690
|
+
def __getitem__(self, arg: int, /) -> SegmentCommand: ...
|
|
691
|
+
|
|
692
|
+
def __len__(self) -> int: ...
|
|
693
|
+
|
|
694
|
+
def __iter__(self) -> Binary.it_segments: ...
|
|
695
|
+
|
|
696
|
+
def __next__(self) -> SegmentCommand: ...
|
|
697
|
+
|
|
698
|
+
class it_libraries:
|
|
699
|
+
def __getitem__(self, arg: int, /) -> DylibCommand: ...
|
|
700
|
+
|
|
701
|
+
def __len__(self) -> int: ...
|
|
702
|
+
|
|
703
|
+
def __iter__(self) -> Binary.it_libraries: ...
|
|
704
|
+
|
|
705
|
+
def __next__(self) -> DylibCommand: ...
|
|
706
|
+
|
|
707
|
+
class it_relocations:
|
|
708
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
709
|
+
|
|
710
|
+
def __len__(self) -> int: ...
|
|
711
|
+
|
|
712
|
+
def __iter__(self) -> Binary.it_relocations: ...
|
|
713
|
+
|
|
714
|
+
def __next__(self) -> Relocation: ...
|
|
715
|
+
|
|
716
|
+
class it_rpaths:
|
|
717
|
+
def __getitem__(self, arg: int, /) -> RPathCommand: ...
|
|
718
|
+
|
|
719
|
+
def __len__(self) -> int: ...
|
|
720
|
+
|
|
721
|
+
def __iter__(self) -> Binary.it_rpaths: ...
|
|
722
|
+
|
|
723
|
+
def __next__(self) -> RPathCommand: ...
|
|
724
|
+
|
|
725
|
+
class it_sub_clients:
|
|
726
|
+
def __getitem__(self, arg: int, /) -> SubClient: ...
|
|
727
|
+
|
|
728
|
+
def __len__(self) -> int: ...
|
|
729
|
+
|
|
730
|
+
def __iter__(self) -> Binary.it_sub_clients: ...
|
|
731
|
+
|
|
732
|
+
def __next__(self) -> SubClient: ...
|
|
733
|
+
|
|
734
|
+
class it_notes:
|
|
735
|
+
def __getitem__(self, arg: int, /) -> NoteCommand: ...
|
|
736
|
+
|
|
737
|
+
def __len__(self) -> int: ...
|
|
738
|
+
|
|
739
|
+
def __iter__(self) -> Binary.it_notes: ...
|
|
740
|
+
|
|
741
|
+
def __next__(self) -> NoteCommand: ...
|
|
742
|
+
|
|
743
|
+
class range_t:
|
|
744
|
+
start: int
|
|
745
|
+
|
|
746
|
+
end: int
|
|
747
|
+
|
|
748
|
+
@property
|
|
749
|
+
def header(self) -> Header: ... # type: ignore
|
|
750
|
+
|
|
751
|
+
@property
|
|
752
|
+
def sections(self) -> Binary.it_sections: ... # type: ignore
|
|
753
|
+
|
|
754
|
+
@property
|
|
755
|
+
def relocations(self) -> Binary.it_relocations: ... # type: ignore
|
|
756
|
+
|
|
757
|
+
@property
|
|
758
|
+
def segments(self) -> Binary.it_segments: ...
|
|
759
|
+
|
|
760
|
+
@property
|
|
761
|
+
def libraries(self) -> Binary.it_libraries: ... # type: ignore
|
|
762
|
+
|
|
763
|
+
@property
|
|
764
|
+
def symbols(self) -> Binary.it_symbols: ... # type: ignore
|
|
765
|
+
|
|
766
|
+
def has_symbol(self, name: str) -> bool: ...
|
|
767
|
+
|
|
768
|
+
def get_symbol(self, name: str) -> Symbol: ...
|
|
769
|
+
|
|
770
|
+
@property
|
|
771
|
+
def imported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
772
|
+
|
|
773
|
+
@property
|
|
774
|
+
def exported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
775
|
+
|
|
776
|
+
@property
|
|
777
|
+
def commands(self) -> Binary.it_commands: ...
|
|
778
|
+
|
|
779
|
+
@property
|
|
780
|
+
def filesets(self) -> FatBinary.it_binaries: ...
|
|
781
|
+
|
|
782
|
+
@property
|
|
783
|
+
def has_filesets(self) -> bool: ...
|
|
784
|
+
|
|
785
|
+
@property
|
|
786
|
+
def fileset_name(self) -> str: ...
|
|
787
|
+
|
|
788
|
+
@property
|
|
789
|
+
def imagebase(self) -> int: ...
|
|
790
|
+
|
|
791
|
+
@property
|
|
792
|
+
def virtual_size(self) -> int: ...
|
|
793
|
+
|
|
794
|
+
@property
|
|
795
|
+
def fat_offset(self) -> int: ...
|
|
796
|
+
|
|
797
|
+
def section_from_offset(self, arg: int, /) -> Section: ...
|
|
798
|
+
|
|
799
|
+
def section_from_virtual_address(self, arg: int, /) -> Section: ...
|
|
800
|
+
|
|
801
|
+
def segment_from_offset(self, arg: int, /) -> SegmentCommand: ...
|
|
802
|
+
|
|
803
|
+
def segment_from_virtual_address(self, arg: int, /) -> SegmentCommand: ...
|
|
804
|
+
|
|
805
|
+
@property
|
|
806
|
+
def has_entrypoint(self) -> bool: ...
|
|
807
|
+
|
|
808
|
+
@property
|
|
809
|
+
def has_uuid(self) -> bool: ...
|
|
810
|
+
|
|
811
|
+
@property
|
|
812
|
+
def uuid(self) -> UUIDCommand: ...
|
|
813
|
+
|
|
814
|
+
@property
|
|
815
|
+
def has_main_command(self) -> bool: ...
|
|
816
|
+
|
|
817
|
+
@property
|
|
818
|
+
def main_command(self) -> MainCommand: ...
|
|
819
|
+
|
|
820
|
+
@property
|
|
821
|
+
def has_dylinker(self) -> bool: ...
|
|
822
|
+
|
|
823
|
+
@property
|
|
824
|
+
def dylinker(self) -> DylinkerCommand: ...
|
|
825
|
+
|
|
826
|
+
@property
|
|
827
|
+
def has_dyld_info(self) -> bool: ...
|
|
828
|
+
|
|
829
|
+
@property
|
|
830
|
+
def dyld_info(self) -> DyldInfo: ...
|
|
831
|
+
|
|
832
|
+
@property
|
|
833
|
+
def has_function_starts(self) -> bool: ...
|
|
834
|
+
|
|
835
|
+
@property
|
|
836
|
+
def function_starts(self) -> FunctionStarts: ...
|
|
837
|
+
|
|
838
|
+
@property
|
|
839
|
+
def has_source_version(self) -> bool: ...
|
|
840
|
+
|
|
841
|
+
@property
|
|
842
|
+
def source_version(self) -> SourceVersion: ...
|
|
843
|
+
|
|
844
|
+
@property
|
|
845
|
+
def has_version_min(self) -> bool: ...
|
|
846
|
+
|
|
847
|
+
@property
|
|
848
|
+
def version_min(self) -> VersionMin: ...
|
|
849
|
+
|
|
850
|
+
@property
|
|
851
|
+
def has_routine_command(self) -> bool: ...
|
|
852
|
+
|
|
853
|
+
@property
|
|
854
|
+
def routine_command(self) -> Routine: ...
|
|
855
|
+
|
|
856
|
+
@property
|
|
857
|
+
def has_thread_command(self) -> bool: ...
|
|
858
|
+
|
|
859
|
+
@property
|
|
860
|
+
def thread_command(self) -> ThreadCommand: ...
|
|
273
861
|
|
|
274
862
|
@property
|
|
275
863
|
def has_rpath(self) -> bool: ...
|
|
@@ -379,907 +967,658 @@ class Binary(lief.Binary):
|
|
|
379
967
|
@property
|
|
380
968
|
def linker_opt_hint(self) -> LinkerOptHint: ...
|
|
381
969
|
|
|
382
|
-
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
|
|
383
|
-
|
|
384
|
-
def has_section(self, name: str) -> bool: ...
|
|
385
|
-
|
|
386
|
-
@overload
|
|
387
|
-
def get_section(self, name: str) -> Section: ...
|
|
388
|
-
|
|
389
|
-
@overload
|
|
390
|
-
def get_section(self, segname: str, secname: str) -> Section: ...
|
|
391
|
-
|
|
392
|
-
def has_segment(self, name: str) -> bool: ...
|
|
393
|
-
|
|
394
|
-
def get_segment(self, name: str) -> SegmentCommand: ...
|
|
395
|
-
|
|
396
|
-
@property
|
|
397
|
-
def va_ranges(self) -> Binary.range_t: ...
|
|
398
|
-
|
|
399
|
-
@property
|
|
400
|
-
def off_ranges(self) -> Binary.range_t: ...
|
|
401
|
-
|
|
402
|
-
def is_valid_addr(self, address: int) -> bool: ...
|
|
403
|
-
|
|
404
|
-
@overload
|
|
405
|
-
def write(self, output: str) -> None: ...
|
|
406
|
-
|
|
407
|
-
@overload
|
|
408
|
-
def write(self, output: str, config: Builder.config_t) -> None: ...
|
|
409
|
-
|
|
410
|
-
@overload
|
|
411
|
-
def add(self, dylib_command: DylibCommand) -> LoadCommand: ...
|
|
412
|
-
|
|
413
|
-
@overload
|
|
414
|
-
def add(self, segment: SegmentCommand) -> LoadCommand: ...
|
|
415
|
-
|
|
416
|
-
@overload
|
|
417
|
-
def add(self, load_command: LoadCommand) -> LoadCommand: ...
|
|
418
|
-
|
|
419
|
-
@overload
|
|
420
|
-
def add(self, load_command: LoadCommand, index: int) -> LoadCommand: ...
|
|
421
|
-
|
|
422
|
-
@overload
|
|
423
|
-
def remove(self, load_command: LoadCommand) -> bool: ...
|
|
424
|
-
|
|
425
|
-
@overload
|
|
426
|
-
def remove(self, type: LoadCommand.TYPE) -> bool: ...
|
|
427
|
-
|
|
428
|
-
@overload
|
|
429
|
-
def remove(self, symbol: Symbol) -> bool: ...
|
|
430
|
-
|
|
431
|
-
def remove_command(self, index: int) -> bool: ...
|
|
432
|
-
|
|
433
|
-
@overload
|
|
434
|
-
def remove_section(self, name: str, clear: bool = False) -> None: ...
|
|
435
|
-
|
|
436
|
-
@overload
|
|
437
|
-
def remove_section(self, segname: str, secname: str, clear: bool = False) -> None: ...
|
|
438
|
-
|
|
439
|
-
def remove_signature(self) -> bool: ...
|
|
440
|
-
|
|
441
|
-
def remove_symbol(self, name: str) -> bool: ...
|
|
442
|
-
|
|
443
|
-
def can_remove(self, symbol: Symbol) -> bool: ...
|
|
444
|
-
|
|
445
|
-
def can_remove_symbol(self, symbol_name: str) -> bool: ...
|
|
446
|
-
|
|
447
|
-
@overload
|
|
448
|
-
def unexport(self, name: str) -> bool: ...
|
|
449
|
-
|
|
450
|
-
@overload
|
|
451
|
-
def unexport(self, symbol: Symbol) -> bool: ...
|
|
452
|
-
|
|
453
|
-
def extend(self, load_command: LoadCommand, size: int) -> bool: ...
|
|
454
|
-
|
|
455
|
-
def extend_segment(self, segment_command: SegmentCommand, size: int) -> bool: ...
|
|
456
|
-
|
|
457
|
-
@overload
|
|
458
|
-
def add_section(self, segment: SegmentCommand, section: Section) -> Section: ...
|
|
459
|
-
|
|
460
|
-
@overload
|
|
461
|
-
def add_section(self, section: Section) -> Section: ...
|
|
462
|
-
|
|
463
|
-
def add_library(self, library_name: str) -> LoadCommand: ...
|
|
464
|
-
|
|
465
|
-
def get(self, type: LoadCommand.TYPE) -> LoadCommand: ...
|
|
466
|
-
|
|
467
|
-
def has(self, type: LoadCommand.TYPE) -> bool: ...
|
|
468
|
-
|
|
469
|
-
@property
|
|
470
|
-
def unwind_functions(self) -> list[lief.Function]: ...
|
|
471
|
-
|
|
472
|
-
@property
|
|
473
|
-
def functions(self) -> list[lief.Function]: ...
|
|
474
|
-
|
|
475
|
-
def shift(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
476
|
-
|
|
477
|
-
def shift_linkedit(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
478
|
-
|
|
479
|
-
def add_exported_function(self, address: int, name: str) -> ExportInfo: ...
|
|
480
|
-
|
|
481
|
-
def add_local_symbol(self, address: int, name: str) -> Symbol: ...
|
|
482
|
-
|
|
483
|
-
@property
|
|
484
|
-
def page_size(self) -> int: ...
|
|
485
|
-
|
|
486
|
-
@property
|
|
487
|
-
def bindings(self) -> Iterator[BindingInfo]: ...
|
|
488
|
-
|
|
489
|
-
@property
|
|
490
|
-
def symbol_stubs(self) -> Sequence[Stub]: ...
|
|
491
|
-
|
|
492
|
-
@property
|
|
493
|
-
def has_nx_heap(self) -> bool: ...
|
|
494
|
-
|
|
495
|
-
@property
|
|
496
|
-
def has_nx_stack(self) -> bool: ...
|
|
497
|
-
|
|
498
|
-
@property
|
|
499
|
-
def support_arm64_ptr_auth(self) -> bool: ...
|
|
500
|
-
|
|
501
|
-
@property
|
|
502
|
-
def objc_metadata(self) -> Optional[lief.objc.Metadata]: ...
|
|
503
|
-
|
|
504
|
-
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand: ...
|
|
505
|
-
|
|
506
|
-
def __contains__(self, arg: LoadCommand.TYPE, /) -> bool: ...
|
|
507
|
-
|
|
508
|
-
@property
|
|
509
|
-
def overlay(self) -> memoryview: ...
|
|
510
|
-
|
|
511
|
-
def __str__(self) -> str: ...
|
|
512
|
-
|
|
513
|
-
class BindingInfo(lief.Object):
|
|
514
|
-
address: int
|
|
515
|
-
|
|
516
|
-
library_ordinal: int
|
|
517
|
-
|
|
518
|
-
addend: int
|
|
519
|
-
|
|
520
|
-
weak_import: bool
|
|
521
|
-
|
|
522
|
-
@property
|
|
523
|
-
def has_library(self) -> bool: ...
|
|
524
|
-
|
|
525
|
-
@property
|
|
526
|
-
def library(self) -> DylibCommand: ...
|
|
527
|
-
|
|
528
970
|
@property
|
|
529
|
-
def
|
|
971
|
+
def has_atom_info(self) -> bool: ...
|
|
530
972
|
|
|
531
973
|
@property
|
|
532
|
-
def
|
|
974
|
+
def atom_info(self) -> AtomInfo: ...
|
|
533
975
|
|
|
534
976
|
@property
|
|
535
|
-
def
|
|
977
|
+
def has_function_variants(self) -> bool: ...
|
|
536
978
|
|
|
537
979
|
@property
|
|
538
|
-
def
|
|
980
|
+
def function_variants(self) -> FunctionVariants: ...
|
|
539
981
|
|
|
540
|
-
def __str__(self) -> str: ...
|
|
541
|
-
|
|
542
|
-
class BuildToolVersion(lief.Object):
|
|
543
982
|
@property
|
|
544
|
-
def
|
|
983
|
+
def has_function_variant_fixups(self) -> bool: ...
|
|
545
984
|
|
|
546
985
|
@property
|
|
547
|
-
def
|
|
548
|
-
|
|
549
|
-
def __str__(self) -> str: ...
|
|
550
|
-
|
|
551
|
-
class TOOLS(enum.Enum):
|
|
552
|
-
@staticmethod
|
|
553
|
-
def from_value(arg: int, /) -> BuildToolVersion.TOOLS: ...
|
|
554
|
-
|
|
555
|
-
def __eq__(self, arg, /) -> bool: ...
|
|
556
|
-
|
|
557
|
-
def __ne__(self, arg, /) -> bool: ...
|
|
558
|
-
|
|
559
|
-
def __int__(self) -> int: ...
|
|
560
|
-
|
|
561
|
-
UNKNOWN = 0
|
|
562
|
-
|
|
563
|
-
CLANG = 1
|
|
564
|
-
|
|
565
|
-
SWIFT = 2
|
|
566
|
-
|
|
567
|
-
LD = 3
|
|
568
|
-
|
|
569
|
-
LLD = 4
|
|
986
|
+
def function_variant_fixups(self) -> FunctionVariants: ...
|
|
570
987
|
|
|
571
|
-
|
|
572
|
-
class PLATFORMS(enum.Enum):
|
|
573
|
-
@staticmethod
|
|
574
|
-
def from_value(arg: int, /) -> BuildVersion.PLATFORMS: ...
|
|
988
|
+
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
|
|
575
989
|
|
|
576
|
-
|
|
990
|
+
def has_section(self, name: str) -> bool: ...
|
|
577
991
|
|
|
578
|
-
|
|
992
|
+
@overload
|
|
993
|
+
def get_section(self, name: str) -> Section: ...
|
|
579
994
|
|
|
580
|
-
|
|
995
|
+
@overload
|
|
996
|
+
def get_section(self, segname: str, secname: str) -> Section: ...
|
|
581
997
|
|
|
582
|
-
|
|
998
|
+
def has_segment(self, name: str) -> bool: ...
|
|
583
999
|
|
|
584
|
-
|
|
1000
|
+
def get_segment(self, name: str) -> SegmentCommand: ...
|
|
585
1001
|
|
|
586
|
-
|
|
1002
|
+
@property
|
|
1003
|
+
def va_ranges(self) -> Binary.range_t: ...
|
|
587
1004
|
|
|
588
|
-
|
|
1005
|
+
@property
|
|
1006
|
+
def off_ranges(self) -> Binary.range_t: ...
|
|
589
1007
|
|
|
590
|
-
|
|
1008
|
+
def is_valid_addr(self, address: int) -> bool: ...
|
|
591
1009
|
|
|
592
|
-
|
|
1010
|
+
@overload
|
|
1011
|
+
def write(self, output: Union[str | os.PathLike]) -> None: ...
|
|
593
1012
|
|
|
594
|
-
|
|
1013
|
+
@overload
|
|
1014
|
+
def write(self, output: Union[str | os.PathLike], config: Builder.config_t) -> None: ...
|
|
595
1015
|
|
|
596
|
-
|
|
1016
|
+
@overload
|
|
1017
|
+
def write_to_bytes(self, config: Builder.config_t) -> bytes: ...
|
|
597
1018
|
|
|
598
|
-
|
|
1019
|
+
@overload
|
|
1020
|
+
def write_to_bytes(self) -> bytes: ...
|
|
599
1021
|
|
|
600
|
-
|
|
1022
|
+
@overload
|
|
1023
|
+
def add(self, dylib_command: DylibCommand) -> LoadCommand: ...
|
|
601
1024
|
|
|
602
|
-
|
|
1025
|
+
@overload
|
|
1026
|
+
def add(self, segment: SegmentCommand) -> LoadCommand: ...
|
|
603
1027
|
|
|
604
|
-
|
|
1028
|
+
@overload
|
|
1029
|
+
def add(self, load_command: LoadCommand) -> LoadCommand: ...
|
|
605
1030
|
|
|
606
|
-
|
|
1031
|
+
@overload
|
|
1032
|
+
def add(self, load_command: LoadCommand, index: int) -> LoadCommand: ...
|
|
607
1033
|
|
|
608
|
-
|
|
1034
|
+
@overload
|
|
1035
|
+
def remove(self, load_command: LoadCommand) -> bool: ...
|
|
609
1036
|
|
|
610
|
-
|
|
1037
|
+
@overload
|
|
1038
|
+
def remove(self, type: LoadCommand.TYPE) -> bool: ...
|
|
611
1039
|
|
|
612
|
-
|
|
1040
|
+
@overload
|
|
1041
|
+
def remove(self, symbol: Symbol) -> bool: ...
|
|
613
1042
|
|
|
614
|
-
|
|
1043
|
+
def remove_command(self, index: int) -> bool: ...
|
|
615
1044
|
|
|
616
|
-
|
|
1045
|
+
@overload
|
|
1046
|
+
def remove_section(self, name: str, clear: bool = False) -> None: ...
|
|
617
1047
|
|
|
618
|
-
|
|
1048
|
+
@overload
|
|
1049
|
+
def remove_section(self, segname: str, secname: str, clear: bool = False) -> None: ...
|
|
619
1050
|
|
|
620
|
-
|
|
621
|
-
def tools(self) -> list[BuildToolVersion]: ...
|
|
1051
|
+
def remove_signature(self) -> bool: ...
|
|
622
1052
|
|
|
623
|
-
def
|
|
1053
|
+
def remove_symbol(self, name: str) -> bool: ...
|
|
624
1054
|
|
|
625
|
-
|
|
626
|
-
class config_t:
|
|
627
|
-
def __init__(self) -> None: ...
|
|
1055
|
+
def can_remove(self, symbol: Symbol) -> bool: ...
|
|
628
1056
|
|
|
629
|
-
|
|
1057
|
+
def can_remove_symbol(self, symbol_name: str) -> bool: ...
|
|
630
1058
|
|
|
631
1059
|
@overload
|
|
632
|
-
|
|
633
|
-
def write(binary: Binary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
1060
|
+
def unexport(self, name: str) -> bool: ...
|
|
634
1061
|
|
|
635
1062
|
@overload
|
|
636
|
-
|
|
637
|
-
|
|
1063
|
+
def unexport(self, symbol: Symbol) -> bool: ...
|
|
1064
|
+
|
|
1065
|
+
def extend(self, load_command: LoadCommand, size: int) -> bool: ...
|
|
1066
|
+
|
|
1067
|
+
def extend_segment(self, segment_command: SegmentCommand, size: int) -> bool: ...
|
|
638
1068
|
|
|
639
1069
|
@overload
|
|
640
|
-
|
|
641
|
-
def write(fat_binary: FatBinary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
1070
|
+
def add_section(self, segment: SegmentCommand, section: Section) -> Section: ...
|
|
642
1071
|
|
|
643
1072
|
@overload
|
|
644
|
-
|
|
645
|
-
|
|
1073
|
+
def add_section(self, section: Section) -> Section: ...
|
|
1074
|
+
|
|
1075
|
+
def find_library(self, name: str) -> DylibCommand: ...
|
|
1076
|
+
|
|
1077
|
+
def extend_section(self, section: Section, size: int) -> bool: ...
|
|
1078
|
+
|
|
1079
|
+
def add_library(self, library_name: str) -> LoadCommand: ...
|
|
1080
|
+
|
|
1081
|
+
def get(self, type: LoadCommand.TYPE) -> LoadCommand: ...
|
|
1082
|
+
|
|
1083
|
+
def has(self, type: LoadCommand.TYPE) -> bool: ...
|
|
646
1084
|
|
|
647
|
-
class ChainedBindingInfo(BindingInfo):
|
|
648
1085
|
@property
|
|
649
|
-
def
|
|
1086
|
+
def unwind_functions(self) -> list[lief.Function]: ...
|
|
650
1087
|
|
|
651
1088
|
@property
|
|
652
|
-
def
|
|
1089
|
+
def functions(self) -> list[lief.Function]: ...
|
|
653
1090
|
|
|
654
|
-
|
|
1091
|
+
def shift(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
655
1092
|
|
|
656
|
-
|
|
657
|
-
def sign_extended_addend(self) -> int: ...
|
|
1093
|
+
def shift_linkedit(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
658
1094
|
|
|
659
|
-
def
|
|
1095
|
+
def add_exported_function(self, address: int, name: str) -> ExportInfo: ...
|
|
660
1096
|
|
|
661
|
-
|
|
662
|
-
class dyld_chained_ptr_arm64e_rebase_t:
|
|
663
|
-
@property
|
|
664
|
-
def unpack_target(self) -> int: ...
|
|
1097
|
+
def add_local_symbol(self, address: int, name: str) -> Symbol: ...
|
|
665
1098
|
|
|
666
|
-
|
|
667
|
-
|
|
1099
|
+
@property
|
|
1100
|
+
def bindings(self) -> Iterator[BindingInfo]: ...
|
|
668
1101
|
|
|
669
|
-
|
|
670
|
-
|
|
1102
|
+
@property
|
|
1103
|
+
def symbol_stubs(self) -> Sequence[Stub]: ...
|
|
671
1104
|
|
|
672
|
-
|
|
673
|
-
|
|
1105
|
+
@property
|
|
1106
|
+
def has_nx_heap(self) -> bool: ...
|
|
674
1107
|
|
|
675
|
-
|
|
676
|
-
|
|
1108
|
+
@property
|
|
1109
|
+
def has_nx_stack(self) -> bool: ...
|
|
677
1110
|
|
|
678
|
-
|
|
679
|
-
|
|
1111
|
+
@property
|
|
1112
|
+
def support_arm64_ptr_auth(self) -> bool: ...
|
|
680
1113
|
|
|
681
|
-
|
|
1114
|
+
@property
|
|
1115
|
+
def objc_metadata(self) -> Optional[lief.objc.Metadata]: ...
|
|
682
1116
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
def ordinal(self) -> int: ...
|
|
1117
|
+
@property
|
|
1118
|
+
def notes(self) -> Binary.it_notes: ...
|
|
686
1119
|
|
|
687
|
-
|
|
688
|
-
|
|
1120
|
+
@property
|
|
1121
|
+
def has_notes(self) -> bool: ...
|
|
689
1122
|
|
|
690
|
-
|
|
691
|
-
def addend(self) -> int: ...
|
|
1123
|
+
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand: ...
|
|
692
1124
|
|
|
693
|
-
|
|
694
|
-
def next(self) -> int: ...
|
|
1125
|
+
def __contains__(self, arg: LoadCommand.TYPE, /) -> bool: ...
|
|
695
1126
|
|
|
696
|
-
|
|
697
|
-
|
|
1127
|
+
@property
|
|
1128
|
+
def overlay(self) -> memoryview: ...
|
|
698
1129
|
|
|
699
|
-
|
|
700
|
-
|
|
1130
|
+
@property
|
|
1131
|
+
def available_command_space(self) -> int: ...
|
|
701
1132
|
|
|
702
|
-
|
|
1133
|
+
def __str__(self) -> str: ...
|
|
703
1134
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
def target(self) -> int: ...
|
|
1135
|
+
class Header(lief.Object):
|
|
1136
|
+
def __init__(self) -> None: ...
|
|
707
1137
|
|
|
708
|
-
|
|
709
|
-
|
|
1138
|
+
class CPU_TYPE(enum.Enum):
|
|
1139
|
+
@staticmethod
|
|
1140
|
+
def from_value(arg: int, /) -> Header.CPU_TYPE: ...
|
|
710
1141
|
|
|
711
|
-
|
|
712
|
-
def addr_div(self) -> int: ...
|
|
1142
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
713
1143
|
|
|
714
|
-
|
|
715
|
-
def key(self) -> int: ...
|
|
1144
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
716
1145
|
|
|
717
|
-
|
|
718
|
-
def next(self) -> int: ...
|
|
1146
|
+
def __int__(self) -> int: ...
|
|
719
1147
|
|
|
720
|
-
|
|
721
|
-
def bind(self) -> bool: ...
|
|
1148
|
+
ANY = -1
|
|
722
1149
|
|
|
723
|
-
|
|
724
|
-
def auth(self) -> int: ...
|
|
1150
|
+
X86 = 7
|
|
725
1151
|
|
|
726
|
-
|
|
1152
|
+
X86_64 = 16777223
|
|
727
1153
|
|
|
728
|
-
|
|
729
|
-
@property
|
|
730
|
-
def ordinal(self) -> int: ...
|
|
1154
|
+
MIPS = 8
|
|
731
1155
|
|
|
732
|
-
|
|
733
|
-
def zero(self) -> int: ...
|
|
1156
|
+
MC98000 = 10
|
|
734
1157
|
|
|
735
|
-
|
|
736
|
-
def diversity(self) -> int: ...
|
|
1158
|
+
HPPA = 11
|
|
737
1159
|
|
|
738
|
-
|
|
739
|
-
def addr_div(self) -> int: ...
|
|
1160
|
+
ARM = 12
|
|
740
1161
|
|
|
741
|
-
|
|
742
|
-
def key(self) -> int: ...
|
|
1162
|
+
ARM64 = 16777228
|
|
743
1163
|
|
|
744
|
-
|
|
745
|
-
def next(self) -> int: ...
|
|
1164
|
+
MC88000 = 13
|
|
746
1165
|
|
|
747
|
-
|
|
748
|
-
def bind(self) -> bool: ...
|
|
1166
|
+
SPARC = 14
|
|
749
1167
|
|
|
750
|
-
|
|
751
|
-
def auth(self) -> bool: ...
|
|
1168
|
+
I860 = 15
|
|
752
1169
|
|
|
753
|
-
|
|
1170
|
+
ALPHA = 16
|
|
754
1171
|
|
|
755
|
-
|
|
756
|
-
@property
|
|
757
|
-
def unpack_target(self) -> int: ...
|
|
1172
|
+
POWERPC = 18
|
|
758
1173
|
|
|
759
|
-
|
|
760
|
-
def target(self) -> int: ...
|
|
1174
|
+
POWERPC64 = 16777234
|
|
761
1175
|
|
|
762
|
-
|
|
763
|
-
def high8(self) -> int: ...
|
|
1176
|
+
APPLE_GPU = 16777235
|
|
764
1177
|
|
|
765
|
-
|
|
766
|
-
def reserved(self) -> int: ...
|
|
1178
|
+
AMD_GPU = 16777236
|
|
767
1179
|
|
|
768
|
-
|
|
769
|
-
def next(self) -> int: ...
|
|
1180
|
+
INTEL_GPU = 16777237
|
|
770
1181
|
|
|
771
|
-
|
|
772
|
-
def bind(self) -> bool: ...
|
|
1182
|
+
AIR64 = 16777239
|
|
773
1183
|
|
|
774
|
-
|
|
1184
|
+
class FILE_TYPE(enum.Enum):
|
|
1185
|
+
@staticmethod
|
|
1186
|
+
def from_value(arg: int, /) -> Header.FILE_TYPE: ...
|
|
775
1187
|
|
|
776
|
-
|
|
777
|
-
@property
|
|
778
|
-
def ordinal(self) -> int: ...
|
|
1188
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
779
1189
|
|
|
780
|
-
|
|
781
|
-
def zero(self) -> int: ...
|
|
1190
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
782
1191
|
|
|
783
|
-
|
|
784
|
-
def addend(self) -> int: ...
|
|
1192
|
+
def __int__(self) -> int: ...
|
|
785
1193
|
|
|
786
|
-
|
|
787
|
-
def next(self) -> int: ...
|
|
1194
|
+
UNKNOWN = 0
|
|
788
1195
|
|
|
789
|
-
|
|
790
|
-
def bind(self) -> bool: ...
|
|
1196
|
+
OBJECT = 1
|
|
791
1197
|
|
|
792
|
-
|
|
793
|
-
def auth(self) -> bool: ...
|
|
1198
|
+
EXECUTE = 2
|
|
794
1199
|
|
|
795
|
-
|
|
1200
|
+
FVMLIB = 3
|
|
796
1201
|
|
|
797
|
-
|
|
798
|
-
@property
|
|
799
|
-
def ordinal(self) -> int: ...
|
|
1202
|
+
CORE = 4
|
|
800
1203
|
|
|
801
|
-
|
|
802
|
-
def zero(self) -> int: ...
|
|
1204
|
+
PRELOAD = 5
|
|
803
1205
|
|
|
804
|
-
|
|
805
|
-
def diversity(self) -> int: ...
|
|
1206
|
+
DYLIB = 6
|
|
806
1207
|
|
|
807
|
-
|
|
808
|
-
def addr_div(self) -> int: ...
|
|
1208
|
+
DYLINKER = 7
|
|
809
1209
|
|
|
810
|
-
|
|
811
|
-
def key(self) -> int: ...
|
|
1210
|
+
BUNDLE = 8
|
|
812
1211
|
|
|
813
|
-
|
|
814
|
-
def next(self) -> int: ...
|
|
1212
|
+
DYLIB_STUB = 9
|
|
815
1213
|
|
|
816
|
-
|
|
817
|
-
|
|
1214
|
+
DSYM = 10
|
|
1215
|
+
|
|
1216
|
+
KEXT_BUNDLE = 11
|
|
1217
|
+
|
|
1218
|
+
FILESET = 12
|
|
818
1219
|
|
|
819
|
-
|
|
820
|
-
def auth(self) -> bool: ...
|
|
1220
|
+
GPU_EXECUTE = 13
|
|
821
1221
|
|
|
822
|
-
|
|
1222
|
+
GPU_DYLIB = 14
|
|
823
1223
|
|
|
824
|
-
class
|
|
825
|
-
@
|
|
826
|
-
def
|
|
1224
|
+
class FLAGS(enum.Flag):
|
|
1225
|
+
@staticmethod
|
|
1226
|
+
def from_value(arg: int, /) -> Header.FLAGS: ...
|
|
827
1227
|
|
|
828
|
-
|
|
829
|
-
def addend(self) -> int: ...
|
|
1228
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
830
1229
|
|
|
831
|
-
|
|
832
|
-
def reserved(self) -> int: ...
|
|
1230
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
833
1231
|
|
|
834
|
-
|
|
835
|
-
def next(self) -> int: ...
|
|
1232
|
+
def __int__(self) -> int: ...
|
|
836
1233
|
|
|
837
|
-
|
|
838
|
-
def bind(self) -> bool: ...
|
|
1234
|
+
NOUNDEFS = 1
|
|
839
1235
|
|
|
840
|
-
|
|
1236
|
+
INCRLINK = 2
|
|
841
1237
|
|
|
842
|
-
|
|
843
|
-
@property
|
|
844
|
-
def ordinal(self) -> int: ...
|
|
1238
|
+
DYLDLINK = 4
|
|
845
1239
|
|
|
846
|
-
|
|
847
|
-
def cache_level(self) -> int: ...
|
|
1240
|
+
BINDATLOAD = 8
|
|
848
1241
|
|
|
849
|
-
|
|
850
|
-
def diversity(self) -> int: ...
|
|
1242
|
+
PREBOUND = 16
|
|
851
1243
|
|
|
852
|
-
|
|
853
|
-
def addr_div(self) -> int: ...
|
|
1244
|
+
SPLIT_SEGS = 32
|
|
854
1245
|
|
|
855
|
-
|
|
856
|
-
def key(self) -> int: ...
|
|
1246
|
+
LAZY_INIT = 64
|
|
857
1247
|
|
|
858
|
-
|
|
859
|
-
def next(self) -> int: ...
|
|
1248
|
+
TWOLEVEL = 128
|
|
860
1249
|
|
|
861
|
-
|
|
862
|
-
def is_auth(self) -> bool: ...
|
|
1250
|
+
FORCE_FLAT = 256
|
|
863
1251
|
|
|
864
|
-
|
|
1252
|
+
NOMULTIDEFS = 512
|
|
865
1253
|
|
|
866
|
-
|
|
867
|
-
@property
|
|
868
|
-
def target(self) -> int: ...
|
|
1254
|
+
NOFIXPREBINDING = 1024
|
|
869
1255
|
|
|
870
|
-
|
|
871
|
-
def next(self) -> int: ...
|
|
1256
|
+
PREBINDABLE = 2048
|
|
872
1257
|
|
|
873
|
-
|
|
874
|
-
def bind(self) -> int: ...
|
|
1258
|
+
ALLMODSBOUND = 4096
|
|
875
1259
|
|
|
876
|
-
|
|
1260
|
+
SUBSECTIONS_VIA_SYMBOLS = 8192
|
|
877
1261
|
|
|
878
|
-
|
|
879
|
-
@property
|
|
880
|
-
def ordinal(self) -> int: ...
|
|
1262
|
+
CANONICAL = 16384
|
|
881
1263
|
|
|
882
|
-
|
|
883
|
-
def addend(self) -> int: ...
|
|
1264
|
+
WEAK_DEFINES = 32768
|
|
884
1265
|
|
|
885
|
-
|
|
886
|
-
def next(self) -> int: ...
|
|
1266
|
+
BINDS_TO_WEAK = 65536
|
|
887
1267
|
|
|
888
|
-
|
|
889
|
-
def bind(self) -> bool: ...
|
|
1268
|
+
ALLOW_STACK_EXECUTION = 131072
|
|
890
1269
|
|
|
891
|
-
|
|
1270
|
+
ROOT_SAFE = 262144
|
|
892
1271
|
|
|
893
|
-
|
|
894
|
-
@property
|
|
895
|
-
def target(self) -> int: ...
|
|
1272
|
+
SETUID_SAFE = 524288
|
|
896
1273
|
|
|
897
|
-
|
|
898
|
-
def next(self) -> int: ...
|
|
1274
|
+
NO_REEXPORTED_DYLIBS = 1048576
|
|
899
1275
|
|
|
900
|
-
|
|
1276
|
+
PIE = 2097152
|
|
901
1277
|
|
|
902
|
-
|
|
903
|
-
@property
|
|
904
|
-
def target(self) -> int: ...
|
|
1278
|
+
DEAD_STRIPPABLE_DYLIB = 4194304
|
|
905
1279
|
|
|
906
|
-
|
|
907
|
-
def next(self) -> int: ...
|
|
1280
|
+
HAS_TLV_DESCRIPTORS = 8388608
|
|
908
1281
|
|
|
909
|
-
|
|
1282
|
+
NO_HEAP_EXECUTION = 16777216
|
|
910
1283
|
|
|
911
|
-
|
|
912
|
-
def stride(fmt: DYLD_CHAINED_PTR_FORMAT) -> int: ...
|
|
1284
|
+
APP_EXTENSION_SAFE = 33554432
|
|
913
1285
|
|
|
914
|
-
|
|
915
|
-
def from_value(ptr: int, size: int) -> Optional[ChainedPointerAnalysis]: ...
|
|
1286
|
+
NLIST_OUTOFSYNC_WITH_DYLDINFO = 67108864
|
|
916
1287
|
|
|
917
|
-
|
|
918
|
-
def value(self) -> int: ...
|
|
1288
|
+
SIM_SUPPORT = 134217728
|
|
919
1289
|
|
|
920
|
-
|
|
921
|
-
def size(self) -> int: ...
|
|
1290
|
+
IMPLICIT_PAGEZERO = 268435456
|
|
922
1291
|
|
|
923
|
-
|
|
924
|
-
def dyld_chained_ptr_arm64e_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_rebase_t: ...
|
|
1292
|
+
DYLIB_IN_CACHE = 2147483648
|
|
925
1293
|
|
|
926
|
-
|
|
927
|
-
def dyld_chained_ptr_arm64e_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind_t: ...
|
|
1294
|
+
magic: MACHO_TYPES
|
|
928
1295
|
|
|
929
|
-
|
|
930
|
-
def dyld_chained_ptr_arm64e_auth_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_rebase_t: ...
|
|
1296
|
+
cpu_type: Header.CPU_TYPE
|
|
931
1297
|
|
|
932
|
-
|
|
933
|
-
def dyld_chained_ptr_arm64e_auth_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind_t: ...
|
|
1298
|
+
cpu_subtype: int
|
|
934
1299
|
|
|
935
|
-
|
|
936
|
-
def dyld_chained_ptr_64_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_rebase_t: ...
|
|
1300
|
+
file_type: Header.FILE_TYPE
|
|
937
1301
|
|
|
938
|
-
|
|
939
|
-
def dyld_chained_ptr_arm64e_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind24_t: ...
|
|
1302
|
+
flags: int
|
|
940
1303
|
|
|
941
|
-
|
|
942
|
-
def dyld_chained_ptr_arm64e_auth_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind24_t: ...
|
|
1304
|
+
nb_cmds: int
|
|
943
1305
|
|
|
944
|
-
|
|
945
|
-
def dyld_chained_ptr_64_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_bind_t: ...
|
|
1306
|
+
sizeof_cmds: int
|
|
946
1307
|
|
|
947
|
-
|
|
948
|
-
def dyld_chained_ptr_64_kernel_cache_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_kernel_cache_rebase_t: ...
|
|
1308
|
+
reserved: int
|
|
949
1309
|
|
|
950
1310
|
@property
|
|
951
|
-
def
|
|
1311
|
+
def flags_list(self) -> list[Header.FLAGS]: ...
|
|
952
1312
|
|
|
953
1313
|
@property
|
|
954
|
-
def
|
|
1314
|
+
def is_32bit(self) -> bool: ...
|
|
955
1315
|
|
|
956
1316
|
@property
|
|
957
|
-
def
|
|
1317
|
+
def is_64bit(self) -> bool: ...
|
|
958
1318
|
|
|
959
|
-
|
|
960
|
-
def dyld_chained_ptr_32_firmware_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_firmware_rebase_t: ...
|
|
1319
|
+
def add(self, flag: Header.FLAGS) -> None: ...
|
|
961
1320
|
|
|
962
|
-
def
|
|
1321
|
+
def remove(self, flag: Header.FLAGS) -> None: ...
|
|
963
1322
|
|
|
964
|
-
|
|
965
|
-
data_offset: int
|
|
1323
|
+
def has(self, flag: Header.FLAGS) -> bool: ...
|
|
966
1324
|
|
|
967
|
-
|
|
1325
|
+
def __iadd__(self, arg: Header.FLAGS, /) -> Header: ...
|
|
968
1326
|
|
|
969
|
-
|
|
970
|
-
|
|
1327
|
+
def __isub__(self, arg: Header.FLAGS, /) -> Header: ...
|
|
1328
|
+
|
|
1329
|
+
def __contains__(self, arg: Header.FLAGS, /) -> bool: ...
|
|
971
1330
|
|
|
972
1331
|
def __str__(self) -> str: ...
|
|
973
1332
|
|
|
974
|
-
class
|
|
975
|
-
|
|
1333
|
+
class LoadCommand(lief.Object):
|
|
1334
|
+
def __init__(self) -> None: ...
|
|
976
1335
|
|
|
977
|
-
|
|
1336
|
+
class TYPE(enum.Enum):
|
|
1337
|
+
@staticmethod
|
|
1338
|
+
def from_value(arg: int, /) -> LoadCommand.TYPE: ...
|
|
978
1339
|
|
|
979
|
-
|
|
980
|
-
def content(self) -> memoryview: ...
|
|
1340
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
981
1341
|
|
|
982
|
-
|
|
1342
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
983
1343
|
|
|
984
|
-
|
|
985
|
-
@staticmethod
|
|
986
|
-
def from_value(arg: int, /) -> DYLD_CHAINED_FORMAT: ...
|
|
1344
|
+
def __int__(self) -> int: ...
|
|
987
1345
|
|
|
988
|
-
|
|
1346
|
+
UNKNOWN = 0
|
|
989
1347
|
|
|
990
|
-
|
|
1348
|
+
SEGMENT = 1
|
|
991
1349
|
|
|
992
|
-
|
|
1350
|
+
SYMTAB = 2
|
|
993
1351
|
|
|
994
|
-
|
|
1352
|
+
SYMSEG = 3
|
|
995
1353
|
|
|
996
|
-
|
|
1354
|
+
THREAD = 4
|
|
997
1355
|
|
|
998
|
-
|
|
1356
|
+
UNIXTHREAD = 5
|
|
999
1357
|
|
|
1000
|
-
|
|
1001
|
-
@staticmethod
|
|
1002
|
-
def from_value(arg: int, /) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
1358
|
+
LOADFVMLIB = 6
|
|
1003
1359
|
|
|
1004
|
-
|
|
1360
|
+
IDFVMLIB = 7
|
|
1005
1361
|
|
|
1006
|
-
|
|
1362
|
+
IDENT = 8
|
|
1007
1363
|
|
|
1008
|
-
|
|
1364
|
+
FVMFILE = 9
|
|
1009
1365
|
|
|
1010
|
-
|
|
1366
|
+
PREPAGE = 10
|
|
1011
1367
|
|
|
1012
|
-
|
|
1368
|
+
DYSYMTAB = 11
|
|
1013
1369
|
|
|
1014
|
-
|
|
1370
|
+
LOAD_DYLIB = 12
|
|
1015
1371
|
|
|
1016
|
-
|
|
1372
|
+
ID_DYLIB = 13
|
|
1017
1373
|
|
|
1018
|
-
|
|
1374
|
+
LOAD_DYLINKER = 14
|
|
1019
1375
|
|
|
1020
|
-
|
|
1376
|
+
ID_DYLINKER = 15
|
|
1021
1377
|
|
|
1022
|
-
|
|
1378
|
+
PREBOUND_DYLIB = 16
|
|
1023
1379
|
|
|
1024
|
-
|
|
1380
|
+
ROUTINES = 17
|
|
1025
1381
|
|
|
1026
|
-
|
|
1382
|
+
SUB_FRAMEWORK = 18
|
|
1027
1383
|
|
|
1028
|
-
|
|
1384
|
+
SUB_UMBRELLA = 19
|
|
1029
1385
|
|
|
1030
|
-
|
|
1386
|
+
SUB_CLIENT = 20
|
|
1031
1387
|
|
|
1032
|
-
|
|
1388
|
+
SUB_LIBRARY = 21
|
|
1033
1389
|
|
|
1034
|
-
|
|
1390
|
+
TWOLEVEL_HINTS = 22
|
|
1035
1391
|
|
|
1036
|
-
|
|
1037
|
-
class TYPES(enum.Enum):
|
|
1038
|
-
@staticmethod
|
|
1039
|
-
def from_value(arg: int, /) -> DataCodeEntry.TYPES: ...
|
|
1392
|
+
PREBIND_CKSUM = 23
|
|
1040
1393
|
|
|
1041
|
-
|
|
1394
|
+
LOAD_WEAK_DYLIB = 2147483672
|
|
1042
1395
|
|
|
1043
|
-
|
|
1396
|
+
SEGMENT_64 = 25
|
|
1044
1397
|
|
|
1045
|
-
|
|
1398
|
+
ROUTINES_64 = 26
|
|
1046
1399
|
|
|
1047
|
-
|
|
1400
|
+
UUID = 27
|
|
1048
1401
|
|
|
1049
|
-
|
|
1402
|
+
RPATH = 2147483676
|
|
1050
1403
|
|
|
1051
|
-
|
|
1404
|
+
CODE_SIGNATURE = 29
|
|
1052
1405
|
|
|
1053
|
-
|
|
1406
|
+
SEGMENT_SPLIT_INFO = 30
|
|
1054
1407
|
|
|
1055
|
-
|
|
1408
|
+
REEXPORT_DYLIB = 2147483679
|
|
1056
1409
|
|
|
1057
|
-
|
|
1410
|
+
LAZY_LOAD_DYLIB = 32
|
|
1058
1411
|
|
|
1059
|
-
|
|
1412
|
+
ENCRYPTION_INFO = 33
|
|
1060
1413
|
|
|
1061
|
-
|
|
1414
|
+
DYLD_INFO = 34
|
|
1062
1415
|
|
|
1063
|
-
|
|
1416
|
+
DYLD_INFO_ONLY = 2147483682
|
|
1064
1417
|
|
|
1065
|
-
|
|
1418
|
+
LOAD_UPWARD_DYLIB = 2147483683
|
|
1066
1419
|
|
|
1067
|
-
|
|
1068
|
-
data_offset: int
|
|
1420
|
+
VERSION_MIN_MACOSX = 36
|
|
1069
1421
|
|
|
1070
|
-
|
|
1422
|
+
VERSION_MIN_IPHONEOS = 37
|
|
1071
1423
|
|
|
1072
|
-
|
|
1073
|
-
def entries(self) -> it_data_in_code_entries: ...
|
|
1424
|
+
FUNCTION_STARTS = 38
|
|
1074
1425
|
|
|
1075
|
-
|
|
1426
|
+
DYLD_ENVIRONMENT = 39
|
|
1076
1427
|
|
|
1077
|
-
|
|
1078
|
-
def content(self) -> memoryview: ...
|
|
1428
|
+
MAIN = 2147483688
|
|
1079
1429
|
|
|
1080
|
-
|
|
1430
|
+
DATA_IN_CODE = 41
|
|
1081
1431
|
|
|
1082
|
-
|
|
1083
|
-
class CLASS(enum.Enum):
|
|
1084
|
-
@staticmethod
|
|
1085
|
-
def from_value(arg: int, /) -> DyldBindingInfo.CLASS: ...
|
|
1432
|
+
SOURCE_VERSION = 42
|
|
1086
1433
|
|
|
1087
|
-
|
|
1434
|
+
DYLIB_CODE_SIGN_DRS = 43
|
|
1088
1435
|
|
|
1089
|
-
|
|
1436
|
+
ENCRYPTION_INFO_64 = 44
|
|
1090
1437
|
|
|
1091
|
-
|
|
1438
|
+
LINKER_OPTION = 45
|
|
1092
1439
|
|
|
1093
|
-
|
|
1440
|
+
LINKER_OPTIMIZATION_HINT = 46
|
|
1094
1441
|
|
|
1095
|
-
|
|
1442
|
+
VERSION_MIN_TVOS = 47
|
|
1096
1443
|
|
|
1097
|
-
|
|
1444
|
+
VERSION_MIN_WATCHOS = 48
|
|
1098
1445
|
|
|
1099
|
-
|
|
1446
|
+
NOTE = 49
|
|
1100
1447
|
|
|
1101
|
-
|
|
1102
|
-
@staticmethod
|
|
1103
|
-
def from_value(arg: int, /) -> DyldBindingInfo.TYPE: ...
|
|
1448
|
+
BUILD_VERSION = 50
|
|
1104
1449
|
|
|
1105
|
-
|
|
1450
|
+
DYLD_EXPORTS_TRIE = 2147483699
|
|
1106
1451
|
|
|
1107
|
-
|
|
1452
|
+
DYLD_CHAINED_FIXUPS = 2147483700
|
|
1108
1453
|
|
|
1109
|
-
|
|
1454
|
+
FILESET_ENTRY = 2147483701
|
|
1110
1455
|
|
|
1111
|
-
|
|
1456
|
+
ATOM_INFO = 54
|
|
1112
1457
|
|
|
1113
|
-
|
|
1458
|
+
FUNCTION_VARIANTS = 55
|
|
1114
1459
|
|
|
1115
|
-
|
|
1460
|
+
FUNCTION_VARIANT_FIXUPS = 56
|
|
1116
1461
|
|
|
1117
|
-
|
|
1462
|
+
TARGET_TRIPLE = 57
|
|
1118
1463
|
|
|
1119
|
-
|
|
1464
|
+
LIEF_UNKNOWN = 4293787649
|
|
1120
1465
|
|
|
1121
|
-
|
|
1122
|
-
def original_offset(self) -> int: ...
|
|
1466
|
+
command: LoadCommand.TYPE
|
|
1123
1467
|
|
|
1124
|
-
|
|
1468
|
+
size: int
|
|
1125
1469
|
|
|
1126
|
-
|
|
1127
|
-
class it_binding_info:
|
|
1128
|
-
def __getitem__(self, arg: int, /) -> ChainedBindingInfo: ...
|
|
1470
|
+
data: memoryview
|
|
1129
1471
|
|
|
1130
|
-
|
|
1472
|
+
command_offset: int
|
|
1131
1473
|
|
|
1132
|
-
|
|
1474
|
+
def __str__(self) -> str: ...
|
|
1133
1475
|
|
|
1134
|
-
|
|
1476
|
+
class UUIDCommand(LoadCommand):
|
|
1477
|
+
uuid: list[int]
|
|
1135
1478
|
|
|
1136
|
-
|
|
1137
|
-
def __getitem__(self, arg: int, /) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1479
|
+
def __str__(self) -> str: ...
|
|
1138
1480
|
|
|
1139
|
-
|
|
1481
|
+
class SymbolCommand(LoadCommand):
|
|
1482
|
+
def __init__(self) -> None: ...
|
|
1140
1483
|
|
|
1141
|
-
|
|
1484
|
+
symbol_offset: int
|
|
1142
1485
|
|
|
1143
|
-
|
|
1486
|
+
numberof_symbols: int
|
|
1144
1487
|
|
|
1145
|
-
|
|
1146
|
-
@property
|
|
1147
|
-
def offset(self) -> int: ...
|
|
1488
|
+
strings_offset: int
|
|
1148
1489
|
|
|
1149
|
-
|
|
1150
|
-
def size(self) -> int: ...
|
|
1490
|
+
strings_size: int
|
|
1151
1491
|
|
|
1152
|
-
|
|
1153
|
-
def page_size(self) -> int: ...
|
|
1492
|
+
def __str__(self) -> str: ...
|
|
1154
1493
|
|
|
1155
|
-
|
|
1156
|
-
|
|
1494
|
+
class SegmentCommand(LoadCommand):
|
|
1495
|
+
@overload
|
|
1496
|
+
def __init__(self) -> None: ...
|
|
1157
1497
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1498
|
+
@overload
|
|
1499
|
+
def __init__(self, arg: str, /) -> None: ...
|
|
1160
1500
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1501
|
+
@overload
|
|
1502
|
+
def __init__(self, arg0: str, arg1: Sequence[int], /) -> None: ...
|
|
1163
1503
|
|
|
1164
|
-
|
|
1165
|
-
def
|
|
1504
|
+
class it_sections:
|
|
1505
|
+
def __getitem__(self, arg: int, /) -> Section: ...
|
|
1166
1506
|
|
|
1167
|
-
|
|
1168
|
-
def page_count(self) -> int: ...
|
|
1507
|
+
def __len__(self) -> int: ...
|
|
1169
1508
|
|
|
1170
|
-
|
|
1171
|
-
def segment(self) -> SegmentCommand: ...
|
|
1509
|
+
def __iter__(self) -> SegmentCommand.it_sections: ...
|
|
1172
1510
|
|
|
1173
|
-
def
|
|
1511
|
+
def __next__(self) -> Section: ...
|
|
1174
1512
|
|
|
1175
|
-
|
|
1513
|
+
class it_relocations:
|
|
1514
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
1176
1515
|
|
|
1177
|
-
|
|
1516
|
+
def __len__(self) -> int: ...
|
|
1178
1517
|
|
|
1179
|
-
|
|
1180
|
-
def payload(self) -> memoryview: ...
|
|
1518
|
+
def __iter__(self) -> SegmentCommand.it_relocations: ...
|
|
1181
1519
|
|
|
1182
|
-
|
|
1183
|
-
def bindings(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1520
|
+
def __next__(self) -> Relocation: ...
|
|
1184
1521
|
|
|
1185
|
-
|
|
1186
|
-
|
|
1522
|
+
class VM_PROTECTIONS(enum.Enum):
|
|
1523
|
+
@staticmethod
|
|
1524
|
+
def from_value(arg: int, /) -> SegmentCommand.VM_PROTECTIONS: ...
|
|
1187
1525
|
|
|
1188
|
-
|
|
1526
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1189
1527
|
|
|
1190
|
-
|
|
1528
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1191
1529
|
|
|
1192
|
-
|
|
1530
|
+
def __int__(self) -> int: ...
|
|
1193
1531
|
|
|
1194
|
-
|
|
1532
|
+
R = 1
|
|
1195
1533
|
|
|
1196
|
-
|
|
1534
|
+
W = 2
|
|
1197
1535
|
|
|
1198
|
-
|
|
1536
|
+
X = 4
|
|
1199
1537
|
|
|
1200
|
-
|
|
1538
|
+
class FLAGS(enum.Enum):
|
|
1539
|
+
@staticmethod
|
|
1540
|
+
def from_value(arg: int, /) -> SegmentCommand.FLAGS: ...
|
|
1201
1541
|
|
|
1202
|
-
|
|
1542
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1203
1543
|
|
|
1204
|
-
|
|
1205
|
-
value: str
|
|
1544
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1206
1545
|
|
|
1207
|
-
|
|
1546
|
+
def __int__(self) -> int: ...
|
|
1208
1547
|
|
|
1209
|
-
|
|
1210
|
-
class it_export_info:
|
|
1211
|
-
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1548
|
+
HIGHVM = 1
|
|
1212
1549
|
|
|
1213
|
-
|
|
1550
|
+
FVMLIB = 2
|
|
1214
1551
|
|
|
1215
|
-
|
|
1552
|
+
NORELOC = 4
|
|
1216
1553
|
|
|
1217
|
-
|
|
1554
|
+
PROTECTED_VERSION_1 = 8
|
|
1218
1555
|
|
|
1219
|
-
|
|
1556
|
+
READ_ONLY = 16
|
|
1220
1557
|
|
|
1221
|
-
|
|
1558
|
+
name: Union[str, bytes]
|
|
1222
1559
|
|
|
1223
|
-
|
|
1224
|
-
def content(self) -> memoryview: ...
|
|
1560
|
+
virtual_address: int
|
|
1225
1561
|
|
|
1226
|
-
|
|
1227
|
-
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1562
|
+
virtual_size: int
|
|
1228
1563
|
|
|
1229
|
-
|
|
1564
|
+
file_size: int
|
|
1230
1565
|
|
|
1231
|
-
|
|
1566
|
+
file_offset: int
|
|
1232
1567
|
|
|
1233
|
-
|
|
1234
|
-
class REBASE_TYPE(enum.Enum):
|
|
1235
|
-
@staticmethod
|
|
1236
|
-
def from_value(arg: int, /) -> DyldInfo.REBASE_TYPE: ...
|
|
1568
|
+
max_protection: int
|
|
1237
1569
|
|
|
1238
|
-
|
|
1570
|
+
init_protection: int
|
|
1239
1571
|
|
|
1240
|
-
|
|
1572
|
+
numberof_sections: int
|
|
1241
1573
|
|
|
1242
|
-
|
|
1574
|
+
@property
|
|
1575
|
+
def sections(self) -> SegmentCommand.it_sections: ...
|
|
1243
1576
|
|
|
1244
|
-
|
|
1577
|
+
@property
|
|
1578
|
+
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
1245
1579
|
|
|
1246
|
-
|
|
1580
|
+
@property
|
|
1581
|
+
def index(self) -> int: ...
|
|
1247
1582
|
|
|
1248
|
-
|
|
1583
|
+
content: memoryview
|
|
1249
1584
|
|
|
1250
|
-
|
|
1585
|
+
flags: int
|
|
1251
1586
|
|
|
1252
|
-
|
|
1253
|
-
@staticmethod
|
|
1254
|
-
def from_value(arg: int, /) -> DyldInfo.REBASE_OPCODES: ...
|
|
1587
|
+
def has(self, section: Section) -> bool: ...
|
|
1255
1588
|
|
|
1256
|
-
|
|
1589
|
+
def has_section(self, section_name: str) -> bool: ...
|
|
1257
1590
|
|
|
1258
|
-
|
|
1591
|
+
def add_section(self, section: Section) -> Section: ...
|
|
1259
1592
|
|
|
1260
|
-
|
|
1593
|
+
def get_section(self, name: str) -> Section: ...
|
|
1261
1594
|
|
|
1262
|
-
|
|
1595
|
+
def __str__(self) -> str: ...
|
|
1263
1596
|
|
|
1264
|
-
|
|
1597
|
+
class LinkEdit(SegmentCommand):
|
|
1598
|
+
pass
|
|
1265
1599
|
|
|
1266
|
-
|
|
1600
|
+
class Section(lief.Section):
|
|
1601
|
+
@overload
|
|
1602
|
+
def __init__(self) -> None: ...
|
|
1267
1603
|
|
|
1268
|
-
|
|
1604
|
+
@overload
|
|
1605
|
+
def __init__(self, section_name: str) -> None: ...
|
|
1269
1606
|
|
|
1270
|
-
|
|
1607
|
+
@overload
|
|
1608
|
+
def __init__(self, section_name: str, content: Sequence[int]) -> None: ...
|
|
1271
1609
|
|
|
1272
|
-
|
|
1610
|
+
class it_relocations:
|
|
1611
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
1273
1612
|
|
|
1274
|
-
|
|
1613
|
+
def __len__(self) -> int: ...
|
|
1275
1614
|
|
|
1276
|
-
|
|
1615
|
+
def __iter__(self) -> Section.it_relocations: ...
|
|
1277
1616
|
|
|
1278
|
-
|
|
1617
|
+
def __next__(self) -> Relocation: ...
|
|
1279
1618
|
|
|
1280
|
-
class
|
|
1619
|
+
class TYPE(enum.Enum):
|
|
1281
1620
|
@staticmethod
|
|
1282
|
-
def from_value(arg: int, /) ->
|
|
1621
|
+
def from_value(arg: int, /) -> Section.TYPE: ...
|
|
1283
1622
|
|
|
1284
1623
|
def __eq__(self, arg, /) -> bool: ...
|
|
1285
1624
|
|
|
@@ -1287,150 +1626,144 @@ class DyldInfo(LoadCommand):
|
|
|
1287
1626
|
|
|
1288
1627
|
def __int__(self) -> int: ...
|
|
1289
1628
|
|
|
1290
|
-
|
|
1629
|
+
REGULAR = 0
|
|
1291
1630
|
|
|
1292
|
-
|
|
1631
|
+
ZEROFILL = 1
|
|
1293
1632
|
|
|
1294
|
-
|
|
1633
|
+
CSTRING_LITERALS = 2
|
|
1295
1634
|
|
|
1296
|
-
|
|
1635
|
+
IS_4BYTE_LITERALS = 3
|
|
1297
1636
|
|
|
1298
|
-
|
|
1637
|
+
IS_8BYTE_LITERALS = 4
|
|
1299
1638
|
|
|
1300
|
-
|
|
1639
|
+
LITERAL_POINTERS = 5
|
|
1301
1640
|
|
|
1302
|
-
|
|
1641
|
+
NON_LAZY_SYMBOL_POINTERS = 6
|
|
1303
1642
|
|
|
1304
|
-
|
|
1643
|
+
LAZY_SYMBOL_POINTERS = 7
|
|
1305
1644
|
|
|
1306
|
-
|
|
1645
|
+
SYMBOL_STUBS = 8
|
|
1307
1646
|
|
|
1308
|
-
|
|
1647
|
+
MOD_INIT_FUNC_POINTERS = 9
|
|
1309
1648
|
|
|
1310
|
-
|
|
1649
|
+
MOD_TERM_FUNC_POINTERS = 10
|
|
1311
1650
|
|
|
1312
|
-
|
|
1651
|
+
COALESCED = 11
|
|
1313
1652
|
|
|
1314
|
-
|
|
1653
|
+
GB_ZEROFILL = 12
|
|
1315
1654
|
|
|
1316
|
-
|
|
1655
|
+
INTERPOSING = 13
|
|
1317
1656
|
|
|
1318
|
-
|
|
1657
|
+
IS_16BYTE_LITERALS = 14
|
|
1319
1658
|
|
|
1320
|
-
|
|
1321
|
-
def __getitem__(self, arg: int, /) -> DyldBindingInfo: ...
|
|
1659
|
+
DTRACE_DOF = 15
|
|
1322
1660
|
|
|
1323
|
-
|
|
1661
|
+
LAZY_DYLIB_SYMBOL_POINTERS = 16
|
|
1324
1662
|
|
|
1325
|
-
|
|
1663
|
+
THREAD_LOCAL_REGULAR = 17
|
|
1326
1664
|
|
|
1327
|
-
|
|
1665
|
+
THREAD_LOCAL_ZEROFILL = 18
|
|
1328
1666
|
|
|
1329
|
-
|
|
1330
|
-
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1667
|
+
THREAD_LOCAL_VARIABLES = 19
|
|
1331
1668
|
|
|
1332
|
-
|
|
1669
|
+
THREAD_LOCAL_VARIABLE_POINTERS = 20
|
|
1670
|
+
|
|
1671
|
+
THREAD_LOCAL_INIT_FUNCTION_POINTERS = 21
|
|
1672
|
+
|
|
1673
|
+
INIT_FUNC_OFFSETS = 22
|
|
1333
1674
|
|
|
1334
|
-
|
|
1675
|
+
class FLAGS(enum.Flag):
|
|
1676
|
+
@staticmethod
|
|
1677
|
+
def from_value(arg: int, /) -> Section.FLAGS: ...
|
|
1335
1678
|
|
|
1336
|
-
def
|
|
1679
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1337
1680
|
|
|
1338
|
-
|
|
1681
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1339
1682
|
|
|
1340
|
-
|
|
1683
|
+
def __int__(self) -> int: ...
|
|
1341
1684
|
|
|
1342
|
-
|
|
1343
|
-
def show_rebases_opcodes(self) -> str: ...
|
|
1685
|
+
PURE_INSTRUCTIONS = 2147483648
|
|
1344
1686
|
|
|
1345
|
-
|
|
1687
|
+
NO_TOC = 1073741824
|
|
1346
1688
|
|
|
1347
|
-
|
|
1689
|
+
STRIP_STATIC_SYMS = 536870912
|
|
1348
1690
|
|
|
1349
|
-
|
|
1350
|
-
def show_bind_opcodes(self) -> str: ...
|
|
1691
|
+
NO_DEAD_STRIP = 268435456
|
|
1351
1692
|
|
|
1352
|
-
|
|
1693
|
+
LIVE_SUPPORT = 134217728
|
|
1353
1694
|
|
|
1354
|
-
|
|
1695
|
+
SELF_MODIFYING_CODE = 67108864
|
|
1355
1696
|
|
|
1356
|
-
|
|
1357
|
-
def show_weak_bind_opcodes(self) -> str: ...
|
|
1697
|
+
DEBUG_INFO = 33554432
|
|
1358
1698
|
|
|
1359
|
-
|
|
1699
|
+
SOME_INSTRUCTIONS = 1024
|
|
1360
1700
|
|
|
1361
|
-
|
|
1701
|
+
EXT_RELOC = 512
|
|
1362
1702
|
|
|
1363
|
-
|
|
1364
|
-
def show_lazy_bind_opcodes(self) -> str: ...
|
|
1703
|
+
LOC_RELOC = 256
|
|
1365
1704
|
|
|
1366
|
-
|
|
1367
|
-
def bindings(self) -> DyldInfo.it_binding_info: ...
|
|
1705
|
+
alignment: int
|
|
1368
1706
|
|
|
1369
|
-
|
|
1707
|
+
relocation_offset: int
|
|
1370
1708
|
|
|
1371
|
-
|
|
1709
|
+
numberof_relocations: int
|
|
1372
1710
|
|
|
1373
|
-
|
|
1374
|
-
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1711
|
+
type: Section.TYPE
|
|
1375
1712
|
|
|
1376
1713
|
@property
|
|
1377
|
-
def
|
|
1378
|
-
|
|
1379
|
-
def set_rebase_offset(self, offset: int) -> None: ...
|
|
1714
|
+
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
1380
1715
|
|
|
1381
|
-
|
|
1716
|
+
reserved1: int
|
|
1382
1717
|
|
|
1383
|
-
|
|
1718
|
+
reserved2: int
|
|
1384
1719
|
|
|
1385
|
-
|
|
1720
|
+
reserved3: int
|
|
1386
1721
|
|
|
1387
|
-
|
|
1722
|
+
flags: Section.FLAGS
|
|
1388
1723
|
|
|
1389
|
-
|
|
1724
|
+
@property
|
|
1725
|
+
def flags_list(self) -> list[Section.FLAGS]: ...
|
|
1390
1726
|
|
|
1391
|
-
|
|
1727
|
+
@property
|
|
1728
|
+
def segment(self) -> SegmentCommand: ...
|
|
1392
1729
|
|
|
1393
|
-
|
|
1730
|
+
segment_name: str
|
|
1394
1731
|
|
|
1395
|
-
|
|
1732
|
+
@property
|
|
1733
|
+
def has_segment(self) -> bool: ...
|
|
1396
1734
|
|
|
1397
|
-
def
|
|
1735
|
+
def has(self, flag: Section.FLAGS) -> bool: ...
|
|
1398
1736
|
|
|
1399
|
-
def
|
|
1737
|
+
def add(self, flag: Section.FLAGS) -> None: ...
|
|
1400
1738
|
|
|
1401
|
-
|
|
1402
|
-
name: str
|
|
1739
|
+
def remove(self, flag: Section.FLAGS) -> None: ...
|
|
1403
1740
|
|
|
1404
|
-
|
|
1741
|
+
def __iadd__(self, arg: Section.FLAGS, /) -> Section: ...
|
|
1405
1742
|
|
|
1406
|
-
|
|
1743
|
+
def __isub__(self, arg: Section.FLAGS, /) -> Section: ...
|
|
1407
1744
|
|
|
1408
|
-
|
|
1745
|
+
def __contains__(self, arg: Section.FLAGS, /) -> bool: ...
|
|
1409
1746
|
|
|
1410
|
-
|
|
1411
|
-
def weak_lib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1747
|
+
def __str__(self) -> str: ...
|
|
1412
1748
|
|
|
1413
|
-
|
|
1414
|
-
def
|
|
1749
|
+
class MainCommand(LoadCommand):
|
|
1750
|
+
def __init__(self, arg0: int, arg1: int, /) -> None: ...
|
|
1415
1751
|
|
|
1416
|
-
|
|
1417
|
-
def load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1752
|
+
entrypoint: int
|
|
1418
1753
|
|
|
1419
|
-
|
|
1420
|
-
def reexport_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1754
|
+
stack_size: int
|
|
1421
1755
|
|
|
1422
|
-
|
|
1423
|
-
def load_upward_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1756
|
+
def __str__(self) -> str: ...
|
|
1424
1757
|
|
|
1425
|
-
|
|
1426
|
-
|
|
1758
|
+
class NoteCommand(LoadCommand):
|
|
1759
|
+
note_offset: int
|
|
1427
1760
|
|
|
1428
|
-
|
|
1761
|
+
note_size: int
|
|
1429
1762
|
|
|
1430
|
-
|
|
1431
|
-
def
|
|
1763
|
+
@property
|
|
1764
|
+
def owner_str(self) -> str: ...
|
|
1432
1765
|
|
|
1433
|
-
|
|
1766
|
+
owner: memoryview
|
|
1434
1767
|
|
|
1435
1768
|
def __str__(self) -> str: ...
|
|
1436
1769
|
|
|
@@ -1485,19 +1818,17 @@ class DynamicSymbolCommand(LoadCommand):
|
|
|
1485
1818
|
|
|
1486
1819
|
def __str__(self) -> str: ...
|
|
1487
1820
|
|
|
1488
|
-
class
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
crypt_size: int
|
|
1821
|
+
class DylinkerCommand(LoadCommand):
|
|
1822
|
+
def __init__(self, arg: str, /) -> None: ...
|
|
1492
1823
|
|
|
1493
|
-
|
|
1824
|
+
name: str
|
|
1494
1825
|
|
|
1495
1826
|
def __str__(self) -> str: ...
|
|
1496
1827
|
|
|
1497
|
-
class
|
|
1498
|
-
class
|
|
1828
|
+
class DyldInfo(LoadCommand):
|
|
1829
|
+
class REBASE_TYPE(enum.Enum):
|
|
1499
1830
|
@staticmethod
|
|
1500
|
-
def from_value(arg: int, /) ->
|
|
1831
|
+
def from_value(arg: int, /) -> DyldInfo.REBASE_TYPE: ...
|
|
1501
1832
|
|
|
1502
1833
|
def __eq__(self, arg, /) -> bool: ...
|
|
1503
1834
|
|
|
@@ -1505,15 +1836,17 @@ class ExportInfo(lief.Object):
|
|
|
1505
1836
|
|
|
1506
1837
|
def __int__(self) -> int: ...
|
|
1507
1838
|
|
|
1508
|
-
|
|
1839
|
+
POINTER = 1
|
|
1509
1840
|
|
|
1510
|
-
|
|
1841
|
+
TEXT_ABSOLUTE32 = 2
|
|
1511
1842
|
|
|
1512
|
-
|
|
1843
|
+
TEXT_PCREL32 = 3
|
|
1513
1844
|
|
|
1514
|
-
|
|
1845
|
+
THREADED = 102
|
|
1846
|
+
|
|
1847
|
+
class REBASE_OPCODES(enum.Enum):
|
|
1515
1848
|
@staticmethod
|
|
1516
|
-
def from_value(arg: int, /) ->
|
|
1849
|
+
def from_value(arg: int, /) -> DyldInfo.REBASE_OPCODES: ...
|
|
1517
1850
|
|
|
1518
1851
|
def __eq__(self, arg, /) -> bool: ...
|
|
1519
1852
|
|
|
@@ -1521,280 +1854,312 @@ class ExportInfo(lief.Object):
|
|
|
1521
1854
|
|
|
1522
1855
|
def __int__(self) -> int: ...
|
|
1523
1856
|
|
|
1524
|
-
|
|
1857
|
+
DONE = 0
|
|
1525
1858
|
|
|
1526
|
-
|
|
1859
|
+
SET_TYPE_IMM = 16
|
|
1527
1860
|
|
|
1528
|
-
|
|
1861
|
+
SET_SEGMENT_AND_OFFSET_ULEB = 32
|
|
1529
1862
|
|
|
1530
|
-
|
|
1531
|
-
def node_offset(self) -> int: ...
|
|
1863
|
+
ADD_ADDR_ULEB = 48
|
|
1532
1864
|
|
|
1533
|
-
|
|
1534
|
-
def kind(self) -> ExportInfo.KIND: ...
|
|
1865
|
+
ADD_ADDR_IMM_SCALED = 64
|
|
1535
1866
|
|
|
1536
|
-
|
|
1537
|
-
def flags_list(self) -> list[ExportInfo.FLAGS]: ...
|
|
1867
|
+
DO_REBASE_IMM_TIMES = 80
|
|
1538
1868
|
|
|
1539
|
-
|
|
1869
|
+
DO_REBASE_ULEB_TIMES = 96
|
|
1540
1870
|
|
|
1541
|
-
|
|
1871
|
+
DO_REBASE_ADD_ADDR_ULEB = 112
|
|
1542
1872
|
|
|
1543
|
-
|
|
1544
|
-
def alias(self) -> Symbol: ...
|
|
1873
|
+
DO_REBASE_ULEB_TIMES_SKIPPING_ULEB = 128
|
|
1545
1874
|
|
|
1546
|
-
|
|
1547
|
-
|
|
1875
|
+
class BIND_OPCODES(enum.Enum):
|
|
1876
|
+
@staticmethod
|
|
1877
|
+
def from_value(arg: int, /) -> DyldInfo.BIND_OPCODES: ...
|
|
1548
1878
|
|
|
1549
|
-
|
|
1550
|
-
def has_symbol(self) -> bool: ...
|
|
1879
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1551
1880
|
|
|
1552
|
-
|
|
1881
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1553
1882
|
|
|
1554
|
-
|
|
1555
|
-
def symbol(self) -> Symbol: ...
|
|
1883
|
+
def __int__(self) -> int: ...
|
|
1556
1884
|
|
|
1557
|
-
|
|
1885
|
+
DONE = 0
|
|
1558
1886
|
|
|
1559
|
-
|
|
1560
|
-
class it_binaries:
|
|
1561
|
-
def __getitem__(self, arg: int, /) -> Binary: ...
|
|
1887
|
+
SET_DYLIB_ORDINAL_IMM = 16
|
|
1562
1888
|
|
|
1563
|
-
|
|
1889
|
+
SET_DYLIB_ORDINAL_ULEB = 32
|
|
1564
1890
|
|
|
1565
|
-
|
|
1891
|
+
SET_DYLIB_SPECIAL_IMM = 48
|
|
1566
1892
|
|
|
1567
|
-
|
|
1893
|
+
SET_SYMBOL_TRAILING_FLAGS_IMM = 64
|
|
1568
1894
|
|
|
1569
|
-
|
|
1570
|
-
def size(self) -> int: ...
|
|
1895
|
+
SET_TYPE_IMM = 80
|
|
1571
1896
|
|
|
1572
|
-
|
|
1897
|
+
SET_ADDEND_SLEB = 96
|
|
1573
1898
|
|
|
1574
|
-
|
|
1899
|
+
SET_SEGMENT_AND_OFFSET_ULEB = 112
|
|
1575
1900
|
|
|
1576
|
-
|
|
1901
|
+
ADD_ADDR_ULEB = 128
|
|
1577
1902
|
|
|
1578
|
-
|
|
1903
|
+
DO_BIND = 144
|
|
1579
1904
|
|
|
1580
|
-
|
|
1905
|
+
DO_BIND_ADD_ADDR_ULEB = 160
|
|
1581
1906
|
|
|
1582
|
-
|
|
1907
|
+
DO_BIND_ADD_ADDR_IMM_SCALED = 176
|
|
1583
1908
|
|
|
1584
|
-
|
|
1909
|
+
DO_BIND_ULEB_TIMES_SKIPPING_ULEB = 192
|
|
1585
1910
|
|
|
1586
|
-
|
|
1911
|
+
THREADED_APPLY = 209
|
|
1587
1912
|
|
|
1588
|
-
|
|
1589
|
-
name: str
|
|
1913
|
+
THREADED = 208
|
|
1590
1914
|
|
|
1591
|
-
|
|
1915
|
+
class it_binding_info:
|
|
1916
|
+
def __getitem__(self, arg: int, /) -> DyldBindingInfo: ...
|
|
1592
1917
|
|
|
1593
|
-
|
|
1918
|
+
def __len__(self) -> int: ...
|
|
1594
1919
|
|
|
1595
|
-
|
|
1596
|
-
def binary(self) -> Binary: ...
|
|
1920
|
+
def __iter__(self) -> DyldInfo.it_binding_info: ...
|
|
1597
1921
|
|
|
1598
|
-
|
|
1922
|
+
def __next__(self) -> DyldBindingInfo: ...
|
|
1599
1923
|
|
|
1600
|
-
class
|
|
1601
|
-
|
|
1924
|
+
class it_export_info:
|
|
1925
|
+
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1602
1926
|
|
|
1603
|
-
|
|
1927
|
+
def __len__(self) -> int: ...
|
|
1604
1928
|
|
|
1605
|
-
|
|
1929
|
+
def __iter__(self) -> DyldInfo.it_export_info: ...
|
|
1606
1930
|
|
|
1607
|
-
|
|
1931
|
+
def __next__(self) -> ExportInfo: ...
|
|
1932
|
+
|
|
1933
|
+
rebase: tuple[int, int]
|
|
1934
|
+
|
|
1935
|
+
rebase_opcodes: memoryview
|
|
1608
1936
|
|
|
1609
1937
|
@property
|
|
1610
|
-
def
|
|
1938
|
+
def show_rebases_opcodes(self) -> str: ...
|
|
1611
1939
|
|
|
1612
|
-
|
|
1940
|
+
bind: tuple[int, int]
|
|
1613
1941
|
|
|
1614
|
-
|
|
1615
|
-
def __init__(self) -> None: ...
|
|
1942
|
+
bind_opcodes: memoryview
|
|
1616
1943
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
def from_value(arg: int, /) -> Header.CPU_TYPE: ...
|
|
1944
|
+
@property
|
|
1945
|
+
def show_bind_opcodes(self) -> str: ...
|
|
1620
1946
|
|
|
1621
|
-
|
|
1947
|
+
weak_bind: tuple[int, int]
|
|
1622
1948
|
|
|
1623
|
-
|
|
1949
|
+
weak_bind_opcodes: memoryview
|
|
1624
1950
|
|
|
1625
|
-
|
|
1951
|
+
@property
|
|
1952
|
+
def show_weak_bind_opcodes(self) -> str: ...
|
|
1626
1953
|
|
|
1627
|
-
|
|
1954
|
+
lazy_bind: tuple[int, int]
|
|
1628
1955
|
|
|
1629
|
-
|
|
1956
|
+
lazy_bind_opcodes: memoryview
|
|
1630
1957
|
|
|
1631
|
-
|
|
1958
|
+
@property
|
|
1959
|
+
def show_lazy_bind_opcodes(self) -> str: ...
|
|
1960
|
+
|
|
1961
|
+
@property
|
|
1962
|
+
def bindings(self) -> DyldInfo.it_binding_info: ...
|
|
1963
|
+
|
|
1964
|
+
export_info: tuple[int, int]
|
|
1965
|
+
|
|
1966
|
+
export_trie: memoryview
|
|
1967
|
+
|
|
1968
|
+
@property
|
|
1969
|
+
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1632
1970
|
|
|
1633
|
-
|
|
1971
|
+
@property
|
|
1972
|
+
def show_export_trie(self) -> str: ...
|
|
1634
1973
|
|
|
1635
|
-
|
|
1974
|
+
def set_rebase_offset(self, offset: int) -> None: ...
|
|
1636
1975
|
|
|
1637
|
-
|
|
1976
|
+
def set_rebase_size(self, size: int) -> None: ...
|
|
1638
1977
|
|
|
1639
|
-
|
|
1978
|
+
def set_bind_offset(self, offset: int) -> None: ...
|
|
1640
1979
|
|
|
1641
|
-
|
|
1980
|
+
def set_bind_size(self, size: int) -> None: ...
|
|
1642
1981
|
|
|
1643
|
-
|
|
1982
|
+
def set_weak_bind_offset(self, offset: int) -> None: ...
|
|
1644
1983
|
|
|
1645
|
-
|
|
1984
|
+
def set_weak_bind_size(self, size: int) -> None: ...
|
|
1646
1985
|
|
|
1647
|
-
|
|
1648
|
-
@staticmethod
|
|
1649
|
-
def from_value(arg: int, /) -> Header.FILE_TYPE: ...
|
|
1986
|
+
def set_lazy_bind_offset(self, offset: int) -> None: ...
|
|
1650
1987
|
|
|
1651
|
-
|
|
1988
|
+
def set_lazy_bind_size(self, size: int) -> None: ...
|
|
1652
1989
|
|
|
1653
|
-
|
|
1990
|
+
def set_export_offset(self, offset: int) -> None: ...
|
|
1654
1991
|
|
|
1655
|
-
|
|
1992
|
+
def set_export_size(self, size: int) -> None: ...
|
|
1656
1993
|
|
|
1657
|
-
|
|
1994
|
+
def __str__(self) -> str: ...
|
|
1658
1995
|
|
|
1659
|
-
|
|
1996
|
+
class DyldChainedFixups(LoadCommand):
|
|
1997
|
+
class it_binding_info:
|
|
1998
|
+
def __getitem__(self, arg: int, /) -> ChainedBindingInfo: ...
|
|
1660
1999
|
|
|
1661
|
-
|
|
2000
|
+
def __len__(self) -> int: ...
|
|
1662
2001
|
|
|
1663
|
-
|
|
2002
|
+
def __iter__(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1664
2003
|
|
|
1665
|
-
|
|
2004
|
+
def __next__(self) -> ChainedBindingInfo: ...
|
|
1666
2005
|
|
|
1667
|
-
|
|
2006
|
+
class it_chained_starts_in_segments_t:
|
|
2007
|
+
def __getitem__(self, arg: int, /) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1668
2008
|
|
|
1669
|
-
|
|
2009
|
+
def __len__(self) -> int: ...
|
|
1670
2010
|
|
|
1671
|
-
|
|
2011
|
+
def __iter__(self) -> DyldChainedFixups.it_chained_starts_in_segments_t: ...
|
|
1672
2012
|
|
|
1673
|
-
|
|
2013
|
+
def __next__(self) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1674
2014
|
|
|
1675
|
-
|
|
2015
|
+
class chained_starts_in_segment:
|
|
2016
|
+
@property
|
|
2017
|
+
def offset(self) -> int: ...
|
|
1676
2018
|
|
|
1677
|
-
|
|
2019
|
+
@property
|
|
2020
|
+
def size(self) -> int: ...
|
|
1678
2021
|
|
|
1679
|
-
|
|
2022
|
+
@property
|
|
2023
|
+
def page_size(self) -> int: ...
|
|
1680
2024
|
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
def from_value(arg: int, /) -> Header.FLAGS: ...
|
|
2025
|
+
@property
|
|
2026
|
+
def segment_offset(self) -> int: ...
|
|
1684
2027
|
|
|
1685
|
-
|
|
2028
|
+
@property
|
|
2029
|
+
def page_start(self) -> list[int]: ...
|
|
1686
2030
|
|
|
1687
|
-
|
|
2031
|
+
@property
|
|
2032
|
+
def pointer_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
1688
2033
|
|
|
1689
|
-
|
|
2034
|
+
@property
|
|
2035
|
+
def max_valid_pointer(self) -> int: ...
|
|
1690
2036
|
|
|
1691
|
-
|
|
2037
|
+
@property
|
|
2038
|
+
def page_count(self) -> int: ...
|
|
1692
2039
|
|
|
1693
|
-
|
|
2040
|
+
@property
|
|
2041
|
+
def segment(self) -> SegmentCommand: ...
|
|
1694
2042
|
|
|
1695
|
-
|
|
2043
|
+
def __str__(self) -> str: ...
|
|
1696
2044
|
|
|
1697
|
-
|
|
2045
|
+
data_offset: int
|
|
1698
2046
|
|
|
1699
|
-
|
|
2047
|
+
data_size: int
|
|
1700
2048
|
|
|
1701
|
-
|
|
2049
|
+
@property
|
|
2050
|
+
def payload(self) -> memoryview: ...
|
|
1702
2051
|
|
|
1703
|
-
|
|
2052
|
+
@property
|
|
2053
|
+
def bindings(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1704
2054
|
|
|
1705
|
-
|
|
2055
|
+
@property
|
|
2056
|
+
def chained_starts_in_segments(self) -> DyldChainedFixups.it_chained_starts_in_segments_t: ...
|
|
1706
2057
|
|
|
1707
|
-
|
|
2058
|
+
fixups_version: int
|
|
1708
2059
|
|
|
1709
|
-
|
|
2060
|
+
starts_offset: int
|
|
1710
2061
|
|
|
1711
|
-
|
|
2062
|
+
imports_offset: int
|
|
1712
2063
|
|
|
1713
|
-
|
|
2064
|
+
symbols_offset: int
|
|
1714
2065
|
|
|
1715
|
-
|
|
2066
|
+
imports_count: int
|
|
1716
2067
|
|
|
1717
|
-
|
|
2068
|
+
symbols_format: int
|
|
1718
2069
|
|
|
1719
|
-
|
|
2070
|
+
imports_format: DYLD_CHAINED_FORMAT
|
|
1720
2071
|
|
|
1721
|
-
|
|
2072
|
+
def __str__(self) -> str: ...
|
|
1722
2073
|
|
|
1723
|
-
|
|
2074
|
+
class DyldExportsTrie(LoadCommand):
|
|
2075
|
+
class it_export_info:
|
|
2076
|
+
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1724
2077
|
|
|
1725
|
-
|
|
2078
|
+
def __len__(self) -> int: ...
|
|
1726
2079
|
|
|
1727
|
-
|
|
2080
|
+
def __iter__(self) -> DyldExportsTrie.it_export_info: ...
|
|
1728
2081
|
|
|
1729
|
-
|
|
2082
|
+
def __next__(self) -> ExportInfo: ...
|
|
1730
2083
|
|
|
1731
|
-
|
|
2084
|
+
data_offset: int
|
|
1732
2085
|
|
|
1733
|
-
|
|
2086
|
+
data_size: int
|
|
1734
2087
|
|
|
1735
|
-
|
|
2088
|
+
@property
|
|
2089
|
+
def content(self) -> memoryview: ...
|
|
1736
2090
|
|
|
1737
|
-
|
|
2091
|
+
@property
|
|
2092
|
+
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1738
2093
|
|
|
1739
|
-
|
|
2094
|
+
def show_export_trie(self) -> str: ...
|
|
1740
2095
|
|
|
1741
|
-
|
|
2096
|
+
def __str__(self) -> str: ...
|
|
1742
2097
|
|
|
1743
|
-
|
|
2098
|
+
class DylibCommand(LoadCommand):
|
|
2099
|
+
name: str
|
|
1744
2100
|
|
|
1745
|
-
|
|
2101
|
+
@property
|
|
2102
|
+
def name_offset(self) -> int: ...
|
|
1746
2103
|
|
|
1747
|
-
|
|
2104
|
+
timestamp: int
|
|
1748
2105
|
|
|
1749
|
-
|
|
2106
|
+
current_version: list[int]
|
|
1750
2107
|
|
|
1751
|
-
|
|
2108
|
+
compatibility_version: list[int]
|
|
1752
2109
|
|
|
1753
|
-
|
|
2110
|
+
@staticmethod
|
|
2111
|
+
def weak_lib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1754
2112
|
|
|
1755
|
-
|
|
2113
|
+
@staticmethod
|
|
2114
|
+
def id_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1756
2115
|
|
|
1757
|
-
|
|
2116
|
+
@staticmethod
|
|
2117
|
+
def load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1758
2118
|
|
|
1759
|
-
@
|
|
1760
|
-
def
|
|
2119
|
+
@staticmethod
|
|
2120
|
+
def reexport_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1761
2121
|
|
|
1762
|
-
|
|
2122
|
+
@staticmethod
|
|
2123
|
+
def load_upward_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1763
2124
|
|
|
1764
|
-
|
|
2125
|
+
@staticmethod
|
|
2126
|
+
def lazy_load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1765
2127
|
|
|
1766
|
-
def
|
|
2128
|
+
def __str__(self) -> str: ...
|
|
1767
2129
|
|
|
1768
|
-
|
|
2130
|
+
class ThreadCommand(LoadCommand):
|
|
2131
|
+
def __init__(self, arg0: int, arg1: int, arg2: Header.CPU_TYPE, /) -> None: ...
|
|
1769
2132
|
|
|
1770
|
-
|
|
2133
|
+
flavor: int
|
|
1771
2134
|
|
|
1772
|
-
|
|
2135
|
+
state: memoryview
|
|
1773
2136
|
|
|
1774
|
-
|
|
2137
|
+
count: int
|
|
1775
2138
|
|
|
1776
|
-
|
|
1777
|
-
|
|
2139
|
+
@property
|
|
2140
|
+
def pc(self) -> int: ...
|
|
1778
2141
|
|
|
1779
|
-
|
|
1780
|
-
pass
|
|
2142
|
+
architecture: Header.CPU_TYPE
|
|
1781
2143
|
|
|
1782
|
-
|
|
1783
|
-
data_offset: int
|
|
2144
|
+
def __str__(self) -> str: ...
|
|
1784
2145
|
|
|
1785
|
-
|
|
2146
|
+
class RPathCommand(LoadCommand):
|
|
2147
|
+
@staticmethod
|
|
2148
|
+
def create(path: str) -> Optional[RPathCommand]: ...
|
|
1786
2149
|
|
|
1787
2150
|
@property
|
|
1788
|
-
def
|
|
2151
|
+
def path_offset(self) -> int: ...
|
|
2152
|
+
|
|
2153
|
+
path: str
|
|
1789
2154
|
|
|
1790
2155
|
def __str__(self) -> str: ...
|
|
1791
2156
|
|
|
1792
|
-
class
|
|
2157
|
+
class Symbol(lief.Symbol):
|
|
1793
2158
|
def __init__(self) -> None: ...
|
|
1794
2159
|
|
|
1795
|
-
class
|
|
2160
|
+
class CATEGORY(enum.Enum):
|
|
1796
2161
|
@staticmethod
|
|
1797
|
-
def from_value(arg: int, /) ->
|
|
2162
|
+
def from_value(arg: int, /) -> Symbol.CATEGORY: ...
|
|
1798
2163
|
|
|
1799
2164
|
def __eq__(self, arg, /) -> bool: ...
|
|
1800
2165
|
|
|
@@ -1802,234 +2167,253 @@ class LoadCommand(lief.Object):
|
|
|
1802
2167
|
|
|
1803
2168
|
def __int__(self) -> int: ...
|
|
1804
2169
|
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
SEGMENT = 1
|
|
1808
|
-
|
|
1809
|
-
SYMTAB = 2
|
|
1810
|
-
|
|
1811
|
-
SYMSEG = 3
|
|
1812
|
-
|
|
1813
|
-
THREAD = 4
|
|
1814
|
-
|
|
1815
|
-
UNIXTHREAD = 5
|
|
1816
|
-
|
|
1817
|
-
LOADFVMLIB = 6
|
|
1818
|
-
|
|
1819
|
-
IDFVMLIB = 7
|
|
1820
|
-
|
|
1821
|
-
IDENT = 8
|
|
1822
|
-
|
|
1823
|
-
FVMFILE = 9
|
|
2170
|
+
NONE = 0
|
|
1824
2171
|
|
|
1825
|
-
|
|
2172
|
+
LOCAL = 1
|
|
1826
2173
|
|
|
1827
|
-
|
|
2174
|
+
EXTERNAL = 2
|
|
1828
2175
|
|
|
1829
|
-
|
|
2176
|
+
UNDEFINED = 3
|
|
1830
2177
|
|
|
1831
|
-
|
|
2178
|
+
INDIRECT_ABS = 4
|
|
1832
2179
|
|
|
1833
|
-
|
|
2180
|
+
INDIRECT_LOCAL = 5
|
|
1834
2181
|
|
|
1835
|
-
|
|
2182
|
+
INDIRECT_ABS_LOCAL = 6
|
|
1836
2183
|
|
|
1837
|
-
|
|
2184
|
+
class ORIGIN(enum.Enum):
|
|
2185
|
+
@staticmethod
|
|
2186
|
+
def from_value(arg: int, /) -> Symbol.ORIGIN: ...
|
|
1838
2187
|
|
|
1839
|
-
|
|
2188
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1840
2189
|
|
|
1841
|
-
|
|
2190
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1842
2191
|
|
|
1843
|
-
|
|
2192
|
+
def __int__(self) -> int: ...
|
|
1844
2193
|
|
|
1845
|
-
|
|
2194
|
+
UNKNOWN = 0
|
|
1846
2195
|
|
|
1847
|
-
|
|
2196
|
+
DYLD_EXPORT = 1
|
|
1848
2197
|
|
|
1849
|
-
|
|
2198
|
+
DYLD_BIND = 2
|
|
1850
2199
|
|
|
1851
|
-
|
|
2200
|
+
SYMTAB = 3
|
|
1852
2201
|
|
|
1853
|
-
|
|
2202
|
+
class TYPE(enum.Enum):
|
|
2203
|
+
@staticmethod
|
|
2204
|
+
def from_value(arg: int, /) -> Symbol.TYPE: ...
|
|
1854
2205
|
|
|
1855
|
-
|
|
2206
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1856
2207
|
|
|
1857
|
-
|
|
2208
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1858
2209
|
|
|
1859
|
-
|
|
2210
|
+
def __int__(self) -> int: ...
|
|
1860
2211
|
|
|
1861
|
-
|
|
2212
|
+
UNDEFINED = 0
|
|
1862
2213
|
|
|
1863
|
-
|
|
2214
|
+
ABSOLUTE_SYM = 2
|
|
1864
2215
|
|
|
1865
|
-
|
|
2216
|
+
SECTION = 14
|
|
1866
2217
|
|
|
1867
|
-
|
|
2218
|
+
PREBOUND = 12
|
|
1868
2219
|
|
|
1869
|
-
|
|
2220
|
+
INDIRECT = 10
|
|
1870
2221
|
|
|
1871
|
-
|
|
2222
|
+
@property
|
|
2223
|
+
def demangled_name(self) -> str: ...
|
|
1872
2224
|
|
|
1873
|
-
|
|
2225
|
+
@property
|
|
2226
|
+
def category(self) -> Symbol.CATEGORY: ...
|
|
1874
2227
|
|
|
1875
|
-
|
|
2228
|
+
raw_type: int
|
|
1876
2229
|
|
|
1877
|
-
|
|
2230
|
+
@property
|
|
2231
|
+
def type(self) -> Symbol.TYPE: ...
|
|
1878
2232
|
|
|
1879
|
-
|
|
2233
|
+
numberof_sections: int
|
|
1880
2234
|
|
|
1881
|
-
|
|
2235
|
+
description: int
|
|
1882
2236
|
|
|
1883
|
-
|
|
2237
|
+
@property
|
|
2238
|
+
def has_export_info(self) -> bool: ...
|
|
1884
2239
|
|
|
1885
|
-
|
|
2240
|
+
@property
|
|
2241
|
+
def origin(self) -> Symbol.ORIGIN: ...
|
|
1886
2242
|
|
|
1887
|
-
|
|
2243
|
+
@property
|
|
2244
|
+
def export_info(self) -> ExportInfo: ...
|
|
1888
2245
|
|
|
1889
|
-
|
|
2246
|
+
@property
|
|
2247
|
+
def has_binding_info(self) -> bool: ...
|
|
1890
2248
|
|
|
1891
|
-
|
|
2249
|
+
@property
|
|
2250
|
+
def binding_info(self) -> BindingInfo: ...
|
|
1892
2251
|
|
|
1893
|
-
|
|
2252
|
+
@property
|
|
2253
|
+
def library(self) -> DylibCommand: ...
|
|
1894
2254
|
|
|
1895
|
-
|
|
2255
|
+
@property
|
|
2256
|
+
def is_external(self) -> bool: ...
|
|
1896
2257
|
|
|
1897
|
-
|
|
2258
|
+
@property
|
|
2259
|
+
def library_ordinal(self) -> int: ...
|
|
1898
2260
|
|
|
1899
|
-
|
|
2261
|
+
def __str__(self) -> str: ...
|
|
1900
2262
|
|
|
1901
|
-
|
|
2263
|
+
class Relocation(lief.Relocation):
|
|
2264
|
+
class ORIGIN(enum.Enum):
|
|
2265
|
+
@staticmethod
|
|
2266
|
+
def from_value(arg: int, /) -> Relocation.ORIGIN: ...
|
|
1902
2267
|
|
|
1903
|
-
|
|
2268
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1904
2269
|
|
|
1905
|
-
|
|
2270
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1906
2271
|
|
|
1907
|
-
|
|
2272
|
+
def __int__(self) -> int: ...
|
|
1908
2273
|
|
|
1909
|
-
|
|
2274
|
+
UNKNOWN = 0
|
|
1910
2275
|
|
|
1911
|
-
|
|
2276
|
+
DYLDINFO = 1
|
|
1912
2277
|
|
|
1913
|
-
|
|
2278
|
+
RELOC_TABLE = 2
|
|
1914
2279
|
|
|
1915
|
-
|
|
2280
|
+
CHAINED_FIXUPS = 3
|
|
1916
2281
|
|
|
1917
|
-
|
|
2282
|
+
address: int
|
|
1918
2283
|
|
|
1919
|
-
|
|
2284
|
+
pc_relative: bool
|
|
1920
2285
|
|
|
1921
|
-
|
|
2286
|
+
type: Union[lief.MachO.X86_RELOCATION, lief.MachO.X86_64_RELOCATION, lief.MachO.PPC_RELOCATION, lief.MachO.ARM_RELOCATION, lief.MachO.ARM64_RELOCATION, lief.MachO.DyldInfo.REBASE_TYPE, ]
|
|
1922
2287
|
|
|
1923
|
-
|
|
2288
|
+
@property
|
|
2289
|
+
def architecture(self) -> Header.CPU_TYPE: ...
|
|
1924
2290
|
|
|
1925
|
-
|
|
2291
|
+
@property
|
|
2292
|
+
def has_symbol(self) -> bool: ...
|
|
1926
2293
|
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
def from_value(arg: int, /) -> MACHO_TYPES: ...
|
|
2294
|
+
@property
|
|
2295
|
+
def symbol(self) -> Symbol: ...
|
|
1930
2296
|
|
|
1931
|
-
|
|
2297
|
+
@property
|
|
2298
|
+
def has_section(self) -> bool: ...
|
|
1932
2299
|
|
|
1933
|
-
|
|
2300
|
+
@property
|
|
2301
|
+
def section(self) -> Section: ...
|
|
1934
2302
|
|
|
1935
|
-
|
|
2303
|
+
@property
|
|
2304
|
+
def origin(self) -> Relocation.ORIGIN: ...
|
|
1936
2305
|
|
|
1937
|
-
|
|
2306
|
+
@property
|
|
2307
|
+
def has_segment(self) -> bool: ...
|
|
1938
2308
|
|
|
1939
|
-
|
|
2309
|
+
@property
|
|
2310
|
+
def segment(self) -> SegmentCommand: ...
|
|
1940
2311
|
|
|
1941
|
-
|
|
2312
|
+
def __str__(self) -> str: ...
|
|
1942
2313
|
|
|
1943
|
-
|
|
2314
|
+
class RelocationObject(Relocation):
|
|
2315
|
+
value: int
|
|
1944
2316
|
|
|
1945
|
-
|
|
2317
|
+
@property
|
|
2318
|
+
def is_scattered(self) -> bool: ...
|
|
1946
2319
|
|
|
1947
|
-
|
|
2320
|
+
def __str__(self) -> str: ...
|
|
1948
2321
|
|
|
1949
|
-
|
|
2322
|
+
class RelocationDyld(Relocation):
|
|
2323
|
+
def __le__(self, arg: RelocationDyld, /) -> bool: ...
|
|
1950
2324
|
|
|
1951
|
-
|
|
1952
|
-
def __init__(self, arg0: int, arg1: int, /) -> None: ...
|
|
2325
|
+
def __lt__(self, arg: RelocationDyld, /) -> bool: ...
|
|
1953
2326
|
|
|
1954
|
-
|
|
2327
|
+
def __ge__(self, arg: RelocationDyld, /) -> bool: ...
|
|
1955
2328
|
|
|
1956
|
-
|
|
2329
|
+
def __gt__(self, arg: RelocationDyld, /) -> bool: ...
|
|
1957
2330
|
|
|
1958
2331
|
def __str__(self) -> str: ...
|
|
1959
2332
|
|
|
1960
|
-
class
|
|
1961
|
-
|
|
1962
|
-
def from_value(arg: int, /) -> PPC_RELOCATION: ...
|
|
2333
|
+
class RelocationFixup(Relocation):
|
|
2334
|
+
target: int
|
|
1963
2335
|
|
|
1964
|
-
|
|
2336
|
+
next: int
|
|
1965
2337
|
|
|
1966
|
-
def
|
|
2338
|
+
def __str__(self) -> str: ...
|
|
1967
2339
|
|
|
1968
|
-
|
|
2340
|
+
class BindingInfo(lief.Object):
|
|
2341
|
+
address: int
|
|
1969
2342
|
|
|
1970
|
-
|
|
2343
|
+
library_ordinal: int
|
|
1971
2344
|
|
|
1972
|
-
|
|
2345
|
+
addend: int
|
|
1973
2346
|
|
|
1974
|
-
|
|
2347
|
+
weak_import: bool
|
|
1975
2348
|
|
|
1976
|
-
|
|
2349
|
+
@property
|
|
2350
|
+
def has_library(self) -> bool: ...
|
|
1977
2351
|
|
|
1978
|
-
|
|
2352
|
+
@property
|
|
2353
|
+
def library(self) -> DylibCommand: ...
|
|
1979
2354
|
|
|
1980
|
-
|
|
2355
|
+
@property
|
|
2356
|
+
def has_segment(self) -> bool: ...
|
|
1981
2357
|
|
|
1982
|
-
|
|
2358
|
+
@property
|
|
2359
|
+
def segment(self) -> SegmentCommand: ...
|
|
1983
2360
|
|
|
1984
|
-
|
|
2361
|
+
@property
|
|
2362
|
+
def has_symbol(self) -> bool: ...
|
|
1985
2363
|
|
|
1986
|
-
|
|
2364
|
+
@property
|
|
2365
|
+
def symbol(self) -> Symbol: ...
|
|
1987
2366
|
|
|
1988
|
-
|
|
2367
|
+
def __str__(self) -> str: ...
|
|
1989
2368
|
|
|
1990
|
-
|
|
2369
|
+
class DyldBindingInfo(BindingInfo):
|
|
2370
|
+
class CLASS(enum.Enum):
|
|
2371
|
+
@staticmethod
|
|
2372
|
+
def from_value(arg: int, /) -> DyldBindingInfo.CLASS: ...
|
|
1991
2373
|
|
|
1992
|
-
|
|
2374
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1993
2375
|
|
|
1994
|
-
|
|
2376
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1995
2377
|
|
|
1996
|
-
|
|
2378
|
+
def __int__(self) -> int: ...
|
|
1997
2379
|
|
|
1998
|
-
|
|
2380
|
+
WEAK = 1
|
|
1999
2381
|
|
|
2000
|
-
|
|
2382
|
+
LAZY = 2
|
|
2001
2383
|
|
|
2002
|
-
|
|
2003
|
-
def __init__(self) -> None: ...
|
|
2384
|
+
STANDARD = 3
|
|
2004
2385
|
|
|
2005
|
-
|
|
2386
|
+
THREADED = 100
|
|
2006
2387
|
|
|
2007
|
-
|
|
2388
|
+
class TYPE(enum.Enum):
|
|
2389
|
+
@staticmethod
|
|
2390
|
+
def from_value(arg: int, /) -> DyldBindingInfo.TYPE: ...
|
|
2008
2391
|
|
|
2009
|
-
|
|
2392
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2010
2393
|
|
|
2011
|
-
|
|
2394
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2012
2395
|
|
|
2013
|
-
|
|
2396
|
+
def __int__(self) -> int: ...
|
|
2014
2397
|
|
|
2015
|
-
|
|
2398
|
+
POINTER = 1
|
|
2399
|
+
|
|
2400
|
+
TEXT_ABSOLUTE32 = 2
|
|
2016
2401
|
|
|
2017
|
-
|
|
2402
|
+
TEXT_PCREL32 = 3
|
|
2018
2403
|
|
|
2019
|
-
|
|
2404
|
+
binding_class: DyldBindingInfo.CLASS
|
|
2020
2405
|
|
|
2021
|
-
|
|
2022
|
-
@staticmethod
|
|
2023
|
-
def create(path: str) -> Optional[RPathCommand]: ...
|
|
2406
|
+
binding_type: DyldBindingInfo.TYPE
|
|
2024
2407
|
|
|
2025
|
-
|
|
2408
|
+
@property
|
|
2409
|
+
def original_offset(self) -> int: ...
|
|
2026
2410
|
|
|
2027
2411
|
def __str__(self) -> str: ...
|
|
2028
2412
|
|
|
2029
|
-
class
|
|
2030
|
-
class
|
|
2413
|
+
class ExportInfo(lief.Object):
|
|
2414
|
+
class KIND(enum.Enum):
|
|
2031
2415
|
@staticmethod
|
|
2032
|
-
def from_value(arg: int, /) ->
|
|
2416
|
+
def from_value(arg: int, /) -> ExportInfo.KIND: ...
|
|
2033
2417
|
|
|
2034
2418
|
def __eq__(self, arg, /) -> bool: ...
|
|
2035
2419
|
|
|
@@ -2037,350 +2421,377 @@ class Relocation(lief.Relocation):
|
|
|
2037
2421
|
|
|
2038
2422
|
def __int__(self) -> int: ...
|
|
2039
2423
|
|
|
2040
|
-
|
|
2424
|
+
REGULAR = 0
|
|
2041
2425
|
|
|
2042
|
-
|
|
2426
|
+
THREAD_LOCAL_KIND = 1
|
|
2043
2427
|
|
|
2044
|
-
|
|
2428
|
+
ABSOLUTE_KIND = 2
|
|
2045
2429
|
|
|
2046
|
-
|
|
2430
|
+
class FLAGS(enum.Flag):
|
|
2431
|
+
@staticmethod
|
|
2432
|
+
def from_value(arg: int, /) -> ExportInfo.FLAGS: ...
|
|
2047
2433
|
|
|
2048
|
-
|
|
2434
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2049
2435
|
|
|
2050
|
-
|
|
2436
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2051
2437
|
|
|
2052
|
-
|
|
2438
|
+
def __int__(self) -> int: ...
|
|
2053
2439
|
|
|
2054
|
-
|
|
2055
|
-
|
|
2440
|
+
WEAK_DEFINITION = 4
|
|
2441
|
+
|
|
2442
|
+
REEXPORT = 8
|
|
2443
|
+
|
|
2444
|
+
STUB_AND_RESOLVER = 16
|
|
2445
|
+
|
|
2446
|
+
STATIC_RESOLVER = 32
|
|
2056
2447
|
|
|
2057
2448
|
@property
|
|
2058
|
-
def
|
|
2449
|
+
def node_offset(self) -> int: ...
|
|
2059
2450
|
|
|
2060
2451
|
@property
|
|
2061
|
-
def
|
|
2452
|
+
def kind(self) -> ExportInfo.KIND: ...
|
|
2062
2453
|
|
|
2063
2454
|
@property
|
|
2064
|
-
def
|
|
2455
|
+
def flags_list(self) -> list[ExportInfo.FLAGS]: ...
|
|
2456
|
+
|
|
2457
|
+
flags: int
|
|
2458
|
+
|
|
2459
|
+
address: int
|
|
2065
2460
|
|
|
2066
2461
|
@property
|
|
2067
|
-
def
|
|
2462
|
+
def alias(self) -> Symbol: ...
|
|
2068
2463
|
|
|
2069
2464
|
@property
|
|
2070
|
-
def
|
|
2465
|
+
def alias_library(self) -> DylibCommand: ...
|
|
2071
2466
|
|
|
2072
2467
|
@property
|
|
2073
|
-
def
|
|
2468
|
+
def has_symbol(self) -> bool: ...
|
|
2469
|
+
|
|
2470
|
+
def has(self, flag: ExportInfo.FLAGS) -> bool: ...
|
|
2074
2471
|
|
|
2075
2472
|
@property
|
|
2076
|
-
def
|
|
2473
|
+
def symbol(self) -> Symbol: ...
|
|
2077
2474
|
|
|
2078
2475
|
def __str__(self) -> str: ...
|
|
2079
2476
|
|
|
2080
|
-
class
|
|
2081
|
-
|
|
2477
|
+
class FunctionStarts(LoadCommand):
|
|
2478
|
+
data_offset: int
|
|
2082
2479
|
|
|
2083
|
-
|
|
2480
|
+
data_size: int
|
|
2481
|
+
|
|
2482
|
+
functions: list[int]
|
|
2483
|
+
|
|
2484
|
+
def add_function(self, address: int) -> None: ...
|
|
2485
|
+
|
|
2486
|
+
@property
|
|
2487
|
+
def content(self) -> memoryview: ...
|
|
2488
|
+
|
|
2489
|
+
def __str__(self) -> str: ...
|
|
2084
2490
|
|
|
2085
|
-
|
|
2491
|
+
class FunctionVariants(LoadCommand):
|
|
2492
|
+
class RuntimeTableEntry:
|
|
2493
|
+
class FLAGS(enum.Enum):
|
|
2494
|
+
ARM64_DEFAULT = 3145728
|
|
2086
2495
|
|
|
2087
|
-
|
|
2496
|
+
ARM64_FLAGM = 3145729
|
|
2088
2497
|
|
|
2089
|
-
|
|
2498
|
+
ARM64_FLAGM2 = 3145730
|
|
2090
2499
|
|
|
2091
|
-
|
|
2092
|
-
target: int
|
|
2500
|
+
ARM64_FHM = 3145731
|
|
2093
2501
|
|
|
2094
|
-
|
|
2502
|
+
ARM64_DOTPROD = 3145732
|
|
2095
2503
|
|
|
2096
|
-
|
|
2504
|
+
ARM64_SHA3 = 3145733
|
|
2097
2505
|
|
|
2098
|
-
|
|
2099
|
-
value: int
|
|
2506
|
+
ARM64_RDM = 3145734
|
|
2100
2507
|
|
|
2101
|
-
|
|
2102
|
-
def is_scattered(self) -> bool: ...
|
|
2508
|
+
ARM64_LSE = 3145735
|
|
2103
2509
|
|
|
2104
|
-
|
|
2510
|
+
ARM64_SHA256 = 3145736
|
|
2105
2511
|
|
|
2106
|
-
|
|
2107
|
-
init_address: int
|
|
2512
|
+
ARM64_SHA512 = 3145737
|
|
2108
2513
|
|
|
2109
|
-
|
|
2514
|
+
ARM64_SHA1 = 3145738
|
|
2110
2515
|
|
|
2111
|
-
|
|
2516
|
+
ARM64_AES = 3145739
|
|
2112
2517
|
|
|
2113
|
-
|
|
2518
|
+
ARM64_PMULL = 3145740
|
|
2114
2519
|
|
|
2115
|
-
|
|
2520
|
+
ARM64_SPECRES = 3145741
|
|
2116
2521
|
|
|
2117
|
-
|
|
2522
|
+
ARM64_SB = 3145742
|
|
2118
2523
|
|
|
2119
|
-
|
|
2524
|
+
ARM64_FRINTTS = 3145743
|
|
2120
2525
|
|
|
2121
|
-
|
|
2526
|
+
ARM64_LRCPC = 3145744
|
|
2122
2527
|
|
|
2123
|
-
|
|
2528
|
+
ARM64_LRCPC2 = 3145745
|
|
2124
2529
|
|
|
2125
|
-
|
|
2126
|
-
@overload
|
|
2127
|
-
def __init__(self) -> None: ...
|
|
2530
|
+
ARM64_FCMA = 3145746
|
|
2128
2531
|
|
|
2129
|
-
|
|
2130
|
-
def __init__(self, section_name: str) -> None: ...
|
|
2532
|
+
ARM64_JSCVT = 3145747
|
|
2131
2533
|
|
|
2132
|
-
|
|
2133
|
-
def __init__(self, section_name: str, content: Sequence[int]) -> None: ...
|
|
2534
|
+
ARM64_PAUTH = 3145748
|
|
2134
2535
|
|
|
2135
|
-
|
|
2136
|
-
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
2536
|
+
ARM64_PAUTH2 = 3145749
|
|
2137
2537
|
|
|
2138
|
-
|
|
2538
|
+
ARM64_FPAC = 3145750
|
|
2139
2539
|
|
|
2140
|
-
|
|
2540
|
+
ARM64_DPB = 3145751
|
|
2141
2541
|
|
|
2142
|
-
|
|
2542
|
+
ARM64_DPB2 = 3145752
|
|
2143
2543
|
|
|
2144
|
-
|
|
2145
|
-
@staticmethod
|
|
2146
|
-
def from_value(arg: int, /) -> Section.TYPE: ...
|
|
2544
|
+
ARM64_BF16 = 3145753
|
|
2147
2545
|
|
|
2148
|
-
|
|
2546
|
+
ARM64_I8MM = 3145754
|
|
2149
2547
|
|
|
2150
|
-
|
|
2548
|
+
ARM64_WFXT = 3145755
|
|
2151
2549
|
|
|
2152
|
-
|
|
2550
|
+
ARM64_RPRES = 3145756
|
|
2153
2551
|
|
|
2154
|
-
|
|
2552
|
+
ARM64_ECV = 3145757
|
|
2155
2553
|
|
|
2156
|
-
|
|
2554
|
+
ARM64_AFP = 3145758
|
|
2157
2555
|
|
|
2158
|
-
|
|
2556
|
+
ARM64_LSE2 = 3145759
|
|
2159
2557
|
|
|
2160
|
-
|
|
2558
|
+
ARM64_CSV2 = 3145760
|
|
2161
2559
|
|
|
2162
|
-
|
|
2560
|
+
ARM64_CVS3 = 3145761
|
|
2163
2561
|
|
|
2164
|
-
|
|
2562
|
+
ARM64_DIT = 3145762
|
|
2165
2563
|
|
|
2166
|
-
|
|
2564
|
+
ARM64_FP16 = 3145763
|
|
2167
2565
|
|
|
2168
|
-
|
|
2566
|
+
ARM64_SSBS = 3145764
|
|
2169
2567
|
|
|
2170
|
-
|
|
2568
|
+
ARM64_BTI = 3145765
|
|
2171
2569
|
|
|
2172
|
-
|
|
2570
|
+
ARM64_SME = 3145772
|
|
2173
2571
|
|
|
2174
|
-
|
|
2572
|
+
ARM64_SME2 = 3145773
|
|
2175
2573
|
|
|
2176
|
-
|
|
2574
|
+
ARM64_SMEF64F64 = 3145774
|
|
2177
2575
|
|
|
2178
|
-
|
|
2576
|
+
ARM64_SMEI16I64 = 3145775
|
|
2179
2577
|
|
|
2180
|
-
|
|
2578
|
+
ARM64_SMEF32F32 = 3145776
|
|
2181
2579
|
|
|
2182
|
-
|
|
2580
|
+
ARM64_SMEBI32I32 = 3145777
|
|
2183
2581
|
|
|
2184
|
-
|
|
2582
|
+
ARM64_SMEB16F32 = 3145778
|
|
2185
2583
|
|
|
2186
|
-
|
|
2584
|
+
ARM64_SMEF16F32 = 3145779
|
|
2187
2585
|
|
|
2188
|
-
|
|
2586
|
+
ARM64_SMEI8I32 = 3145780
|
|
2189
2587
|
|
|
2190
|
-
|
|
2588
|
+
ARM64_SMEI16I32 = 3145781
|
|
2191
2589
|
|
|
2192
|
-
|
|
2590
|
+
ARM64_ADVSIMD = 3145782
|
|
2193
2591
|
|
|
2194
|
-
|
|
2592
|
+
ARM64_ADVSIMDHPFP = 3145783
|
|
2195
2593
|
|
|
2196
|
-
|
|
2594
|
+
ARM64_CRC32 = 3145784
|
|
2197
2595
|
|
|
2198
|
-
|
|
2596
|
+
PER_PROCESS_DEFAULT = 1048576
|
|
2199
2597
|
|
|
2200
|
-
|
|
2201
|
-
@staticmethod
|
|
2202
|
-
def from_value(arg: int, /) -> Section.FLAGS: ...
|
|
2598
|
+
PER_PROCESS_TRANSLATED = 1048577
|
|
2203
2599
|
|
|
2204
|
-
|
|
2600
|
+
PER_PROCESS_NO_OVERREAD = 1048579
|
|
2205
2601
|
|
|
2206
|
-
|
|
2602
|
+
SYSTEM_WIDE_DEFAULT = 2097152
|
|
2207
2603
|
|
|
2208
|
-
|
|
2604
|
+
SYSTEM_WIDE_INTERNAL_INSTALL = 2097153
|
|
2209
2605
|
|
|
2210
|
-
|
|
2606
|
+
SYSTEM_WIDE_CUSTOMER_INSTALL = 2097154
|
|
2211
2607
|
|
|
2212
|
-
|
|
2608
|
+
SYSTEM_WIDE_LOCKDOWN = 2097155
|
|
2213
2609
|
|
|
2214
|
-
|
|
2610
|
+
X86_64_DEFAULT = 4194304
|
|
2215
2611
|
|
|
2216
|
-
|
|
2612
|
+
X86_64_SSE41 = 4194305
|
|
2217
2613
|
|
|
2218
|
-
|
|
2614
|
+
X86_64_FMA = 4194306
|
|
2219
2615
|
|
|
2220
|
-
|
|
2616
|
+
X86_64_AVX = 4194307
|
|
2221
2617
|
|
|
2222
|
-
|
|
2618
|
+
X86_64_AVX2 = 4194308
|
|
2223
2619
|
|
|
2224
|
-
|
|
2620
|
+
X86_64_AVX512F = 4194309
|
|
2225
2621
|
|
|
2226
|
-
|
|
2622
|
+
X86_64_AVX512BW = 4194310
|
|
2227
2623
|
|
|
2228
|
-
|
|
2624
|
+
X86_64_BMI1 = 4194311
|
|
2229
2625
|
|
|
2230
|
-
|
|
2626
|
+
X86_64_ROSETTA = 4194312
|
|
2231
2627
|
|
|
2232
|
-
|
|
2628
|
+
X86_64_HASWELL = 4194313
|
|
2233
2629
|
|
|
2234
|
-
|
|
2630
|
+
X86_64_IVYBRIDGE = 4194314
|
|
2235
2631
|
|
|
2236
|
-
|
|
2632
|
+
X86_64_NEHALEM = 4194315
|
|
2237
2633
|
|
|
2238
|
-
|
|
2239
|
-
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
2634
|
+
UNKNOWN = 0
|
|
2240
2635
|
|
|
2241
|
-
|
|
2636
|
+
@property
|
|
2637
|
+
def impl(self) -> int: ...
|
|
2242
2638
|
|
|
2243
|
-
|
|
2639
|
+
@property
|
|
2640
|
+
def another_table(self) -> bool: ...
|
|
2244
2641
|
|
|
2245
|
-
|
|
2642
|
+
@property
|
|
2643
|
+
def flag_bit_nums(self) -> memoryview: ...
|
|
2246
2644
|
|
|
2247
|
-
|
|
2645
|
+
@property
|
|
2646
|
+
def flags(self) -> list[FunctionVariants.RuntimeTableEntry.FLAGS]: ...
|
|
2248
2647
|
|
|
2249
|
-
|
|
2250
|
-
def flags_list(self) -> list[Section.FLAGS]: ...
|
|
2648
|
+
def __str__(self) -> str: ...
|
|
2251
2649
|
|
|
2252
|
-
|
|
2253
|
-
|
|
2650
|
+
class RuntimeTable:
|
|
2651
|
+
class KIND(enum.Enum):
|
|
2652
|
+
UNKNOWN = 0
|
|
2254
2653
|
|
|
2255
|
-
|
|
2654
|
+
PER_PROCESS = 1
|
|
2256
2655
|
|
|
2257
|
-
|
|
2258
|
-
def has_segment(self) -> bool: ...
|
|
2656
|
+
SYSTEM_WIDE = 2
|
|
2259
2657
|
|
|
2260
|
-
|
|
2658
|
+
ARM64 = 3
|
|
2261
2659
|
|
|
2262
|
-
|
|
2660
|
+
X86_64 = 4
|
|
2263
2661
|
|
|
2264
|
-
|
|
2662
|
+
class it_entries:
|
|
2663
|
+
def __getitem__(self, arg: int, /) -> FunctionVariants.RuntimeTableEntry: ...
|
|
2265
2664
|
|
|
2266
|
-
|
|
2665
|
+
def __len__(self) -> int: ...
|
|
2267
2666
|
|
|
2268
|
-
|
|
2667
|
+
def __iter__(self) -> FunctionVariants.RuntimeTable.it_entries: ...
|
|
2269
2668
|
|
|
2270
|
-
|
|
2669
|
+
def __next__(self) -> FunctionVariants.RuntimeTableEntry: ...
|
|
2271
2670
|
|
|
2272
|
-
|
|
2671
|
+
@property
|
|
2672
|
+
def kind(self) -> FunctionVariants.RuntimeTable.KIND: ...
|
|
2273
2673
|
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
def __init__(self) -> None: ...
|
|
2674
|
+
@property
|
|
2675
|
+
def offset(self) -> int: ...
|
|
2277
2676
|
|
|
2278
|
-
|
|
2279
|
-
|
|
2677
|
+
@property
|
|
2678
|
+
def entries(self) -> FunctionVariants.RuntimeTable.it_entries: ...
|
|
2280
2679
|
|
|
2281
|
-
|
|
2282
|
-
def __init__(self, arg0: str, arg1: Sequence[int], /) -> None: ...
|
|
2680
|
+
def __str__(self) -> str: ...
|
|
2283
2681
|
|
|
2284
|
-
class
|
|
2285
|
-
def __getitem__(self, arg: int, /) ->
|
|
2682
|
+
class it_runtime_table:
|
|
2683
|
+
def __getitem__(self, arg: int, /) -> FunctionVariants.RuntimeTable: ...
|
|
2286
2684
|
|
|
2287
2685
|
def __len__(self) -> int: ...
|
|
2288
2686
|
|
|
2289
|
-
def __iter__(self) ->
|
|
2290
|
-
|
|
2291
|
-
def __next__(self) -> Section: ...
|
|
2687
|
+
def __iter__(self) -> FunctionVariants.it_runtime_table: ...
|
|
2292
2688
|
|
|
2293
|
-
|
|
2294
|
-
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
2689
|
+
def __next__(self) -> FunctionVariants.RuntimeTable: ...
|
|
2295
2690
|
|
|
2296
|
-
|
|
2691
|
+
data_offset: int
|
|
2297
2692
|
|
|
2298
|
-
|
|
2693
|
+
data_size: int
|
|
2299
2694
|
|
|
2300
|
-
|
|
2695
|
+
@property
|
|
2696
|
+
def content(self) -> memoryview: ...
|
|
2301
2697
|
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
def from_value(arg: int, /) -> SegmentCommand.VM_PROTECTIONS: ...
|
|
2698
|
+
@property
|
|
2699
|
+
def runtime_table(self) -> FunctionVariants.it_runtime_table: ...
|
|
2305
2700
|
|
|
2306
|
-
|
|
2701
|
+
def __str__(self) -> str: ...
|
|
2307
2702
|
|
|
2308
|
-
|
|
2703
|
+
class FunctionVariantFixups(LoadCommand):
|
|
2704
|
+
data_offset: int
|
|
2309
2705
|
|
|
2310
|
-
|
|
2706
|
+
data_size: int
|
|
2311
2707
|
|
|
2312
|
-
|
|
2708
|
+
@property
|
|
2709
|
+
def content(self) -> memoryview: ...
|
|
2313
2710
|
|
|
2314
|
-
|
|
2711
|
+
def __str__(self) -> str: ...
|
|
2315
2712
|
|
|
2316
|
-
|
|
2713
|
+
class AtomInfo(LoadCommand):
|
|
2714
|
+
data_offset: int
|
|
2317
2715
|
|
|
2318
|
-
|
|
2319
|
-
@staticmethod
|
|
2320
|
-
def from_value(arg: int, /) -> SegmentCommand.FLAGS: ...
|
|
2716
|
+
data_size: int
|
|
2321
2717
|
|
|
2322
|
-
|
|
2718
|
+
@property
|
|
2719
|
+
def content(self) -> memoryview: ...
|
|
2323
2720
|
|
|
2324
|
-
|
|
2721
|
+
def __str__(self) -> str: ...
|
|
2325
2722
|
|
|
2326
|
-
|
|
2723
|
+
class CodeSignature(LoadCommand):
|
|
2724
|
+
data_offset: int
|
|
2327
2725
|
|
|
2328
|
-
|
|
2726
|
+
data_size: int
|
|
2329
2727
|
|
|
2330
|
-
|
|
2728
|
+
@property
|
|
2729
|
+
def content(self) -> memoryview: ...
|
|
2331
2730
|
|
|
2332
|
-
|
|
2731
|
+
def __str__(self) -> str: ...
|
|
2333
2732
|
|
|
2334
|
-
|
|
2733
|
+
class CodeSignatureDir(LoadCommand):
|
|
2734
|
+
data_offset: int
|
|
2335
2735
|
|
|
2336
|
-
|
|
2736
|
+
data_size: int
|
|
2337
2737
|
|
|
2338
|
-
|
|
2738
|
+
@property
|
|
2739
|
+
def content(self) -> memoryview: ...
|
|
2339
2740
|
|
|
2340
|
-
|
|
2741
|
+
def __str__(self) -> str: ...
|
|
2341
2742
|
|
|
2342
|
-
|
|
2743
|
+
class it_data_in_code_entries:
|
|
2744
|
+
def __getitem__(self, arg: int, /) -> DataCodeEntry: ...
|
|
2343
2745
|
|
|
2344
|
-
|
|
2746
|
+
def __len__(self) -> int: ...
|
|
2345
2747
|
|
|
2346
|
-
|
|
2748
|
+
def __iter__(self) -> it_data_in_code_entries: ...
|
|
2347
2749
|
|
|
2348
|
-
|
|
2750
|
+
def __next__(self) -> DataCodeEntry: ...
|
|
2349
2751
|
|
|
2350
|
-
|
|
2752
|
+
class DataInCode(LoadCommand):
|
|
2753
|
+
data_offset: int
|
|
2351
2754
|
|
|
2352
|
-
|
|
2755
|
+
data_size: int
|
|
2353
2756
|
|
|
2354
2757
|
@property
|
|
2355
|
-
def
|
|
2758
|
+
def entries(self) -> it_data_in_code_entries: ...
|
|
2356
2759
|
|
|
2357
|
-
|
|
2358
|
-
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
2760
|
+
def add(self, entry: DataCodeEntry) -> DataInCode: ...
|
|
2359
2761
|
|
|
2360
2762
|
@property
|
|
2361
|
-
def
|
|
2763
|
+
def content(self) -> memoryview: ...
|
|
2362
2764
|
|
|
2363
|
-
|
|
2765
|
+
def __str__(self) -> str: ...
|
|
2364
2766
|
|
|
2365
|
-
|
|
2767
|
+
class DataCodeEntry(lief.Object):
|
|
2768
|
+
class TYPES(enum.Enum):
|
|
2769
|
+
@staticmethod
|
|
2770
|
+
def from_value(arg: int, /) -> DataCodeEntry.TYPES: ...
|
|
2366
2771
|
|
|
2367
|
-
|
|
2772
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2368
2773
|
|
|
2369
|
-
|
|
2774
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2370
2775
|
|
|
2371
|
-
|
|
2776
|
+
def __int__(self) -> int: ...
|
|
2372
2777
|
|
|
2373
|
-
|
|
2778
|
+
UNKNOWN = 0
|
|
2374
2779
|
|
|
2375
|
-
|
|
2780
|
+
DATA = 1
|
|
2376
2781
|
|
|
2377
|
-
|
|
2378
|
-
data_offset: int
|
|
2782
|
+
JUMP_TABLE_8 = 2
|
|
2379
2783
|
|
|
2380
|
-
|
|
2784
|
+
JUMP_TABLE_16 = 3
|
|
2381
2785
|
|
|
2382
|
-
|
|
2383
|
-
|
|
2786
|
+
JUMP_TABLE_32 = 4
|
|
2787
|
+
|
|
2788
|
+
ABS_JUMP_TABLE_32 = 5
|
|
2789
|
+
|
|
2790
|
+
offset: int
|
|
2791
|
+
|
|
2792
|
+
length: int
|
|
2793
|
+
|
|
2794
|
+
type: DataCodeEntry.TYPES
|
|
2384
2795
|
|
|
2385
2796
|
def __str__(self) -> str: ...
|
|
2386
2797
|
|
|
@@ -2389,28 +2800,44 @@ class SourceVersion(LoadCommand):
|
|
|
2389
2800
|
|
|
2390
2801
|
def __str__(self) -> str: ...
|
|
2391
2802
|
|
|
2392
|
-
class
|
|
2393
|
-
|
|
2803
|
+
class Routine(LoadCommand):
|
|
2804
|
+
init_address: int
|
|
2394
2805
|
|
|
2395
|
-
|
|
2396
|
-
@overload
|
|
2397
|
-
def __init__(self) -> None: ...
|
|
2806
|
+
init_module: int
|
|
2398
2807
|
|
|
2399
|
-
|
|
2400
|
-
|
|
2808
|
+
reserved1: int
|
|
2809
|
+
|
|
2810
|
+
reserved2: int
|
|
2811
|
+
|
|
2812
|
+
reserved3: int
|
|
2813
|
+
|
|
2814
|
+
reserved4: int
|
|
2815
|
+
|
|
2816
|
+
reserved5: int
|
|
2817
|
+
|
|
2818
|
+
reserved6: int
|
|
2819
|
+
|
|
2820
|
+
def __str__(self) -> str: ...
|
|
2821
|
+
|
|
2822
|
+
class VersionMin(LoadCommand):
|
|
2823
|
+
version: list[int]
|
|
2824
|
+
|
|
2825
|
+
sdk: list[int]
|
|
2401
2826
|
|
|
2402
|
-
|
|
2827
|
+
def __str__(self) -> str: ...
|
|
2403
2828
|
|
|
2404
|
-
|
|
2829
|
+
class SegmentSplitInfo(LoadCommand):
|
|
2830
|
+
data_offset: int
|
|
2405
2831
|
|
|
2406
|
-
|
|
2407
|
-
def address(self) -> int: ...
|
|
2832
|
+
data_size: int
|
|
2408
2833
|
|
|
2409
2834
|
@property
|
|
2410
|
-
def
|
|
2835
|
+
def content(self) -> memoryview: ...
|
|
2411
2836
|
|
|
2412
|
-
|
|
2413
|
-
|
|
2837
|
+
def __str__(self) -> str: ...
|
|
2838
|
+
|
|
2839
|
+
class SubFramework(LoadCommand):
|
|
2840
|
+
umbrella: str
|
|
2414
2841
|
|
|
2415
2842
|
def __str__(self) -> str: ...
|
|
2416
2843
|
|
|
@@ -2419,17 +2846,24 @@ class SubClient(LoadCommand):
|
|
|
2419
2846
|
|
|
2420
2847
|
def __str__(self) -> str: ...
|
|
2421
2848
|
|
|
2422
|
-
class
|
|
2423
|
-
|
|
2849
|
+
class DyldEnvironment(LoadCommand):
|
|
2850
|
+
value: str
|
|
2424
2851
|
|
|
2425
2852
|
def __str__(self) -> str: ...
|
|
2426
2853
|
|
|
2427
|
-
class
|
|
2428
|
-
|
|
2854
|
+
class EncryptionInfo(LoadCommand):
|
|
2855
|
+
crypt_offset: int
|
|
2429
2856
|
|
|
2430
|
-
|
|
2857
|
+
crypt_size: int
|
|
2858
|
+
|
|
2859
|
+
crypt_id: int
|
|
2860
|
+
|
|
2861
|
+
def __str__(self) -> str: ...
|
|
2862
|
+
|
|
2863
|
+
class BuildVersion(LoadCommand):
|
|
2864
|
+
class PLATFORMS(enum.Enum):
|
|
2431
2865
|
@staticmethod
|
|
2432
|
-
def from_value(arg: int, /) ->
|
|
2866
|
+
def from_value(arg: int, /) -> BuildVersion.PLATFORMS: ...
|
|
2433
2867
|
|
|
2434
2868
|
def __eq__(self, arg, /) -> bool: ...
|
|
2435
2869
|
|
|
@@ -2437,125 +2871,135 @@ class Symbol(lief.Symbol):
|
|
|
2437
2871
|
|
|
2438
2872
|
def __int__(self) -> int: ...
|
|
2439
2873
|
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
LOCAL = 1
|
|
2874
|
+
UNKNOWN = 0
|
|
2443
2875
|
|
|
2444
|
-
|
|
2876
|
+
MACOS = 1
|
|
2445
2877
|
|
|
2446
|
-
|
|
2878
|
+
IOS = 2
|
|
2447
2879
|
|
|
2448
|
-
|
|
2880
|
+
TVOS = 3
|
|
2449
2881
|
|
|
2450
|
-
|
|
2882
|
+
WATCHOS = 4
|
|
2451
2883
|
|
|
2452
|
-
|
|
2884
|
+
BRIDGEOS = 5
|
|
2453
2885
|
|
|
2454
|
-
|
|
2455
|
-
@staticmethod
|
|
2456
|
-
def from_value(arg: int, /) -> Symbol.ORIGIN: ...
|
|
2886
|
+
MAC_CATALYST = 6
|
|
2457
2887
|
|
|
2458
|
-
|
|
2888
|
+
IOS_SIMULATOR = 7
|
|
2459
2889
|
|
|
2460
|
-
|
|
2890
|
+
TVOS_SIMULATOR = 8
|
|
2461
2891
|
|
|
2462
|
-
|
|
2892
|
+
WATCHOS_SIMULATOR = 9
|
|
2463
2893
|
|
|
2464
|
-
|
|
2894
|
+
DRIVERKIT = 10
|
|
2465
2895
|
|
|
2466
|
-
|
|
2896
|
+
VISIONOS = 11
|
|
2467
2897
|
|
|
2468
|
-
|
|
2898
|
+
VISIONOS_SIMULATOR = 12
|
|
2469
2899
|
|
|
2470
|
-
|
|
2900
|
+
FIRMWARE = 13
|
|
2471
2901
|
|
|
2472
|
-
|
|
2473
|
-
@staticmethod
|
|
2474
|
-
def from_value(arg: int, /) -> Symbol.TYPE: ...
|
|
2902
|
+
SEPOS = 14
|
|
2475
2903
|
|
|
2476
|
-
|
|
2904
|
+
MACOS_EXCLAVE_CORE = 15
|
|
2477
2905
|
|
|
2478
|
-
|
|
2906
|
+
MACOS_EXCLAVE_KIT = 16
|
|
2479
2907
|
|
|
2480
|
-
|
|
2908
|
+
IOS_EXCLAVE_CORE = 17
|
|
2481
2909
|
|
|
2482
|
-
|
|
2910
|
+
IOS_EXCLAVE_KIT = 18
|
|
2483
2911
|
|
|
2484
|
-
|
|
2912
|
+
TVOS_EXCLAVE_CORE = 19
|
|
2485
2913
|
|
|
2486
|
-
|
|
2914
|
+
TVOS_EXCLAVE_KIT = 20
|
|
2487
2915
|
|
|
2488
|
-
|
|
2916
|
+
WATCHOS_EXCLAVE_CORE = 21
|
|
2489
2917
|
|
|
2490
|
-
|
|
2918
|
+
WATCHOS_EXCLAVE_KIT = 22
|
|
2491
2919
|
|
|
2492
|
-
|
|
2493
|
-
def demangled_name(self) -> str: ...
|
|
2920
|
+
VISIONOS_EXCLAVE_CORE = 23
|
|
2494
2921
|
|
|
2495
|
-
|
|
2496
|
-
def category(self) -> Symbol.CATEGORY: ...
|
|
2922
|
+
VISIONOS_EXCLAVE_KIT = 24
|
|
2497
2923
|
|
|
2498
|
-
|
|
2924
|
+
ANY = 4294967295
|
|
2499
2925
|
|
|
2500
|
-
|
|
2501
|
-
def type(self) -> Symbol.TYPE: ...
|
|
2926
|
+
platform: BuildVersion.PLATFORMS
|
|
2502
2927
|
|
|
2503
|
-
|
|
2928
|
+
minos: list[int]
|
|
2504
2929
|
|
|
2505
|
-
|
|
2930
|
+
sdk: list[int]
|
|
2506
2931
|
|
|
2507
2932
|
@property
|
|
2508
|
-
def
|
|
2933
|
+
def tools(self) -> list[BuildToolVersion]: ...
|
|
2509
2934
|
|
|
2510
|
-
|
|
2511
|
-
def origin(self) -> Symbol.ORIGIN: ...
|
|
2935
|
+
def __str__(self) -> str: ...
|
|
2512
2936
|
|
|
2937
|
+
class BuildToolVersion(lief.Object):
|
|
2513
2938
|
@property
|
|
2514
|
-
def
|
|
2939
|
+
def tool(self) -> BuildToolVersion.TOOLS: ...
|
|
2515
2940
|
|
|
2516
2941
|
@property
|
|
2517
|
-
def
|
|
2942
|
+
def version(self) -> list[int]: ...
|
|
2518
2943
|
|
|
2519
|
-
|
|
2520
|
-
def binding_info(self) -> BindingInfo: ...
|
|
2944
|
+
def __str__(self) -> str: ...
|
|
2521
2945
|
|
|
2522
|
-
|
|
2523
|
-
|
|
2946
|
+
class TOOLS(enum.Enum):
|
|
2947
|
+
@staticmethod
|
|
2948
|
+
def from_value(arg: int, /) -> BuildToolVersion.TOOLS: ...
|
|
2524
2949
|
|
|
2525
|
-
|
|
2526
|
-
def is_external(self) -> bool: ...
|
|
2950
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2527
2951
|
|
|
2528
|
-
|
|
2529
|
-
def library_ordinal(self) -> int: ...
|
|
2952
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2530
2953
|
|
|
2531
|
-
|
|
2954
|
+
def __int__(self) -> int: ...
|
|
2532
2955
|
|
|
2533
|
-
|
|
2534
|
-
def __init__(self) -> None: ...
|
|
2956
|
+
UNKNOWN = 0
|
|
2535
2957
|
|
|
2536
|
-
|
|
2958
|
+
CLANG = 1
|
|
2537
2959
|
|
|
2538
|
-
|
|
2960
|
+
SWIFT = 2
|
|
2539
2961
|
|
|
2540
|
-
|
|
2962
|
+
LD = 3
|
|
2541
2963
|
|
|
2542
|
-
|
|
2964
|
+
LLD = 4
|
|
2543
2965
|
|
|
2544
|
-
|
|
2966
|
+
METAL = 1024
|
|
2545
2967
|
|
|
2546
|
-
|
|
2547
|
-
def __init__(self, arg0: int, arg1: int, arg2: Header.CPU_TYPE, /) -> None: ...
|
|
2968
|
+
AIRLLD = 1025
|
|
2548
2969
|
|
|
2549
|
-
|
|
2970
|
+
AIRNT = 1026
|
|
2550
2971
|
|
|
2551
|
-
|
|
2972
|
+
AIRNT_PLUGIN = 1027
|
|
2552
2973
|
|
|
2553
|
-
|
|
2974
|
+
AIRPACK = 1028
|
|
2975
|
+
|
|
2976
|
+
GPUARCHIVER = 1031
|
|
2977
|
+
|
|
2978
|
+
METAL_FRAMEWORK = 1032
|
|
2979
|
+
|
|
2980
|
+
class FilesetCommand(LoadCommand):
|
|
2981
|
+
name: str
|
|
2982
|
+
|
|
2983
|
+
virtual_address: int
|
|
2984
|
+
|
|
2985
|
+
file_offset: int
|
|
2554
2986
|
|
|
2555
2987
|
@property
|
|
2556
|
-
def
|
|
2988
|
+
def binary(self) -> Binary: ...
|
|
2989
|
+
|
|
2990
|
+
def __str__(self) -> str: ...
|
|
2991
|
+
|
|
2992
|
+
class ChainedBindingInfo(BindingInfo):
|
|
2993
|
+
@property
|
|
2994
|
+
def format(self) -> DYLD_CHAINED_FORMAT: ...
|
|
2995
|
+
|
|
2996
|
+
@property
|
|
2997
|
+
def ptr_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
2557
2998
|
|
|
2558
|
-
|
|
2999
|
+
offset: int
|
|
3000
|
+
|
|
3001
|
+
@property
|
|
3002
|
+
def sign_extended_addend(self) -> int: ...
|
|
2559
3003
|
|
|
2560
3004
|
def __str__(self) -> str: ...
|
|
2561
3005
|
|
|
@@ -2577,102 +3021,78 @@ class TwoLevelHints(LoadCommand):
|
|
|
2577
3021
|
|
|
2578
3022
|
def __str__(self) -> str: ...
|
|
2579
3023
|
|
|
2580
|
-
class
|
|
2581
|
-
|
|
3024
|
+
class LinkerOptHint(LoadCommand):
|
|
3025
|
+
data_offset: int
|
|
2582
3026
|
|
|
2583
|
-
|
|
3027
|
+
data_size: int
|
|
2584
3028
|
|
|
2585
|
-
class UnknownCommand(LoadCommand):
|
|
2586
3029
|
@property
|
|
2587
|
-
def
|
|
3030
|
+
def content(self) -> memoryview: ...
|
|
2588
3031
|
|
|
2589
3032
|
def __str__(self) -> str: ...
|
|
2590
3033
|
|
|
2591
|
-
class
|
|
2592
|
-
|
|
3034
|
+
class IndirectBindingInfo(BindingInfo):
|
|
3035
|
+
pass
|
|
2593
3036
|
|
|
2594
|
-
|
|
3037
|
+
class UnknownCommand(LoadCommand):
|
|
3038
|
+
@property
|
|
3039
|
+
def original_command(self) -> int: ...
|
|
2595
3040
|
|
|
2596
3041
|
def __str__(self) -> str: ...
|
|
2597
3042
|
|
|
2598
|
-
class
|
|
2599
|
-
|
|
2600
|
-
def from_value(arg: int, /) -> X86_64_RELOCATION: ...
|
|
2601
|
-
|
|
2602
|
-
def __eq__(self, arg, /) -> bool: ...
|
|
2603
|
-
|
|
2604
|
-
def __ne__(self, arg, /) -> bool: ...
|
|
2605
|
-
|
|
2606
|
-
def __int__(self) -> int: ...
|
|
3043
|
+
class Stub:
|
|
3044
|
+
def __init__(self, target_info: Stub.target_info_t, address: int, raw_stub: Sequence[int]) -> None: ...
|
|
2607
3045
|
|
|
2608
|
-
|
|
3046
|
+
class target_info_t:
|
|
3047
|
+
@overload
|
|
3048
|
+
def __init__(self) -> None: ...
|
|
2609
3049
|
|
|
2610
|
-
|
|
3050
|
+
@overload
|
|
3051
|
+
def __init__(self, arg0: Header.CPU_TYPE, arg1: int, /) -> None: ...
|
|
2611
3052
|
|
|
2612
|
-
|
|
3053
|
+
arch: Header.CPU_TYPE
|
|
2613
3054
|
|
|
2614
|
-
|
|
3055
|
+
subtype: int
|
|
2615
3056
|
|
|
2616
|
-
|
|
3057
|
+
@property
|
|
3058
|
+
def address(self) -> int: ...
|
|
2617
3059
|
|
|
2618
|
-
|
|
3060
|
+
@property
|
|
3061
|
+
def raw(self) -> memoryview: ...
|
|
2619
3062
|
|
|
2620
|
-
|
|
3063
|
+
@property
|
|
3064
|
+
def target(self) -> Union[int, lief.lief_errors]: ...
|
|
2621
3065
|
|
|
2622
|
-
|
|
3066
|
+
def __str__(self) -> str: ...
|
|
2623
3067
|
|
|
2624
|
-
|
|
3068
|
+
class Builder:
|
|
3069
|
+
class config_t:
|
|
3070
|
+
def __init__(self) -> None: ...
|
|
2625
3071
|
|
|
2626
|
-
|
|
3072
|
+
linkedit: bool
|
|
2627
3073
|
|
|
2628
|
-
|
|
3074
|
+
@overload
|
|
2629
3075
|
@staticmethod
|
|
2630
|
-
def
|
|
2631
|
-
|
|
2632
|
-
def __eq__(self, arg, /) -> bool: ...
|
|
2633
|
-
|
|
2634
|
-
def __ne__(self, arg, /) -> bool: ...
|
|
2635
|
-
|
|
2636
|
-
def __int__(self) -> int: ...
|
|
2637
|
-
|
|
2638
|
-
VANILLA = 0
|
|
3076
|
+
def write(binary: Binary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2639
3077
|
|
|
2640
|
-
|
|
3078
|
+
@overload
|
|
3079
|
+
@staticmethod
|
|
3080
|
+
def write(binary: Binary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2641
3081
|
|
|
2642
|
-
|
|
3082
|
+
@overload
|
|
3083
|
+
@staticmethod
|
|
3084
|
+
def write(fat_binary: FatBinary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2643
3085
|
|
|
2644
|
-
|
|
3086
|
+
@overload
|
|
3087
|
+
@staticmethod
|
|
3088
|
+
def write(fat_binary: FatBinary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2645
3089
|
|
|
2646
|
-
|
|
3090
|
+
def is_fat(file: Union[str | os.PathLike]) -> bool: ...
|
|
2647
3091
|
|
|
2648
|
-
|
|
3092
|
+
def is_64(file: Union[str | os.PathLike]) -> bool: ...
|
|
2649
3093
|
|
|
2650
3094
|
@overload
|
|
2651
3095
|
def check_layout(file: Binary) -> tuple[bool, str]: ...
|
|
2652
3096
|
|
|
2653
3097
|
@overload
|
|
2654
3098
|
def check_layout(file: FatBinary) -> tuple[bool, str]: ...
|
|
2655
|
-
|
|
2656
|
-
def is_64(file: str) -> bool: ...
|
|
2657
|
-
|
|
2658
|
-
def is_fat(file: str) -> bool: ...
|
|
2659
|
-
|
|
2660
|
-
class it_data_in_code_entries:
|
|
2661
|
-
def __getitem__(self, arg: int, /) -> DataCodeEntry: ...
|
|
2662
|
-
|
|
2663
|
-
def __len__(self) -> int: ...
|
|
2664
|
-
|
|
2665
|
-
def __iter__(self) -> it_data_in_code_entries: ...
|
|
2666
|
-
|
|
2667
|
-
def __next__(self) -> DataCodeEntry: ...
|
|
2668
|
-
|
|
2669
|
-
@overload
|
|
2670
|
-
def parse(filename: str, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
2671
|
-
|
|
2672
|
-
@overload
|
|
2673
|
-
def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
2674
|
-
|
|
2675
|
-
@overload
|
|
2676
|
-
def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
2677
|
-
|
|
2678
|
-
def parse_from_memory(address: int, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|