lief 0.16.5__cp312-cp312-win32.whl → 0.16.7__cp312-cp312-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/DEX/__init__.pyi +159 -159
- lief/ELF/__init__.pyi +2393 -2393
- lief/MachO/__init__.pyi +1481 -1479
- lief/OAT/__init__.pyi +153 -150
- lief/PE/__init__.pyi +2153 -2153
- lief/VDEX/__init__.pyi +10 -8
- lief/__init__.pyi +268 -263
- lief/_lief.pyd +0 -0
- lief/assembly/aarch64/__init__.pyi +14 -14
- lief/assembly/aarch64/operands/__init__.pyi +5 -5
- lief/assembly/arm/__init__.pyi +5 -5
- lief/assembly/ebpf/__init__.pyi +5 -5
- lief/assembly/mips/__init__.pyi +5 -5
- lief/assembly/powerpc/__init__.pyi +5 -5
- lief/assembly/riscv/__init__.pyi +5 -5
- lief/assembly/x86/__init__.pyi +14 -14
- lief/assembly/x86/operands/__init__.pyi +5 -5
- lief/dsc/__init__.pyi +26 -24
- lief/dwarf/__init__.pyi +149 -148
- 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 +44 -44
- lief/pdb/types/__init__.pyi +22 -22
- {lief-0.16.5.dist-info → lief-0.16.7.dist-info}/METADATA +1 -1
- lief-0.16.7.dist-info/RECORD +33 -0
- lief-0.16.5.dist-info/RECORD +0 -33
- {lief-0.16.5.dist-info → lief-0.16.7.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
|
+
FAT_MAGIC = 3405691582
|
|
38
32
|
|
|
39
|
-
|
|
33
|
+
FAT_CIGAM = 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,987 +50,1070 @@ 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
|
-
def thread_command(self) -> ThreadCommand: ...
|
|
273
|
-
|
|
274
|
-
@property
|
|
275
|
-
def has_rpath(self) -> bool: ...
|
|
233
|
+
PTR_ARM64E_KERNEL = 7
|
|
276
234
|
|
|
277
|
-
|
|
278
|
-
def rpath(self) -> RPathCommand: ...
|
|
235
|
+
PTR_64_KERNEL_CACHE = 8
|
|
279
236
|
|
|
280
|
-
|
|
281
|
-
def rpaths(self) -> Binary.it_rpaths: ...
|
|
237
|
+
PTR_ARM64E_USERLAND = 9
|
|
282
238
|
|
|
283
|
-
|
|
284
|
-
def has_symbol_command(self) -> bool: ...
|
|
239
|
+
PTR_ARM64E_FIRMWARE = 10
|
|
285
240
|
|
|
286
|
-
|
|
287
|
-
def symbol_command(self) -> SymbolCommand: ...
|
|
241
|
+
PTR_X86_64_KERNEL_CACHE = 11
|
|
288
242
|
|
|
289
|
-
|
|
290
|
-
def has_dynamic_symbol_command(self) -> bool: ...
|
|
243
|
+
PTR_ARM64E_USERLAND24 = 12
|
|
291
244
|
|
|
292
|
-
|
|
293
|
-
def
|
|
245
|
+
class ParserConfig:
|
|
246
|
+
def __init__(self) -> None: ...
|
|
294
247
|
|
|
295
|
-
|
|
296
|
-
def has_code_signature(self) -> bool: ...
|
|
248
|
+
parse_dyld_exports: bool
|
|
297
249
|
|
|
298
|
-
|
|
299
|
-
def code_signature(self) -> CodeSignature: ...
|
|
250
|
+
parse_dyld_bindings: bool
|
|
300
251
|
|
|
301
|
-
|
|
302
|
-
def has_code_signature_dir(self) -> bool: ...
|
|
252
|
+
parse_dyld_rebases: bool
|
|
303
253
|
|
|
304
|
-
|
|
305
|
-
def code_signature_dir(self) -> CodeSignatureDir: ...
|
|
254
|
+
fix_from_memory: bool
|
|
306
255
|
|
|
307
|
-
|
|
308
|
-
def has_data_in_code(self) -> bool: ...
|
|
256
|
+
from_dyld_shared_cache: bool
|
|
309
257
|
|
|
310
|
-
|
|
311
|
-
def data_in_code(self) -> DataInCode: ...
|
|
258
|
+
def full_dyldinfo(self, flag: bool) -> ParserConfig: ...
|
|
312
259
|
|
|
313
|
-
|
|
314
|
-
def has_segment_split_info(self) -> bool: ...
|
|
260
|
+
deep: ParserConfig = ...
|
|
315
261
|
|
|
316
|
-
|
|
317
|
-
def segment_split_info(self) -> SegmentSplitInfo: ...
|
|
262
|
+
quick: ParserConfig = ...
|
|
318
263
|
|
|
319
|
-
|
|
320
|
-
|
|
264
|
+
@overload
|
|
265
|
+
def parse(filename: str, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
321
266
|
|
|
322
|
-
|
|
323
|
-
|
|
267
|
+
@overload
|
|
268
|
+
def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
324
269
|
|
|
325
|
-
|
|
326
|
-
|
|
270
|
+
@overload
|
|
271
|
+
def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
327
272
|
|
|
328
|
-
|
|
329
|
-
def sub_framework(self) -> SubFramework: ...
|
|
273
|
+
def parse_from_memory(address: int, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
330
274
|
|
|
331
|
-
|
|
332
|
-
|
|
275
|
+
class ChainedPointerAnalysis:
|
|
276
|
+
class dyld_chained_ptr_arm64e_rebase_t:
|
|
277
|
+
@property
|
|
278
|
+
def unpack_target(self) -> int: ...
|
|
333
279
|
|
|
334
|
-
|
|
335
|
-
|
|
280
|
+
@property
|
|
281
|
+
def target(self) -> int: ...
|
|
336
282
|
|
|
337
|
-
|
|
338
|
-
|
|
283
|
+
@property
|
|
284
|
+
def high8(self) -> int: ...
|
|
339
285
|
|
|
340
|
-
|
|
341
|
-
|
|
286
|
+
@property
|
|
287
|
+
def next(self) -> int: ...
|
|
342
288
|
|
|
343
|
-
|
|
344
|
-
|
|
289
|
+
@property
|
|
290
|
+
def bind(self) -> bool: ...
|
|
345
291
|
|
|
346
|
-
|
|
347
|
-
|
|
292
|
+
@property
|
|
293
|
+
def auth(self) -> bool: ...
|
|
348
294
|
|
|
349
|
-
|
|
350
|
-
def is_ios(self) -> bool: ...
|
|
295
|
+
def __str__(self) -> str: ...
|
|
351
296
|
|
|
352
|
-
|
|
353
|
-
|
|
297
|
+
class dyld_chained_ptr_arm64e_bind_t:
|
|
298
|
+
@property
|
|
299
|
+
def ordinal(self) -> int: ...
|
|
354
300
|
|
|
355
|
-
|
|
356
|
-
|
|
301
|
+
@property
|
|
302
|
+
def zero(self) -> int: ...
|
|
357
303
|
|
|
358
|
-
|
|
359
|
-
|
|
304
|
+
@property
|
|
305
|
+
def addend(self) -> int: ...
|
|
360
306
|
|
|
361
|
-
|
|
362
|
-
|
|
307
|
+
@property
|
|
308
|
+
def next(self) -> int: ...
|
|
363
309
|
|
|
364
|
-
|
|
365
|
-
|
|
310
|
+
@property
|
|
311
|
+
def bind(self) -> bool: ...
|
|
366
312
|
|
|
367
|
-
|
|
368
|
-
|
|
313
|
+
@property
|
|
314
|
+
def auth(self) -> bool: ...
|
|
369
315
|
|
|
370
|
-
|
|
371
|
-
def has_two_level_hints(self) -> bool: ...
|
|
316
|
+
def __str__(self) -> str: ...
|
|
372
317
|
|
|
373
|
-
|
|
374
|
-
|
|
318
|
+
class dyld_chained_ptr_arm64e_auth_rebase_t:
|
|
319
|
+
@property
|
|
320
|
+
def target(self) -> int: ...
|
|
375
321
|
|
|
376
|
-
|
|
377
|
-
|
|
322
|
+
@property
|
|
323
|
+
def diversity(self) -> int: ...
|
|
378
324
|
|
|
379
|
-
|
|
380
|
-
|
|
325
|
+
@property
|
|
326
|
+
def addr_div(self) -> int: ...
|
|
381
327
|
|
|
382
|
-
|
|
328
|
+
@property
|
|
329
|
+
def key(self) -> int: ...
|
|
383
330
|
|
|
384
|
-
|
|
331
|
+
@property
|
|
332
|
+
def next(self) -> int: ...
|
|
385
333
|
|
|
386
|
-
|
|
387
|
-
|
|
334
|
+
@property
|
|
335
|
+
def bind(self) -> bool: ...
|
|
388
336
|
|
|
389
|
-
|
|
390
|
-
|
|
337
|
+
@property
|
|
338
|
+
def auth(self) -> int: ...
|
|
391
339
|
|
|
392
|
-
|
|
340
|
+
def __str__(self) -> str: ...
|
|
393
341
|
|
|
394
|
-
|
|
342
|
+
class dyld_chained_ptr_arm64e_auth_bind_t:
|
|
343
|
+
@property
|
|
344
|
+
def ordinal(self) -> int: ...
|
|
395
345
|
|
|
396
|
-
|
|
397
|
-
|
|
346
|
+
@property
|
|
347
|
+
def zero(self) -> int: ...
|
|
398
348
|
|
|
399
|
-
|
|
400
|
-
|
|
349
|
+
@property
|
|
350
|
+
def diversity(self) -> int: ...
|
|
401
351
|
|
|
402
|
-
|
|
352
|
+
@property
|
|
353
|
+
def addr_div(self) -> int: ...
|
|
403
354
|
|
|
404
|
-
|
|
405
|
-
|
|
355
|
+
@property
|
|
356
|
+
def key(self) -> int: ...
|
|
406
357
|
|
|
407
|
-
|
|
408
|
-
|
|
358
|
+
@property
|
|
359
|
+
def next(self) -> int: ...
|
|
409
360
|
|
|
410
|
-
|
|
411
|
-
|
|
361
|
+
@property
|
|
362
|
+
def bind(self) -> bool: ...
|
|
412
363
|
|
|
413
|
-
|
|
414
|
-
|
|
364
|
+
@property
|
|
365
|
+
def auth(self) -> bool: ...
|
|
415
366
|
|
|
416
|
-
|
|
417
|
-
def add(self, load_command: LoadCommand) -> LoadCommand: ...
|
|
367
|
+
def __str__(self) -> str: ...
|
|
418
368
|
|
|
419
|
-
|
|
420
|
-
|
|
369
|
+
class dyld_chained_ptr_64_rebase_t:
|
|
370
|
+
@property
|
|
371
|
+
def unpack_target(self) -> int: ...
|
|
421
372
|
|
|
422
|
-
|
|
423
|
-
|
|
373
|
+
@property
|
|
374
|
+
def target(self) -> int: ...
|
|
424
375
|
|
|
425
|
-
|
|
426
|
-
|
|
376
|
+
@property
|
|
377
|
+
def high8(self) -> int: ...
|
|
427
378
|
|
|
428
|
-
|
|
429
|
-
|
|
379
|
+
@property
|
|
380
|
+
def reserved(self) -> int: ...
|
|
430
381
|
|
|
431
|
-
|
|
382
|
+
@property
|
|
383
|
+
def next(self) -> int: ...
|
|
432
384
|
|
|
433
|
-
|
|
434
|
-
|
|
385
|
+
@property
|
|
386
|
+
def bind(self) -> bool: ...
|
|
435
387
|
|
|
436
|
-
|
|
437
|
-
def remove_section(self, segname: str, secname: str, clear: bool = False) -> None: ...
|
|
388
|
+
def __str__(self) -> str: ...
|
|
438
389
|
|
|
439
|
-
|
|
390
|
+
class dyld_chained_ptr_arm64e_bind24_t:
|
|
391
|
+
@property
|
|
392
|
+
def ordinal(self) -> int: ...
|
|
440
393
|
|
|
441
|
-
|
|
394
|
+
@property
|
|
395
|
+
def zero(self) -> int: ...
|
|
442
396
|
|
|
443
|
-
|
|
397
|
+
@property
|
|
398
|
+
def addend(self) -> int: ...
|
|
444
399
|
|
|
445
|
-
|
|
400
|
+
@property
|
|
401
|
+
def next(self) -> int: ...
|
|
446
402
|
|
|
447
|
-
|
|
448
|
-
|
|
403
|
+
@property
|
|
404
|
+
def bind(self) -> bool: ...
|
|
449
405
|
|
|
450
|
-
|
|
451
|
-
|
|
406
|
+
@property
|
|
407
|
+
def auth(self) -> bool: ...
|
|
452
408
|
|
|
453
|
-
|
|
409
|
+
def __str__(self) -> str: ...
|
|
454
410
|
|
|
455
|
-
|
|
411
|
+
class dyld_chained_ptr_arm64e_auth_bind24_t:
|
|
412
|
+
@property
|
|
413
|
+
def ordinal(self) -> int: ...
|
|
456
414
|
|
|
457
|
-
|
|
458
|
-
|
|
415
|
+
@property
|
|
416
|
+
def zero(self) -> int: ...
|
|
459
417
|
|
|
460
|
-
|
|
461
|
-
|
|
418
|
+
@property
|
|
419
|
+
def diversity(self) -> int: ...
|
|
462
420
|
|
|
463
|
-
|
|
421
|
+
@property
|
|
422
|
+
def addr_div(self) -> int: ...
|
|
464
423
|
|
|
465
|
-
|
|
424
|
+
@property
|
|
425
|
+
def key(self) -> int: ...
|
|
466
426
|
|
|
467
|
-
|
|
427
|
+
@property
|
|
428
|
+
def next(self) -> int: ...
|
|
468
429
|
|
|
469
|
-
|
|
470
|
-
|
|
430
|
+
@property
|
|
431
|
+
def bind(self) -> bool: ...
|
|
471
432
|
|
|
472
|
-
|
|
473
|
-
|
|
433
|
+
@property
|
|
434
|
+
def auth(self) -> bool: ...
|
|
474
435
|
|
|
475
|
-
|
|
436
|
+
def __str__(self) -> str: ...
|
|
476
437
|
|
|
477
|
-
|
|
438
|
+
class dyld_chained_ptr_64_bind_t:
|
|
439
|
+
@property
|
|
440
|
+
def ordinal(self) -> int: ...
|
|
478
441
|
|
|
479
|
-
|
|
442
|
+
@property
|
|
443
|
+
def addend(self) -> int: ...
|
|
480
444
|
|
|
481
|
-
|
|
445
|
+
@property
|
|
446
|
+
def reserved(self) -> int: ...
|
|
482
447
|
|
|
483
|
-
|
|
484
|
-
|
|
448
|
+
@property
|
|
449
|
+
def next(self) -> int: ...
|
|
485
450
|
|
|
486
|
-
|
|
487
|
-
|
|
451
|
+
@property
|
|
452
|
+
def bind(self) -> bool: ...
|
|
488
453
|
|
|
489
|
-
|
|
490
|
-
def symbol_stubs(self) -> Sequence[Stub]: ...
|
|
454
|
+
def __str__(self) -> str: ...
|
|
491
455
|
|
|
492
|
-
|
|
493
|
-
|
|
456
|
+
class dyld_chained_ptr_64_kernel_cache_rebase_t:
|
|
457
|
+
@property
|
|
458
|
+
def ordinal(self) -> int: ...
|
|
494
459
|
|
|
495
|
-
|
|
496
|
-
|
|
460
|
+
@property
|
|
461
|
+
def cache_level(self) -> int: ...
|
|
497
462
|
|
|
498
|
-
|
|
499
|
-
|
|
463
|
+
@property
|
|
464
|
+
def diversity(self) -> int: ...
|
|
500
465
|
|
|
501
|
-
|
|
502
|
-
|
|
466
|
+
@property
|
|
467
|
+
def addr_div(self) -> int: ...
|
|
503
468
|
|
|
504
|
-
|
|
469
|
+
@property
|
|
470
|
+
def key(self) -> int: ...
|
|
505
471
|
|
|
506
|
-
|
|
472
|
+
@property
|
|
473
|
+
def next(self) -> int: ...
|
|
507
474
|
|
|
508
|
-
|
|
509
|
-
|
|
475
|
+
@property
|
|
476
|
+
def is_auth(self) -> bool: ...
|
|
510
477
|
|
|
511
|
-
|
|
478
|
+
def __str__(self) -> str: ...
|
|
512
479
|
|
|
513
|
-
class
|
|
514
|
-
|
|
480
|
+
class dyld_chained_ptr_32_rebase_t:
|
|
481
|
+
@property
|
|
482
|
+
def target(self) -> int: ...
|
|
515
483
|
|
|
516
|
-
|
|
484
|
+
@property
|
|
485
|
+
def next(self) -> int: ...
|
|
517
486
|
|
|
518
|
-
|
|
487
|
+
@property
|
|
488
|
+
def bind(self) -> int: ...
|
|
519
489
|
|
|
520
|
-
|
|
490
|
+
def __str__(self) -> str: ...
|
|
491
|
+
|
|
492
|
+
class dyld_chained_ptr_32_bind_t:
|
|
493
|
+
@property
|
|
494
|
+
def ordinal(self) -> int: ...
|
|
495
|
+
|
|
496
|
+
@property
|
|
497
|
+
def addend(self) -> int: ...
|
|
498
|
+
|
|
499
|
+
@property
|
|
500
|
+
def next(self) -> int: ...
|
|
501
|
+
|
|
502
|
+
@property
|
|
503
|
+
def bind(self) -> bool: ...
|
|
504
|
+
|
|
505
|
+
def __str__(self) -> str: ...
|
|
506
|
+
|
|
507
|
+
class dyld_chained_ptr_32_cache_rebase_t:
|
|
508
|
+
@property
|
|
509
|
+
def target(self) -> int: ...
|
|
510
|
+
|
|
511
|
+
@property
|
|
512
|
+
def next(self) -> int: ...
|
|
513
|
+
|
|
514
|
+
def __str__(self) -> str: ...
|
|
515
|
+
|
|
516
|
+
class dyld_chained_ptr_32_firmware_rebase_t:
|
|
517
|
+
@property
|
|
518
|
+
def target(self) -> int: ...
|
|
519
|
+
|
|
520
|
+
@property
|
|
521
|
+
def next(self) -> int: ...
|
|
522
|
+
|
|
523
|
+
def __str__(self) -> str: ...
|
|
524
|
+
|
|
525
|
+
@staticmethod
|
|
526
|
+
def stride(fmt: DYLD_CHAINED_PTR_FORMAT) -> int: ...
|
|
527
|
+
|
|
528
|
+
@staticmethod
|
|
529
|
+
def from_value(ptr: int, size: int) -> Optional[ChainedPointerAnalysis]: ...
|
|
521
530
|
|
|
522
531
|
@property
|
|
523
|
-
def
|
|
532
|
+
def value(self) -> int: ...
|
|
524
533
|
|
|
525
534
|
@property
|
|
526
|
-
def
|
|
535
|
+
def size(self) -> int: ...
|
|
527
536
|
|
|
528
537
|
@property
|
|
529
|
-
def
|
|
538
|
+
def dyld_chained_ptr_arm64e_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_rebase_t: ...
|
|
530
539
|
|
|
531
540
|
@property
|
|
532
|
-
def
|
|
541
|
+
def dyld_chained_ptr_arm64e_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind_t: ...
|
|
533
542
|
|
|
534
543
|
@property
|
|
535
|
-
def
|
|
544
|
+
def dyld_chained_ptr_arm64e_auth_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_rebase_t: ...
|
|
536
545
|
|
|
537
546
|
@property
|
|
538
|
-
def
|
|
547
|
+
def dyld_chained_ptr_arm64e_auth_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind_t: ...
|
|
539
548
|
|
|
540
|
-
|
|
549
|
+
@property
|
|
550
|
+
def dyld_chained_ptr_64_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_rebase_t: ...
|
|
541
551
|
|
|
542
|
-
class BuildToolVersion(lief.Object):
|
|
543
552
|
@property
|
|
544
|
-
def
|
|
553
|
+
def dyld_chained_ptr_arm64e_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind24_t: ...
|
|
545
554
|
|
|
546
555
|
@property
|
|
547
|
-
def
|
|
556
|
+
def dyld_chained_ptr_arm64e_auth_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind24_t: ...
|
|
548
557
|
|
|
549
|
-
|
|
558
|
+
@property
|
|
559
|
+
def dyld_chained_ptr_64_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_bind_t: ...
|
|
550
560
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
def from_value(arg: int, /) -> BuildToolVersion.TOOLS: ...
|
|
561
|
+
@property
|
|
562
|
+
def dyld_chained_ptr_64_kernel_cache_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_kernel_cache_rebase_t: ...
|
|
554
563
|
|
|
555
|
-
|
|
564
|
+
@property
|
|
565
|
+
def dyld_chained_ptr_32_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_rebase_t: ...
|
|
556
566
|
|
|
557
|
-
|
|
567
|
+
@property
|
|
568
|
+
def dyld_chained_ptr_32_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_bind_t: ...
|
|
558
569
|
|
|
559
|
-
|
|
570
|
+
@property
|
|
571
|
+
def dyld_chained_ptr_32_cache_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_cache_rebase_t: ...
|
|
560
572
|
|
|
561
|
-
|
|
573
|
+
@property
|
|
574
|
+
def dyld_chained_ptr_32_firmware_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_firmware_rebase_t: ...
|
|
562
575
|
|
|
563
|
-
|
|
576
|
+
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, int, None]: ...
|
|
564
577
|
|
|
565
|
-
|
|
578
|
+
class FatBinary:
|
|
579
|
+
class it_binaries:
|
|
580
|
+
def __getitem__(self, arg: int, /) -> Binary: ...
|
|
566
581
|
|
|
567
|
-
|
|
582
|
+
def __len__(self) -> int: ...
|
|
568
583
|
|
|
569
|
-
|
|
584
|
+
def __iter__(self) -> FatBinary.it_binaries: ...
|
|
570
585
|
|
|
571
|
-
|
|
572
|
-
class PLATFORMS(enum.Enum):
|
|
573
|
-
@staticmethod
|
|
574
|
-
def from_value(arg: int, /) -> BuildVersion.PLATFORMS: ...
|
|
586
|
+
def __next__(self) -> Binary: ...
|
|
575
587
|
|
|
576
|
-
|
|
588
|
+
@property
|
|
589
|
+
def size(self) -> int: ...
|
|
577
590
|
|
|
578
|
-
|
|
591
|
+
def at(self, index: int) -> Binary: ...
|
|
579
592
|
|
|
580
|
-
|
|
593
|
+
def take(self, cpu: Header.CPU_TYPE) -> Optional[Binary]: ...
|
|
581
594
|
|
|
582
|
-
|
|
595
|
+
def write(self, filename: str) -> None: ...
|
|
583
596
|
|
|
584
|
-
|
|
597
|
+
def raw(self) -> list[int]: ...
|
|
585
598
|
|
|
586
|
-
|
|
599
|
+
def __len__(self) -> int: ...
|
|
587
600
|
|
|
588
|
-
|
|
601
|
+
def __getitem__(self, arg: int, /) -> Binary: ...
|
|
589
602
|
|
|
590
|
-
|
|
603
|
+
def __iter__(self) -> FatBinary.it_binaries: ...
|
|
591
604
|
|
|
592
|
-
|
|
605
|
+
def __str__(self) -> str: ...
|
|
593
606
|
|
|
594
|
-
|
|
607
|
+
class Binary(lief.Binary):
|
|
608
|
+
class it_commands:
|
|
609
|
+
def __getitem__(self, arg: int, /) -> LoadCommand: ...
|
|
595
610
|
|
|
596
|
-
|
|
611
|
+
def __len__(self) -> int: ...
|
|
597
612
|
|
|
598
|
-
|
|
613
|
+
def __iter__(self) -> Binary.it_commands: ...
|
|
599
614
|
|
|
600
|
-
|
|
615
|
+
def __next__(self) -> LoadCommand: ...
|
|
601
616
|
|
|
602
|
-
|
|
617
|
+
class it_symbols:
|
|
618
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
603
619
|
|
|
604
|
-
|
|
620
|
+
def __len__(self) -> int: ...
|
|
605
621
|
|
|
606
|
-
|
|
622
|
+
def __iter__(self) -> Binary.it_symbols: ...
|
|
607
623
|
|
|
608
|
-
|
|
624
|
+
def __next__(self) -> Symbol: ...
|
|
609
625
|
|
|
610
|
-
|
|
626
|
+
class it_filter_symbols:
|
|
627
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
611
628
|
|
|
612
|
-
|
|
629
|
+
def __len__(self) -> int: ...
|
|
613
630
|
|
|
614
|
-
|
|
631
|
+
def __iter__(self) -> Binary.it_filter_symbols: ...
|
|
615
632
|
|
|
616
|
-
|
|
633
|
+
def __next__(self) -> Symbol: ...
|
|
617
634
|
|
|
618
|
-
|
|
635
|
+
class it_sections:
|
|
636
|
+
def __getitem__(self, arg: int, /) -> Section: ...
|
|
619
637
|
|
|
620
|
-
|
|
621
|
-
def tools(self) -> list[BuildToolVersion]: ...
|
|
638
|
+
def __len__(self) -> int: ...
|
|
622
639
|
|
|
623
|
-
|
|
640
|
+
def __iter__(self) -> Binary.it_sections: ...
|
|
624
641
|
|
|
625
|
-
|
|
626
|
-
class config_t:
|
|
627
|
-
def __init__(self) -> None: ...
|
|
642
|
+
def __next__(self) -> Section: ...
|
|
628
643
|
|
|
629
|
-
|
|
644
|
+
class it_segments:
|
|
645
|
+
def __getitem__(self, arg: int, /) -> SegmentCommand: ...
|
|
630
646
|
|
|
631
|
-
|
|
632
|
-
@staticmethod
|
|
633
|
-
def write(binary: Binary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
647
|
+
def __len__(self) -> int: ...
|
|
634
648
|
|
|
635
|
-
|
|
636
|
-
@staticmethod
|
|
637
|
-
def write(binary: Binary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
649
|
+
def __iter__(self) -> Binary.it_segments: ...
|
|
638
650
|
|
|
639
|
-
|
|
640
|
-
@staticmethod
|
|
641
|
-
def write(fat_binary: FatBinary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
651
|
+
def __next__(self) -> SegmentCommand: ...
|
|
642
652
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
def write(fat_binary: FatBinary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
653
|
+
class it_libraries:
|
|
654
|
+
def __getitem__(self, arg: int, /) -> DylibCommand: ...
|
|
646
655
|
|
|
647
|
-
|
|
648
|
-
@property
|
|
649
|
-
def format(self) -> DYLD_CHAINED_FORMAT: ...
|
|
656
|
+
def __len__(self) -> int: ...
|
|
650
657
|
|
|
651
|
-
|
|
652
|
-
def ptr_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
658
|
+
def __iter__(self) -> Binary.it_libraries: ...
|
|
653
659
|
|
|
654
|
-
|
|
660
|
+
def __next__(self) -> DylibCommand: ...
|
|
655
661
|
|
|
656
|
-
|
|
657
|
-
|
|
662
|
+
class it_relocations:
|
|
663
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
658
664
|
|
|
659
|
-
|
|
665
|
+
def __len__(self) -> int: ...
|
|
660
666
|
|
|
661
|
-
|
|
662
|
-
class dyld_chained_ptr_arm64e_rebase_t:
|
|
663
|
-
@property
|
|
664
|
-
def unpack_target(self) -> int: ...
|
|
667
|
+
def __iter__(self) -> Binary.it_relocations: ...
|
|
665
668
|
|
|
666
|
-
|
|
667
|
-
def target(self) -> int: ...
|
|
669
|
+
def __next__(self) -> Relocation: ...
|
|
668
670
|
|
|
669
|
-
|
|
670
|
-
def
|
|
671
|
+
class it_rpaths:
|
|
672
|
+
def __getitem__(self, arg: int, /) -> RPathCommand: ...
|
|
671
673
|
|
|
672
|
-
|
|
673
|
-
def next(self) -> int: ...
|
|
674
|
+
def __len__(self) -> int: ...
|
|
674
675
|
|
|
675
|
-
|
|
676
|
-
def bind(self) -> bool: ...
|
|
676
|
+
def __iter__(self) -> Binary.it_rpaths: ...
|
|
677
677
|
|
|
678
|
-
|
|
679
|
-
def auth(self) -> bool: ...
|
|
678
|
+
def __next__(self) -> RPathCommand: ...
|
|
680
679
|
|
|
681
|
-
|
|
680
|
+
class it_sub_clients:
|
|
681
|
+
def __getitem__(self, arg: int, /) -> SubClient: ...
|
|
682
682
|
|
|
683
|
-
|
|
684
|
-
@property
|
|
685
|
-
def ordinal(self) -> int: ...
|
|
683
|
+
def __len__(self) -> int: ...
|
|
686
684
|
|
|
687
|
-
|
|
688
|
-
def zero(self) -> int: ...
|
|
685
|
+
def __iter__(self) -> Binary.it_sub_clients: ...
|
|
689
686
|
|
|
690
|
-
|
|
691
|
-
def addend(self) -> int: ...
|
|
687
|
+
def __next__(self) -> SubClient: ...
|
|
692
688
|
|
|
693
|
-
|
|
694
|
-
|
|
689
|
+
class range_t:
|
|
690
|
+
start: int
|
|
695
691
|
|
|
696
|
-
|
|
697
|
-
def bind(self) -> bool: ...
|
|
692
|
+
end: int
|
|
698
693
|
|
|
699
|
-
|
|
700
|
-
|
|
694
|
+
@property
|
|
695
|
+
def header(self) -> Header: ... # type: ignore
|
|
701
696
|
|
|
702
|
-
|
|
697
|
+
@property
|
|
698
|
+
def sections(self) -> Binary.it_sections: ... # type: ignore
|
|
703
699
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
def target(self) -> int: ...
|
|
700
|
+
@property
|
|
701
|
+
def relocations(self) -> Binary.it_relocations: ... # type: ignore
|
|
707
702
|
|
|
708
|
-
|
|
709
|
-
|
|
703
|
+
@property
|
|
704
|
+
def segments(self) -> Binary.it_segments: ...
|
|
710
705
|
|
|
711
|
-
|
|
712
|
-
|
|
706
|
+
@property
|
|
707
|
+
def libraries(self) -> Binary.it_libraries: ... # type: ignore
|
|
713
708
|
|
|
714
|
-
|
|
715
|
-
|
|
709
|
+
@property
|
|
710
|
+
def symbols(self) -> Binary.it_symbols: ... # type: ignore
|
|
716
711
|
|
|
717
|
-
|
|
718
|
-
def next(self) -> int: ...
|
|
712
|
+
def has_symbol(self, name: str) -> bool: ...
|
|
719
713
|
|
|
720
|
-
|
|
721
|
-
def bind(self) -> bool: ...
|
|
714
|
+
def get_symbol(self, name: str) -> Symbol: ...
|
|
722
715
|
|
|
723
|
-
|
|
724
|
-
|
|
716
|
+
@property
|
|
717
|
+
def imported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
725
718
|
|
|
726
|
-
|
|
719
|
+
@property
|
|
720
|
+
def exported_symbols(self) -> Binary.it_filter_symbols: ...
|
|
727
721
|
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
def ordinal(self) -> int: ...
|
|
722
|
+
@property
|
|
723
|
+
def commands(self) -> Binary.it_commands: ...
|
|
731
724
|
|
|
732
|
-
|
|
733
|
-
|
|
725
|
+
@property
|
|
726
|
+
def filesets(self) -> FatBinary.it_binaries: ...
|
|
734
727
|
|
|
735
|
-
|
|
736
|
-
|
|
728
|
+
@property
|
|
729
|
+
def has_filesets(self) -> bool: ...
|
|
737
730
|
|
|
738
|
-
|
|
739
|
-
|
|
731
|
+
@property
|
|
732
|
+
def fileset_name(self) -> str: ...
|
|
740
733
|
|
|
741
|
-
|
|
742
|
-
|
|
734
|
+
@property
|
|
735
|
+
def imagebase(self) -> int: ...
|
|
743
736
|
|
|
744
|
-
|
|
745
|
-
|
|
737
|
+
@property
|
|
738
|
+
def virtual_size(self) -> int: ...
|
|
746
739
|
|
|
747
|
-
|
|
748
|
-
|
|
740
|
+
@property
|
|
741
|
+
def fat_offset(self) -> int: ...
|
|
749
742
|
|
|
750
|
-
|
|
751
|
-
def auth(self) -> bool: ...
|
|
743
|
+
def section_from_offset(self, arg: int, /) -> Section: ...
|
|
752
744
|
|
|
753
|
-
|
|
745
|
+
def section_from_virtual_address(self, arg: int, /) -> Section: ...
|
|
754
746
|
|
|
755
|
-
|
|
756
|
-
@property
|
|
757
|
-
def unpack_target(self) -> int: ...
|
|
747
|
+
def segment_from_offset(self, arg: int, /) -> SegmentCommand: ...
|
|
758
748
|
|
|
759
|
-
|
|
760
|
-
def target(self) -> int: ...
|
|
749
|
+
def segment_from_virtual_address(self, arg: int, /) -> SegmentCommand: ...
|
|
761
750
|
|
|
762
|
-
|
|
763
|
-
|
|
751
|
+
@property
|
|
752
|
+
def has_entrypoint(self) -> bool: ...
|
|
764
753
|
|
|
765
|
-
|
|
766
|
-
|
|
754
|
+
@property
|
|
755
|
+
def has_uuid(self) -> bool: ...
|
|
767
756
|
|
|
768
|
-
|
|
769
|
-
|
|
757
|
+
@property
|
|
758
|
+
def uuid(self) -> UUIDCommand: ...
|
|
770
759
|
|
|
771
|
-
|
|
772
|
-
|
|
760
|
+
@property
|
|
761
|
+
def has_main_command(self) -> bool: ...
|
|
773
762
|
|
|
774
|
-
|
|
763
|
+
@property
|
|
764
|
+
def main_command(self) -> MainCommand: ...
|
|
775
765
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
def ordinal(self) -> int: ...
|
|
766
|
+
@property
|
|
767
|
+
def has_dylinker(self) -> bool: ...
|
|
779
768
|
|
|
780
|
-
|
|
781
|
-
|
|
769
|
+
@property
|
|
770
|
+
def dylinker(self) -> DylinkerCommand: ...
|
|
782
771
|
|
|
783
|
-
|
|
784
|
-
|
|
772
|
+
@property
|
|
773
|
+
def has_dyld_info(self) -> bool: ...
|
|
785
774
|
|
|
786
|
-
|
|
787
|
-
|
|
775
|
+
@property
|
|
776
|
+
def dyld_info(self) -> DyldInfo: ...
|
|
788
777
|
|
|
789
|
-
|
|
790
|
-
|
|
778
|
+
@property
|
|
779
|
+
def has_function_starts(self) -> bool: ...
|
|
791
780
|
|
|
792
|
-
|
|
793
|
-
|
|
781
|
+
@property
|
|
782
|
+
def function_starts(self) -> FunctionStarts: ...
|
|
794
783
|
|
|
795
|
-
|
|
784
|
+
@property
|
|
785
|
+
def has_source_version(self) -> bool: ...
|
|
796
786
|
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
def ordinal(self) -> int: ...
|
|
787
|
+
@property
|
|
788
|
+
def source_version(self) -> SourceVersion: ...
|
|
800
789
|
|
|
801
|
-
|
|
802
|
-
|
|
790
|
+
@property
|
|
791
|
+
def has_version_min(self) -> bool: ...
|
|
803
792
|
|
|
804
|
-
|
|
805
|
-
|
|
793
|
+
@property
|
|
794
|
+
def version_min(self) -> VersionMin: ...
|
|
806
795
|
|
|
807
|
-
|
|
808
|
-
|
|
796
|
+
@property
|
|
797
|
+
def has_routine_command(self) -> bool: ...
|
|
809
798
|
|
|
810
|
-
|
|
811
|
-
|
|
799
|
+
@property
|
|
800
|
+
def routine_command(self) -> Routine: ...
|
|
812
801
|
|
|
813
|
-
|
|
814
|
-
|
|
802
|
+
@property
|
|
803
|
+
def has_thread_command(self) -> bool: ...
|
|
815
804
|
|
|
816
|
-
|
|
817
|
-
|
|
805
|
+
@property
|
|
806
|
+
def thread_command(self) -> ThreadCommand: ...
|
|
818
807
|
|
|
819
|
-
|
|
820
|
-
|
|
808
|
+
@property
|
|
809
|
+
def has_rpath(self) -> bool: ...
|
|
821
810
|
|
|
822
|
-
|
|
811
|
+
@property
|
|
812
|
+
def rpath(self) -> RPathCommand: ...
|
|
823
813
|
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
def ordinal(self) -> int: ...
|
|
814
|
+
@property
|
|
815
|
+
def rpaths(self) -> Binary.it_rpaths: ...
|
|
827
816
|
|
|
828
|
-
|
|
829
|
-
|
|
817
|
+
@property
|
|
818
|
+
def has_symbol_command(self) -> bool: ...
|
|
830
819
|
|
|
831
|
-
|
|
832
|
-
|
|
820
|
+
@property
|
|
821
|
+
def symbol_command(self) -> SymbolCommand: ...
|
|
833
822
|
|
|
834
|
-
|
|
835
|
-
|
|
823
|
+
@property
|
|
824
|
+
def has_dynamic_symbol_command(self) -> bool: ...
|
|
836
825
|
|
|
837
|
-
|
|
838
|
-
|
|
826
|
+
@property
|
|
827
|
+
def dynamic_symbol_command(self) -> DynamicSymbolCommand: ...
|
|
839
828
|
|
|
840
|
-
|
|
829
|
+
@property
|
|
830
|
+
def has_code_signature(self) -> bool: ...
|
|
841
831
|
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
def ordinal(self) -> int: ...
|
|
832
|
+
@property
|
|
833
|
+
def code_signature(self) -> CodeSignature: ...
|
|
845
834
|
|
|
846
|
-
|
|
847
|
-
|
|
835
|
+
@property
|
|
836
|
+
def has_code_signature_dir(self) -> bool: ...
|
|
848
837
|
|
|
849
|
-
|
|
850
|
-
|
|
838
|
+
@property
|
|
839
|
+
def code_signature_dir(self) -> CodeSignatureDir: ...
|
|
851
840
|
|
|
852
|
-
|
|
853
|
-
|
|
841
|
+
@property
|
|
842
|
+
def has_data_in_code(self) -> bool: ...
|
|
854
843
|
|
|
855
|
-
|
|
856
|
-
|
|
844
|
+
@property
|
|
845
|
+
def data_in_code(self) -> DataInCode: ...
|
|
857
846
|
|
|
858
|
-
|
|
859
|
-
|
|
847
|
+
@property
|
|
848
|
+
def has_segment_split_info(self) -> bool: ...
|
|
860
849
|
|
|
861
|
-
|
|
862
|
-
|
|
850
|
+
@property
|
|
851
|
+
def segment_split_info(self) -> SegmentSplitInfo: ...
|
|
863
852
|
|
|
864
|
-
|
|
853
|
+
@property
|
|
854
|
+
def subclients(self) -> Binary.it_sub_clients: ...
|
|
865
855
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
def target(self) -> int: ...
|
|
856
|
+
@property
|
|
857
|
+
def has_subclients(self) -> bool: ...
|
|
869
858
|
|
|
870
|
-
|
|
871
|
-
|
|
859
|
+
@property
|
|
860
|
+
def has_sub_framework(self) -> bool: ...
|
|
872
861
|
|
|
873
|
-
|
|
874
|
-
|
|
862
|
+
@property
|
|
863
|
+
def sub_framework(self) -> SubFramework: ...
|
|
864
|
+
|
|
865
|
+
@property
|
|
866
|
+
def has_dyld_environment(self) -> bool: ...
|
|
867
|
+
|
|
868
|
+
@property
|
|
869
|
+
def dyld_environment(self) -> DyldEnvironment: ...
|
|
870
|
+
|
|
871
|
+
@property
|
|
872
|
+
def has_encryption_info(self) -> bool: ...
|
|
873
|
+
|
|
874
|
+
@property
|
|
875
|
+
def encryption_info(self) -> EncryptionInfo: ...
|
|
876
|
+
|
|
877
|
+
@property
|
|
878
|
+
def has_build_version(self) -> bool: ...
|
|
879
|
+
|
|
880
|
+
@property
|
|
881
|
+
def platform(self) -> BuildVersion.PLATFORMS: ...
|
|
882
|
+
|
|
883
|
+
@property
|
|
884
|
+
def is_ios(self) -> bool: ...
|
|
885
|
+
|
|
886
|
+
@property
|
|
887
|
+
def is_macos(self) -> bool: ...
|
|
888
|
+
|
|
889
|
+
@property
|
|
890
|
+
def build_version(self) -> BuildVersion: ...
|
|
891
|
+
|
|
892
|
+
@property
|
|
893
|
+
def has_dyld_chained_fixups(self) -> bool: ...
|
|
894
|
+
|
|
895
|
+
@property
|
|
896
|
+
def dyld_chained_fixups(self) -> DyldChainedFixups: ...
|
|
897
|
+
|
|
898
|
+
@property
|
|
899
|
+
def has_dyld_exports_trie(self) -> bool: ...
|
|
900
|
+
|
|
901
|
+
@property
|
|
902
|
+
def dyld_exports_trie(self) -> DyldExportsTrie: ...
|
|
903
|
+
|
|
904
|
+
@property
|
|
905
|
+
def has_two_level_hints(self) -> bool: ...
|
|
906
|
+
|
|
907
|
+
@property
|
|
908
|
+
def two_level_hints(self) -> TwoLevelHints: ...
|
|
909
|
+
|
|
910
|
+
@property
|
|
911
|
+
def has_linker_opt_hint(self) -> bool: ...
|
|
912
|
+
|
|
913
|
+
@property
|
|
914
|
+
def linker_opt_hint(self) -> LinkerOptHint: ...
|
|
915
|
+
|
|
916
|
+
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
|
|
917
|
+
|
|
918
|
+
def has_section(self, name: str) -> bool: ...
|
|
919
|
+
|
|
920
|
+
@overload
|
|
921
|
+
def get_section(self, name: str) -> Section: ...
|
|
922
|
+
|
|
923
|
+
@overload
|
|
924
|
+
def get_section(self, segname: str, secname: str) -> Section: ...
|
|
925
|
+
|
|
926
|
+
def has_segment(self, name: str) -> bool: ...
|
|
927
|
+
|
|
928
|
+
def get_segment(self, name: str) -> SegmentCommand: ...
|
|
929
|
+
|
|
930
|
+
@property
|
|
931
|
+
def va_ranges(self) -> Binary.range_t: ...
|
|
932
|
+
|
|
933
|
+
@property
|
|
934
|
+
def off_ranges(self) -> Binary.range_t: ...
|
|
935
|
+
|
|
936
|
+
def is_valid_addr(self, address: int) -> bool: ...
|
|
937
|
+
|
|
938
|
+
@overload
|
|
939
|
+
def write(self, output: str) -> None: ...
|
|
940
|
+
|
|
941
|
+
@overload
|
|
942
|
+
def write(self, output: str, config: Builder.config_t) -> None: ...
|
|
943
|
+
|
|
944
|
+
@overload
|
|
945
|
+
def add(self, dylib_command: DylibCommand) -> LoadCommand: ...
|
|
946
|
+
|
|
947
|
+
@overload
|
|
948
|
+
def add(self, segment: SegmentCommand) -> LoadCommand: ...
|
|
949
|
+
|
|
950
|
+
@overload
|
|
951
|
+
def add(self, load_command: LoadCommand) -> LoadCommand: ...
|
|
952
|
+
|
|
953
|
+
@overload
|
|
954
|
+
def add(self, load_command: LoadCommand, index: int) -> LoadCommand: ...
|
|
955
|
+
|
|
956
|
+
@overload
|
|
957
|
+
def remove(self, load_command: LoadCommand) -> bool: ...
|
|
958
|
+
|
|
959
|
+
@overload
|
|
960
|
+
def remove(self, type: LoadCommand.TYPE) -> bool: ...
|
|
961
|
+
|
|
962
|
+
@overload
|
|
963
|
+
def remove(self, symbol: Symbol) -> bool: ...
|
|
875
964
|
|
|
876
|
-
|
|
965
|
+
def remove_command(self, index: int) -> bool: ...
|
|
877
966
|
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
def ordinal(self) -> int: ...
|
|
967
|
+
@overload
|
|
968
|
+
def remove_section(self, name: str, clear: bool = False) -> None: ...
|
|
881
969
|
|
|
882
|
-
|
|
883
|
-
|
|
970
|
+
@overload
|
|
971
|
+
def remove_section(self, segname: str, secname: str, clear: bool = False) -> None: ...
|
|
884
972
|
|
|
885
|
-
|
|
886
|
-
def next(self) -> int: ...
|
|
973
|
+
def remove_signature(self) -> bool: ...
|
|
887
974
|
|
|
888
|
-
|
|
889
|
-
def bind(self) -> bool: ...
|
|
975
|
+
def remove_symbol(self, name: str) -> bool: ...
|
|
890
976
|
|
|
891
|
-
|
|
977
|
+
def can_remove(self, symbol: Symbol) -> bool: ...
|
|
892
978
|
|
|
893
|
-
|
|
894
|
-
@property
|
|
895
|
-
def target(self) -> int: ...
|
|
979
|
+
def can_remove_symbol(self, symbol_name: str) -> bool: ...
|
|
896
980
|
|
|
897
|
-
|
|
898
|
-
|
|
981
|
+
@overload
|
|
982
|
+
def unexport(self, name: str) -> bool: ...
|
|
899
983
|
|
|
900
|
-
|
|
984
|
+
@overload
|
|
985
|
+
def unexport(self, symbol: Symbol) -> bool: ...
|
|
901
986
|
|
|
902
|
-
|
|
903
|
-
@property
|
|
904
|
-
def target(self) -> int: ...
|
|
987
|
+
def extend(self, load_command: LoadCommand, size: int) -> bool: ...
|
|
905
988
|
|
|
906
|
-
|
|
907
|
-
def next(self) -> int: ...
|
|
989
|
+
def extend_segment(self, segment_command: SegmentCommand, size: int) -> bool: ...
|
|
908
990
|
|
|
909
|
-
|
|
991
|
+
@overload
|
|
992
|
+
def add_section(self, segment: SegmentCommand, section: Section) -> Section: ...
|
|
910
993
|
|
|
911
|
-
@
|
|
912
|
-
def
|
|
994
|
+
@overload
|
|
995
|
+
def add_section(self, section: Section) -> Section: ...
|
|
913
996
|
|
|
914
|
-
|
|
915
|
-
def from_value(ptr: int, size: int) -> Optional[ChainedPointerAnalysis]: ...
|
|
997
|
+
def add_library(self, library_name: str) -> LoadCommand: ...
|
|
916
998
|
|
|
917
|
-
|
|
918
|
-
def value(self) -> int: ...
|
|
999
|
+
def get(self, type: LoadCommand.TYPE) -> LoadCommand: ...
|
|
919
1000
|
|
|
920
|
-
|
|
921
|
-
def size(self) -> int: ...
|
|
1001
|
+
def has(self, type: LoadCommand.TYPE) -> bool: ...
|
|
922
1002
|
|
|
923
1003
|
@property
|
|
924
|
-
def
|
|
1004
|
+
def unwind_functions(self) -> list[lief.Function]: ...
|
|
925
1005
|
|
|
926
1006
|
@property
|
|
927
|
-
def
|
|
1007
|
+
def functions(self) -> list[lief.Function]: ...
|
|
928
1008
|
|
|
929
|
-
|
|
930
|
-
def dyld_chained_ptr_arm64e_auth_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_rebase_t: ...
|
|
1009
|
+
def shift(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
931
1010
|
|
|
932
|
-
|
|
933
|
-
def dyld_chained_ptr_arm64e_auth_bind(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_auth_bind_t: ...
|
|
1011
|
+
def shift_linkedit(self, value: int) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
934
1012
|
|
|
935
|
-
|
|
936
|
-
def dyld_chained_ptr_64_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_64_rebase_t: ...
|
|
1013
|
+
def add_exported_function(self, address: int, name: str) -> ExportInfo: ...
|
|
937
1014
|
|
|
938
|
-
|
|
939
|
-
def dyld_chained_ptr_arm64e_bind24(self) -> ChainedPointerAnalysis.dyld_chained_ptr_arm64e_bind24_t: ...
|
|
1015
|
+
def add_local_symbol(self, address: int, name: str) -> Symbol: ...
|
|
940
1016
|
|
|
941
1017
|
@property
|
|
942
|
-
def
|
|
1018
|
+
def page_size(self) -> int: ...
|
|
943
1019
|
|
|
944
1020
|
@property
|
|
945
|
-
def
|
|
1021
|
+
def bindings(self) -> Iterator[BindingInfo]: ...
|
|
946
1022
|
|
|
947
1023
|
@property
|
|
948
|
-
def
|
|
1024
|
+
def symbol_stubs(self) -> Sequence[Stub]: ...
|
|
949
1025
|
|
|
950
1026
|
@property
|
|
951
|
-
def
|
|
1027
|
+
def has_nx_heap(self) -> bool: ...
|
|
952
1028
|
|
|
953
1029
|
@property
|
|
954
|
-
def
|
|
1030
|
+
def has_nx_stack(self) -> bool: ...
|
|
955
1031
|
|
|
956
1032
|
@property
|
|
957
|
-
def
|
|
1033
|
+
def support_arm64_ptr_auth(self) -> bool: ...
|
|
958
1034
|
|
|
959
1035
|
@property
|
|
960
|
-
def
|
|
961
|
-
|
|
962
|
-
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, int, None]: ...
|
|
1036
|
+
def objc_metadata(self) -> Optional[lief.objc.Metadata]: ...
|
|
963
1037
|
|
|
964
|
-
|
|
965
|
-
data_offset: int
|
|
1038
|
+
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand: ...
|
|
966
1039
|
|
|
967
|
-
|
|
1040
|
+
def __contains__(self, arg: LoadCommand.TYPE, /) -> bool: ...
|
|
968
1041
|
|
|
969
1042
|
@property
|
|
970
|
-
def
|
|
1043
|
+
def overlay(self) -> memoryview: ...
|
|
971
1044
|
|
|
972
1045
|
def __str__(self) -> str: ...
|
|
973
1046
|
|
|
974
|
-
class
|
|
975
|
-
|
|
1047
|
+
class Header(lief.Object):
|
|
1048
|
+
def __init__(self) -> None: ...
|
|
976
1049
|
|
|
977
|
-
|
|
1050
|
+
class CPU_TYPE(enum.Enum):
|
|
1051
|
+
@staticmethod
|
|
1052
|
+
def from_value(arg: int, /) -> Header.CPU_TYPE: ...
|
|
978
1053
|
|
|
979
|
-
|
|
980
|
-
def content(self) -> memoryview: ...
|
|
1054
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
981
1055
|
|
|
982
|
-
|
|
1056
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
983
1057
|
|
|
984
|
-
|
|
985
|
-
@staticmethod
|
|
986
|
-
def from_value(arg: int, /) -> DYLD_CHAINED_FORMAT: ...
|
|
1058
|
+
def __int__(self) -> int: ...
|
|
987
1059
|
|
|
988
|
-
|
|
1060
|
+
ANY = -1
|
|
989
1061
|
|
|
990
|
-
|
|
1062
|
+
X86 = 7
|
|
991
1063
|
|
|
992
|
-
|
|
1064
|
+
X86_64 = 16777223
|
|
993
1065
|
|
|
994
|
-
|
|
1066
|
+
MIPS = 8
|
|
995
1067
|
|
|
996
|
-
|
|
1068
|
+
MC98000 = 10
|
|
997
1069
|
|
|
998
|
-
|
|
1070
|
+
ARM = 12
|
|
999
1071
|
|
|
1000
|
-
|
|
1001
|
-
@staticmethod
|
|
1002
|
-
def from_value(arg: int, /) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
1072
|
+
ARM64 = 16777228
|
|
1003
1073
|
|
|
1004
|
-
|
|
1074
|
+
SPARC = 14
|
|
1005
1075
|
|
|
1006
|
-
|
|
1076
|
+
POWERPC = 18
|
|
1007
1077
|
|
|
1008
|
-
|
|
1078
|
+
POWERPC64 = 16777234
|
|
1009
1079
|
|
|
1010
|
-
|
|
1080
|
+
class FILE_TYPE(enum.Enum):
|
|
1081
|
+
@staticmethod
|
|
1082
|
+
def from_value(arg: int, /) -> Header.FILE_TYPE: ...
|
|
1011
1083
|
|
|
1012
|
-
|
|
1084
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1013
1085
|
|
|
1014
|
-
|
|
1086
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1015
1087
|
|
|
1016
|
-
|
|
1088
|
+
def __int__(self) -> int: ...
|
|
1017
1089
|
|
|
1018
|
-
|
|
1090
|
+
UNKNOWN = 0
|
|
1019
1091
|
|
|
1020
|
-
|
|
1092
|
+
OBJECT = 1
|
|
1021
1093
|
|
|
1022
|
-
|
|
1094
|
+
EXECUTE = 2
|
|
1023
1095
|
|
|
1024
|
-
|
|
1096
|
+
FVMLIB = 3
|
|
1025
1097
|
|
|
1026
|
-
|
|
1098
|
+
CORE = 4
|
|
1027
1099
|
|
|
1028
|
-
|
|
1100
|
+
PRELOAD = 5
|
|
1029
1101
|
|
|
1030
|
-
|
|
1102
|
+
DYLIB = 6
|
|
1031
1103
|
|
|
1032
|
-
|
|
1104
|
+
DYLINKER = 7
|
|
1033
1105
|
|
|
1034
|
-
|
|
1106
|
+
BUNDLE = 8
|
|
1035
1107
|
|
|
1036
|
-
|
|
1037
|
-
|
|
1108
|
+
DYLIB_STUB = 9
|
|
1109
|
+
|
|
1110
|
+
DSYM = 10
|
|
1111
|
+
|
|
1112
|
+
KEXT_BUNDLE = 11
|
|
1113
|
+
|
|
1114
|
+
class FLAGS(enum.Flag):
|
|
1038
1115
|
@staticmethod
|
|
1039
|
-
def from_value(arg: int, /) ->
|
|
1116
|
+
def from_value(arg: int, /) -> Header.FLAGS: ...
|
|
1040
1117
|
|
|
1041
1118
|
def __eq__(self, arg, /) -> bool: ...
|
|
1042
1119
|
|
|
@@ -1044,579 +1121,570 @@ class DataCodeEntry(lief.Object):
|
|
|
1044
1121
|
|
|
1045
1122
|
def __int__(self) -> int: ...
|
|
1046
1123
|
|
|
1047
|
-
|
|
1124
|
+
NOUNDEFS = 1
|
|
1048
1125
|
|
|
1049
|
-
|
|
1126
|
+
INCRLINK = 2
|
|
1050
1127
|
|
|
1051
|
-
|
|
1128
|
+
DYLDLINK = 4
|
|
1052
1129
|
|
|
1053
|
-
|
|
1130
|
+
BINDATLOAD = 8
|
|
1054
1131
|
|
|
1055
|
-
|
|
1132
|
+
PREBOUND = 16
|
|
1056
1133
|
|
|
1057
|
-
|
|
1134
|
+
SPLIT_SEGS = 32
|
|
1058
1135
|
|
|
1059
|
-
|
|
1136
|
+
LAZY_INIT = 64
|
|
1060
1137
|
|
|
1061
|
-
|
|
1138
|
+
TWOLEVEL = 128
|
|
1062
1139
|
|
|
1063
|
-
|
|
1140
|
+
FORCE_FLAT = 256
|
|
1064
1141
|
|
|
1065
|
-
|
|
1142
|
+
NOMULTIDEFS = 512
|
|
1066
1143
|
|
|
1067
|
-
|
|
1068
|
-
data_offset: int
|
|
1144
|
+
NOFIXPREBINDING = 1024
|
|
1069
1145
|
|
|
1070
|
-
|
|
1146
|
+
PREBINDABLE = 2048
|
|
1071
1147
|
|
|
1072
|
-
|
|
1073
|
-
def entries(self) -> it_data_in_code_entries: ...
|
|
1148
|
+
ALLMODSBOUND = 4096
|
|
1074
1149
|
|
|
1075
|
-
|
|
1150
|
+
SUBSECTIONS_VIA_SYMBOLS = 8192
|
|
1076
1151
|
|
|
1077
|
-
|
|
1078
|
-
def content(self) -> memoryview: ...
|
|
1152
|
+
CANONICAL = 16384
|
|
1079
1153
|
|
|
1080
|
-
|
|
1154
|
+
WEAK_DEFINES = 32768
|
|
1081
1155
|
|
|
1082
|
-
|
|
1083
|
-
class CLASS(enum.Enum):
|
|
1084
|
-
@staticmethod
|
|
1085
|
-
def from_value(arg: int, /) -> DyldBindingInfo.CLASS: ...
|
|
1156
|
+
BINDS_TO_WEAK = 65536
|
|
1086
1157
|
|
|
1087
|
-
|
|
1158
|
+
ALLOW_STACK_EXECUTION = 131072
|
|
1088
1159
|
|
|
1089
|
-
|
|
1160
|
+
ROOT_SAFE = 262144
|
|
1090
1161
|
|
|
1091
|
-
|
|
1162
|
+
SETUID_SAFE = 524288
|
|
1092
1163
|
|
|
1093
|
-
|
|
1164
|
+
NO_REEXPORTED_DYLIBS = 1048576
|
|
1094
1165
|
|
|
1095
|
-
|
|
1166
|
+
PIE = 2097152
|
|
1096
1167
|
|
|
1097
|
-
|
|
1168
|
+
DEAD_STRIPPABLE_DYLIB = 4194304
|
|
1098
1169
|
|
|
1099
|
-
|
|
1170
|
+
HAS_TLV_DESCRIPTORS = 8388608
|
|
1100
1171
|
|
|
1101
|
-
|
|
1102
|
-
@staticmethod
|
|
1103
|
-
def from_value(arg: int, /) -> DyldBindingInfo.TYPE: ...
|
|
1172
|
+
NO_HEAP_EXECUTION = 16777216
|
|
1104
1173
|
|
|
1105
|
-
|
|
1174
|
+
APP_EXTENSION_SAFE = 33554432
|
|
1106
1175
|
|
|
1107
|
-
|
|
1176
|
+
magic: MACHO_TYPES
|
|
1108
1177
|
|
|
1109
|
-
|
|
1178
|
+
cpu_type: Header.CPU_TYPE
|
|
1110
1179
|
|
|
1111
|
-
|
|
1180
|
+
cpu_subtype: int
|
|
1112
1181
|
|
|
1113
|
-
|
|
1182
|
+
file_type: Header.FILE_TYPE
|
|
1183
|
+
|
|
1184
|
+
flags: int
|
|
1185
|
+
|
|
1186
|
+
nb_cmds: int
|
|
1187
|
+
|
|
1188
|
+
sizeof_cmds: int
|
|
1189
|
+
|
|
1190
|
+
reserved: int
|
|
1191
|
+
|
|
1192
|
+
@property
|
|
1193
|
+
def flags_list(self) -> list[Header.FLAGS]: ...
|
|
1194
|
+
|
|
1195
|
+
def add(self, flag: Header.FLAGS) -> None: ...
|
|
1196
|
+
|
|
1197
|
+
def remove(self, flag: Header.FLAGS) -> None: ...
|
|
1198
|
+
|
|
1199
|
+
def has(self, flag: Header.FLAGS) -> bool: ...
|
|
1200
|
+
|
|
1201
|
+
def __iadd__(self, arg: Header.FLAGS, /) -> Header: ...
|
|
1202
|
+
|
|
1203
|
+
def __isub__(self, arg: Header.FLAGS, /) -> Header: ...
|
|
1114
1204
|
|
|
1115
|
-
|
|
1205
|
+
def __contains__(self, arg: Header.FLAGS, /) -> bool: ...
|
|
1116
1206
|
|
|
1117
|
-
|
|
1207
|
+
def __str__(self) -> str: ...
|
|
1118
1208
|
|
|
1119
|
-
|
|
1209
|
+
class LoadCommand(lief.Object):
|
|
1210
|
+
def __init__(self) -> None: ...
|
|
1120
1211
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1212
|
+
class TYPE(enum.Enum):
|
|
1213
|
+
@staticmethod
|
|
1214
|
+
def from_value(arg: int, /) -> LoadCommand.TYPE: ...
|
|
1123
1215
|
|
|
1124
|
-
|
|
1216
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1125
1217
|
|
|
1126
|
-
|
|
1127
|
-
class it_binding_info:
|
|
1128
|
-
def __getitem__(self, arg: int, /) -> ChainedBindingInfo: ...
|
|
1218
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1129
1219
|
|
|
1130
|
-
def
|
|
1220
|
+
def __int__(self) -> int: ...
|
|
1131
1221
|
|
|
1132
|
-
|
|
1222
|
+
UNKNOWN = 0
|
|
1133
1223
|
|
|
1134
|
-
|
|
1224
|
+
SEGMENT = 1
|
|
1135
1225
|
|
|
1136
|
-
|
|
1137
|
-
def __getitem__(self, arg: int, /) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1226
|
+
SYMTAB = 2
|
|
1138
1227
|
|
|
1139
|
-
|
|
1228
|
+
SYMSEG = 3
|
|
1140
1229
|
|
|
1141
|
-
|
|
1230
|
+
THREAD = 4
|
|
1142
1231
|
|
|
1143
|
-
|
|
1232
|
+
UNIXTHREAD = 5
|
|
1144
1233
|
|
|
1145
|
-
|
|
1146
|
-
@property
|
|
1147
|
-
def offset(self) -> int: ...
|
|
1234
|
+
LOADFVMLIB = 6
|
|
1148
1235
|
|
|
1149
|
-
|
|
1150
|
-
def size(self) -> int: ...
|
|
1236
|
+
IDFVMLIB = 7
|
|
1151
1237
|
|
|
1152
|
-
|
|
1153
|
-
def page_size(self) -> int: ...
|
|
1238
|
+
IDENT = 8
|
|
1154
1239
|
|
|
1155
|
-
|
|
1156
|
-
def segment_offset(self) -> int: ...
|
|
1240
|
+
FVMFILE = 9
|
|
1157
1241
|
|
|
1158
|
-
|
|
1159
|
-
def page_start(self) -> list[int]: ...
|
|
1242
|
+
PREPAGE = 10
|
|
1160
1243
|
|
|
1161
|
-
|
|
1162
|
-
def pointer_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
1244
|
+
DYSYMTAB = 11
|
|
1163
1245
|
|
|
1164
|
-
|
|
1165
|
-
def max_valid_pointer(self) -> int: ...
|
|
1246
|
+
LOAD_DYLIB = 12
|
|
1166
1247
|
|
|
1167
|
-
|
|
1168
|
-
def page_count(self) -> int: ...
|
|
1248
|
+
ID_DYLIB = 13
|
|
1169
1249
|
|
|
1170
|
-
|
|
1171
|
-
def segment(self) -> SegmentCommand: ...
|
|
1250
|
+
LOAD_DYLINKER = 14
|
|
1172
1251
|
|
|
1173
|
-
|
|
1252
|
+
ID_DYLINKER = 15
|
|
1174
1253
|
|
|
1175
|
-
|
|
1254
|
+
PREBOUND_DYLIB = 16
|
|
1176
1255
|
|
|
1177
|
-
|
|
1256
|
+
ROUTINES = 17
|
|
1178
1257
|
|
|
1179
|
-
|
|
1180
|
-
def payload(self) -> memoryview: ...
|
|
1258
|
+
SUB_FRAMEWORK = 18
|
|
1181
1259
|
|
|
1182
|
-
|
|
1183
|
-
def bindings(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1260
|
+
SUB_UMBRELLA = 19
|
|
1184
1261
|
|
|
1185
|
-
|
|
1186
|
-
def chained_starts_in_segments(self) -> DyldChainedFixups.it_chained_starts_in_segments_t: ...
|
|
1262
|
+
SUB_CLIENT = 20
|
|
1187
1263
|
|
|
1188
|
-
|
|
1264
|
+
SUB_LIBRARY = 21
|
|
1189
1265
|
|
|
1190
|
-
|
|
1266
|
+
TWOLEVEL_HINTS = 22
|
|
1191
1267
|
|
|
1192
|
-
|
|
1268
|
+
PREBIND_CKSUM = 23
|
|
1193
1269
|
|
|
1194
|
-
|
|
1270
|
+
LOAD_WEAK_DYLIB = 2147483672
|
|
1195
1271
|
|
|
1196
|
-
|
|
1272
|
+
SEGMENT_64 = 25
|
|
1197
1273
|
|
|
1198
|
-
|
|
1274
|
+
ROUTINES_64 = 26
|
|
1199
1275
|
|
|
1200
|
-
|
|
1276
|
+
UUID = 27
|
|
1201
1277
|
|
|
1202
|
-
|
|
1278
|
+
RPATH = 2147483676
|
|
1203
1279
|
|
|
1204
|
-
|
|
1205
|
-
value: str
|
|
1280
|
+
CODE_SIGNATURE = 29
|
|
1206
1281
|
|
|
1207
|
-
|
|
1282
|
+
SEGMENT_SPLIT_INFO = 30
|
|
1208
1283
|
|
|
1209
|
-
|
|
1210
|
-
class it_export_info:
|
|
1211
|
-
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1284
|
+
REEXPORT_DYLIB = 2147483679
|
|
1212
1285
|
|
|
1213
|
-
|
|
1286
|
+
LAZY_LOAD_DYLIB = 32
|
|
1214
1287
|
|
|
1215
|
-
|
|
1288
|
+
ENCRYPTION_INFO = 33
|
|
1216
1289
|
|
|
1217
|
-
|
|
1290
|
+
DYLD_INFO = 34
|
|
1218
1291
|
|
|
1219
|
-
|
|
1292
|
+
DYLD_INFO_ONLY = 2147483682
|
|
1220
1293
|
|
|
1221
|
-
|
|
1294
|
+
LOAD_UPWARD_DYLIB = 2147483683
|
|
1222
1295
|
|
|
1223
|
-
|
|
1224
|
-
def content(self) -> memoryview: ...
|
|
1296
|
+
VERSION_MIN_MACOSX = 36
|
|
1225
1297
|
|
|
1226
|
-
|
|
1227
|
-
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1298
|
+
VERSION_MIN_IPHONEOS = 37
|
|
1228
1299
|
|
|
1229
|
-
|
|
1300
|
+
FUNCTION_STARTS = 38
|
|
1230
1301
|
|
|
1231
|
-
|
|
1302
|
+
DYLD_ENVIRONMENT = 39
|
|
1232
1303
|
|
|
1233
|
-
|
|
1234
|
-
class REBASE_TYPE(enum.Enum):
|
|
1235
|
-
@staticmethod
|
|
1236
|
-
def from_value(arg: int, /) -> DyldInfo.REBASE_TYPE: ...
|
|
1304
|
+
MAIN = 2147483688
|
|
1237
1305
|
|
|
1238
|
-
|
|
1306
|
+
DATA_IN_CODE = 41
|
|
1239
1307
|
|
|
1240
|
-
|
|
1308
|
+
SOURCE_VERSION = 42
|
|
1241
1309
|
|
|
1242
|
-
|
|
1310
|
+
DYLIB_CODE_SIGN_DRS = 43
|
|
1243
1311
|
|
|
1244
|
-
|
|
1312
|
+
ENCRYPTION_INFO_64 = 44
|
|
1245
1313
|
|
|
1246
|
-
|
|
1314
|
+
LINKER_OPTION = 45
|
|
1247
1315
|
|
|
1248
|
-
|
|
1316
|
+
LINKER_OPTIMIZATION_HINT = 46
|
|
1249
1317
|
|
|
1250
|
-
|
|
1318
|
+
VERSION_MIN_TVOS = 47
|
|
1251
1319
|
|
|
1252
|
-
|
|
1253
|
-
@staticmethod
|
|
1254
|
-
def from_value(arg: int, /) -> DyldInfo.REBASE_OPCODES: ...
|
|
1320
|
+
VERSION_MIN_WATCHOS = 48
|
|
1255
1321
|
|
|
1256
|
-
|
|
1322
|
+
NOTE = 49
|
|
1257
1323
|
|
|
1258
|
-
|
|
1324
|
+
BUILD_VERSION = 50
|
|
1259
1325
|
|
|
1260
|
-
|
|
1326
|
+
DYLD_EXPORTS_TRIE = 2147483699
|
|
1261
1327
|
|
|
1262
|
-
|
|
1328
|
+
DYLD_CHAINED_FIXUPS = 2147483700
|
|
1263
1329
|
|
|
1264
|
-
|
|
1330
|
+
FILESET_ENTRY = 2147483701
|
|
1265
1331
|
|
|
1266
|
-
|
|
1332
|
+
LIEF_UNKNOWN = 4293787649
|
|
1267
1333
|
|
|
1268
|
-
|
|
1334
|
+
command: LoadCommand.TYPE
|
|
1269
1335
|
|
|
1270
|
-
|
|
1336
|
+
size: int
|
|
1271
1337
|
|
|
1272
|
-
|
|
1338
|
+
data: memoryview
|
|
1273
1339
|
|
|
1274
|
-
|
|
1340
|
+
command_offset: int
|
|
1275
1341
|
|
|
1276
|
-
|
|
1342
|
+
def __str__(self) -> str: ...
|
|
1277
1343
|
|
|
1278
|
-
|
|
1344
|
+
class UUIDCommand(LoadCommand):
|
|
1345
|
+
uuid: list[int]
|
|
1279
1346
|
|
|
1280
|
-
|
|
1281
|
-
@staticmethod
|
|
1282
|
-
def from_value(arg: int, /) -> DyldInfo.BIND_OPCODES: ...
|
|
1347
|
+
def __str__(self) -> str: ...
|
|
1283
1348
|
|
|
1284
|
-
|
|
1349
|
+
class SymbolCommand(LoadCommand):
|
|
1350
|
+
def __init__(self) -> None: ...
|
|
1285
1351
|
|
|
1286
|
-
|
|
1352
|
+
symbol_offset: int
|
|
1287
1353
|
|
|
1288
|
-
|
|
1354
|
+
numberof_symbols: int
|
|
1289
1355
|
|
|
1290
|
-
|
|
1356
|
+
strings_offset: int
|
|
1291
1357
|
|
|
1292
|
-
|
|
1358
|
+
strings_size: int
|
|
1293
1359
|
|
|
1294
|
-
|
|
1360
|
+
def __str__(self) -> str: ...
|
|
1295
1361
|
|
|
1296
|
-
|
|
1362
|
+
class SegmentCommand(LoadCommand):
|
|
1363
|
+
@overload
|
|
1364
|
+
def __init__(self) -> None: ...
|
|
1297
1365
|
|
|
1298
|
-
|
|
1366
|
+
@overload
|
|
1367
|
+
def __init__(self, arg: str, /) -> None: ...
|
|
1299
1368
|
|
|
1300
|
-
|
|
1369
|
+
@overload
|
|
1370
|
+
def __init__(self, arg0: str, arg1: Sequence[int], /) -> None: ...
|
|
1301
1371
|
|
|
1302
|
-
|
|
1372
|
+
class it_sections:
|
|
1373
|
+
def __getitem__(self, arg: int, /) -> Section: ...
|
|
1303
1374
|
|
|
1304
|
-
|
|
1375
|
+
def __len__(self) -> int: ...
|
|
1305
1376
|
|
|
1306
|
-
|
|
1377
|
+
def __iter__(self) -> SegmentCommand.it_sections: ...
|
|
1307
1378
|
|
|
1308
|
-
|
|
1379
|
+
def __next__(self) -> Section: ...
|
|
1309
1380
|
|
|
1310
|
-
|
|
1381
|
+
class it_relocations:
|
|
1382
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
1311
1383
|
|
|
1312
|
-
|
|
1384
|
+
def __len__(self) -> int: ...
|
|
1313
1385
|
|
|
1314
|
-
|
|
1386
|
+
def __iter__(self) -> SegmentCommand.it_relocations: ...
|
|
1315
1387
|
|
|
1316
|
-
|
|
1388
|
+
def __next__(self) -> Relocation: ...
|
|
1317
1389
|
|
|
1318
|
-
|
|
1390
|
+
class VM_PROTECTIONS(enum.Enum):
|
|
1391
|
+
@staticmethod
|
|
1392
|
+
def from_value(arg: int, /) -> SegmentCommand.VM_PROTECTIONS: ...
|
|
1319
1393
|
|
|
1320
|
-
|
|
1321
|
-
def __getitem__(self, arg: int, /) -> DyldBindingInfo: ...
|
|
1394
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1322
1395
|
|
|
1323
|
-
def
|
|
1396
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1324
1397
|
|
|
1325
|
-
def
|
|
1398
|
+
def __int__(self) -> int: ...
|
|
1326
1399
|
|
|
1327
|
-
|
|
1400
|
+
R = 1
|
|
1328
1401
|
|
|
1329
|
-
|
|
1330
|
-
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1402
|
+
W = 2
|
|
1331
1403
|
|
|
1332
|
-
|
|
1404
|
+
X = 4
|
|
1333
1405
|
|
|
1334
|
-
|
|
1406
|
+
class FLAGS(enum.Enum):
|
|
1407
|
+
@staticmethod
|
|
1408
|
+
def from_value(arg: int, /) -> SegmentCommand.FLAGS: ...
|
|
1335
1409
|
|
|
1336
|
-
def
|
|
1410
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1337
1411
|
|
|
1338
|
-
|
|
1412
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1339
1413
|
|
|
1340
|
-
|
|
1414
|
+
def __int__(self) -> int: ...
|
|
1341
1415
|
|
|
1342
|
-
|
|
1343
|
-
def show_rebases_opcodes(self) -> str: ...
|
|
1416
|
+
HIGHVM = 1
|
|
1344
1417
|
|
|
1345
|
-
|
|
1418
|
+
FVMLIB = 2
|
|
1346
1419
|
|
|
1347
|
-
|
|
1420
|
+
NORELOC = 4
|
|
1348
1421
|
|
|
1349
|
-
|
|
1350
|
-
def show_bind_opcodes(self) -> str: ...
|
|
1422
|
+
PROTECTED_VERSION_1 = 8
|
|
1351
1423
|
|
|
1352
|
-
|
|
1424
|
+
READ_ONLY = 16
|
|
1353
1425
|
|
|
1354
|
-
|
|
1426
|
+
name: Union[str, bytes]
|
|
1355
1427
|
|
|
1356
|
-
|
|
1357
|
-
def show_weak_bind_opcodes(self) -> str: ...
|
|
1428
|
+
virtual_address: int
|
|
1358
1429
|
|
|
1359
|
-
|
|
1430
|
+
virtual_size: int
|
|
1360
1431
|
|
|
1361
|
-
|
|
1432
|
+
file_size: int
|
|
1362
1433
|
|
|
1363
|
-
|
|
1364
|
-
def show_lazy_bind_opcodes(self) -> str: ...
|
|
1434
|
+
file_offset: int
|
|
1365
1435
|
|
|
1366
|
-
|
|
1367
|
-
def bindings(self) -> DyldInfo.it_binding_info: ...
|
|
1436
|
+
max_protection: int
|
|
1368
1437
|
|
|
1369
|
-
|
|
1438
|
+
init_protection: int
|
|
1370
1439
|
|
|
1371
|
-
|
|
1440
|
+
numberof_sections: int
|
|
1372
1441
|
|
|
1373
1442
|
@property
|
|
1374
|
-
def
|
|
1443
|
+
def sections(self) -> SegmentCommand.it_sections: ...
|
|
1375
1444
|
|
|
1376
1445
|
@property
|
|
1377
|
-
def
|
|
1378
|
-
|
|
1379
|
-
def set_rebase_offset(self, offset: int) -> None: ...
|
|
1446
|
+
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
1380
1447
|
|
|
1381
|
-
|
|
1448
|
+
@property
|
|
1449
|
+
def index(self) -> int: ...
|
|
1382
1450
|
|
|
1383
|
-
|
|
1451
|
+
content: memoryview
|
|
1384
1452
|
|
|
1385
|
-
|
|
1453
|
+
flags: int
|
|
1386
1454
|
|
|
1387
|
-
def
|
|
1455
|
+
def has(self, section: Section) -> bool: ...
|
|
1388
1456
|
|
|
1389
|
-
def
|
|
1457
|
+
def has_section(self, section_name: str) -> bool: ...
|
|
1390
1458
|
|
|
1391
|
-
def
|
|
1459
|
+
def add_section(self, section: Section) -> Section: ...
|
|
1392
1460
|
|
|
1393
|
-
def
|
|
1461
|
+
def get_section(self, name: str) -> Section: ...
|
|
1394
1462
|
|
|
1395
|
-
def
|
|
1463
|
+
def __str__(self) -> str: ...
|
|
1396
1464
|
|
|
1397
|
-
|
|
1465
|
+
class LinkEdit(SegmentCommand):
|
|
1466
|
+
pass
|
|
1398
1467
|
|
|
1399
|
-
|
|
1468
|
+
class Section(lief.Section):
|
|
1469
|
+
@overload
|
|
1470
|
+
def __init__(self) -> None: ...
|
|
1400
1471
|
|
|
1401
|
-
|
|
1402
|
-
|
|
1472
|
+
@overload
|
|
1473
|
+
def __init__(self, section_name: str) -> None: ...
|
|
1403
1474
|
|
|
1404
|
-
|
|
1475
|
+
@overload
|
|
1476
|
+
def __init__(self, section_name: str, content: Sequence[int]) -> None: ...
|
|
1405
1477
|
|
|
1406
|
-
|
|
1478
|
+
class it_relocations:
|
|
1479
|
+
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
1407
1480
|
|
|
1408
|
-
|
|
1481
|
+
def __len__(self) -> int: ...
|
|
1409
1482
|
|
|
1410
|
-
|
|
1411
|
-
def weak_lib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1483
|
+
def __iter__(self) -> Section.it_relocations: ...
|
|
1412
1484
|
|
|
1413
|
-
|
|
1414
|
-
def id_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1485
|
+
def __next__(self) -> Relocation: ...
|
|
1415
1486
|
|
|
1416
|
-
|
|
1417
|
-
|
|
1487
|
+
class TYPE(enum.Enum):
|
|
1488
|
+
@staticmethod
|
|
1489
|
+
def from_value(arg: int, /) -> Section.TYPE: ...
|
|
1418
1490
|
|
|
1419
|
-
|
|
1420
|
-
def reexport_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1491
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1421
1492
|
|
|
1422
|
-
|
|
1423
|
-
def load_upward_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1493
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1424
1494
|
|
|
1425
|
-
|
|
1426
|
-
def lazy_load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1495
|
+
def __int__(self) -> int: ...
|
|
1427
1496
|
|
|
1428
|
-
|
|
1497
|
+
REGULAR = 0
|
|
1429
1498
|
|
|
1430
|
-
|
|
1431
|
-
def __init__(self, arg: str, /) -> None: ...
|
|
1499
|
+
ZEROFILL = 1
|
|
1432
1500
|
|
|
1433
|
-
|
|
1501
|
+
CSTRING_LITERALS = 2
|
|
1434
1502
|
|
|
1435
|
-
|
|
1503
|
+
S_4BYTE_LITERALS = 3
|
|
1436
1504
|
|
|
1437
|
-
|
|
1438
|
-
class it_indirect_symbols:
|
|
1439
|
-
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
1505
|
+
S_8BYTE_LITERALS = 4
|
|
1440
1506
|
|
|
1441
|
-
|
|
1507
|
+
LITERAL_POINTERS = 5
|
|
1442
1508
|
|
|
1443
|
-
|
|
1509
|
+
NON_LAZY_SYMBOL_POINTERS = 6
|
|
1444
1510
|
|
|
1445
|
-
|
|
1511
|
+
LAZY_SYMBOL_POINTERS = 7
|
|
1446
1512
|
|
|
1447
|
-
|
|
1513
|
+
SYMBOL_STUBS = 8
|
|
1448
1514
|
|
|
1449
|
-
|
|
1515
|
+
MOD_INIT_FUNC_POINTERS = 9
|
|
1450
1516
|
|
|
1451
|
-
|
|
1517
|
+
MOD_TERM_FUNC_POINTERS = 10
|
|
1452
1518
|
|
|
1453
|
-
|
|
1519
|
+
COALESCED = 11
|
|
1454
1520
|
|
|
1455
|
-
|
|
1521
|
+
GB_ZEROFILL = 12
|
|
1456
1522
|
|
|
1457
|
-
|
|
1523
|
+
INTERPOSING = 13
|
|
1458
1524
|
|
|
1459
|
-
|
|
1525
|
+
S_16BYTE_LITERALS = 14
|
|
1460
1526
|
|
|
1461
|
-
|
|
1527
|
+
DTRACE_DOF = 15
|
|
1462
1528
|
|
|
1463
|
-
|
|
1529
|
+
LAZY_DYLIB_SYMBOL_POINTERS = 16
|
|
1464
1530
|
|
|
1465
|
-
|
|
1531
|
+
THREAD_LOCAL_REGULAR = 17
|
|
1466
1532
|
|
|
1467
|
-
|
|
1533
|
+
THREAD_LOCAL_ZEROFILL = 18
|
|
1468
1534
|
|
|
1469
|
-
|
|
1535
|
+
THREAD_LOCAL_VARIABLES = 19
|
|
1470
1536
|
|
|
1471
|
-
|
|
1537
|
+
THREAD_LOCAL_VARIABLE_POINTERS = 20
|
|
1472
1538
|
|
|
1473
|
-
|
|
1539
|
+
THREAD_LOCAL_INIT_FUNCTION_POINTERS = 21
|
|
1474
1540
|
|
|
1475
|
-
|
|
1541
|
+
INIT_FUNC_OFFSETS = 22
|
|
1476
1542
|
|
|
1477
|
-
|
|
1543
|
+
class FLAGS(enum.Flag):
|
|
1544
|
+
@staticmethod
|
|
1545
|
+
def from_value(arg: int, /) -> Section.FLAGS: ...
|
|
1478
1546
|
|
|
1479
|
-
|
|
1547
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1480
1548
|
|
|
1481
|
-
|
|
1549
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1482
1550
|
|
|
1483
|
-
|
|
1484
|
-
def indirect_symbols(self) -> DynamicSymbolCommand.it_indirect_symbols: ...
|
|
1551
|
+
def __int__(self) -> int: ...
|
|
1485
1552
|
|
|
1486
|
-
|
|
1553
|
+
PURE_INSTRUCTIONS = 2147483648
|
|
1487
1554
|
|
|
1488
|
-
|
|
1489
|
-
crypt_offset: int
|
|
1555
|
+
NO_TOC = 1073741824
|
|
1490
1556
|
|
|
1491
|
-
|
|
1557
|
+
STRIP_STATIC_SYMS = 536870912
|
|
1492
1558
|
|
|
1493
|
-
|
|
1559
|
+
NO_DEAD_STRIP = 268435456
|
|
1494
1560
|
|
|
1495
|
-
|
|
1561
|
+
LIVE_SUPPORT = 134217728
|
|
1496
1562
|
|
|
1497
|
-
|
|
1498
|
-
class KIND(enum.Enum):
|
|
1499
|
-
@staticmethod
|
|
1500
|
-
def from_value(arg: int, /) -> ExportInfo.KIND: ...
|
|
1563
|
+
SELF_MODIFYING_CODE = 67108864
|
|
1501
1564
|
|
|
1502
|
-
|
|
1565
|
+
DEBUG_INFO = 33554432
|
|
1503
1566
|
|
|
1504
|
-
|
|
1567
|
+
SOME_INSTRUCTIONS = 1024
|
|
1505
1568
|
|
|
1506
|
-
|
|
1569
|
+
EXT_RELOC = 512
|
|
1507
1570
|
|
|
1508
|
-
|
|
1571
|
+
LOC_RELOC = 256
|
|
1509
1572
|
|
|
1510
|
-
|
|
1573
|
+
alignment: int
|
|
1511
1574
|
|
|
1512
|
-
|
|
1575
|
+
relocation_offset: int
|
|
1513
1576
|
|
|
1514
|
-
|
|
1515
|
-
@staticmethod
|
|
1516
|
-
def from_value(arg: int, /) -> ExportInfo.FLAGS: ...
|
|
1577
|
+
numberof_relocations: int
|
|
1517
1578
|
|
|
1518
|
-
|
|
1579
|
+
type: Section.TYPE
|
|
1519
1580
|
|
|
1520
|
-
|
|
1581
|
+
@property
|
|
1582
|
+
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
1521
1583
|
|
|
1522
|
-
|
|
1584
|
+
reserved1: int
|
|
1523
1585
|
|
|
1524
|
-
|
|
1586
|
+
reserved2: int
|
|
1525
1587
|
|
|
1526
|
-
|
|
1588
|
+
reserved3: int
|
|
1527
1589
|
|
|
1528
|
-
|
|
1590
|
+
flags: Section.FLAGS
|
|
1529
1591
|
|
|
1530
1592
|
@property
|
|
1531
|
-
def
|
|
1593
|
+
def flags_list(self) -> list[Section.FLAGS]: ...
|
|
1532
1594
|
|
|
1533
1595
|
@property
|
|
1534
|
-
def
|
|
1596
|
+
def segment(self) -> SegmentCommand: ...
|
|
1597
|
+
|
|
1598
|
+
segment_name: str
|
|
1535
1599
|
|
|
1536
1600
|
@property
|
|
1537
|
-
def
|
|
1601
|
+
def has_segment(self) -> bool: ...
|
|
1538
1602
|
|
|
1539
|
-
|
|
1603
|
+
def has(self, flag: Section.FLAGS) -> bool: ...
|
|
1540
1604
|
|
|
1541
|
-
|
|
1605
|
+
def add(self, flag: Section.FLAGS) -> None: ...
|
|
1542
1606
|
|
|
1543
|
-
|
|
1544
|
-
def alias(self) -> Symbol: ...
|
|
1607
|
+
def remove(self, flag: Section.FLAGS) -> None: ...
|
|
1545
1608
|
|
|
1546
|
-
|
|
1547
|
-
def alias_library(self) -> DylibCommand: ...
|
|
1609
|
+
def __iadd__(self, arg: Section.FLAGS, /) -> Section: ...
|
|
1548
1610
|
|
|
1549
|
-
|
|
1550
|
-
def has_symbol(self) -> bool: ...
|
|
1611
|
+
def __isub__(self, arg: Section.FLAGS, /) -> Section: ...
|
|
1551
1612
|
|
|
1552
|
-
def
|
|
1613
|
+
def __contains__(self, arg: Section.FLAGS, /) -> bool: ...
|
|
1553
1614
|
|
|
1554
|
-
|
|
1555
|
-
|
|
1615
|
+
def __str__(self) -> str: ...
|
|
1616
|
+
|
|
1617
|
+
class MainCommand(LoadCommand):
|
|
1618
|
+
def __init__(self, arg0: int, arg1: int, /) -> None: ...
|
|
1619
|
+
|
|
1620
|
+
entrypoint: int
|
|
1621
|
+
|
|
1622
|
+
stack_size: int
|
|
1556
1623
|
|
|
1557
1624
|
def __str__(self) -> str: ...
|
|
1558
1625
|
|
|
1559
|
-
class
|
|
1560
|
-
class
|
|
1561
|
-
def __getitem__(self, arg: int, /) ->
|
|
1626
|
+
class DynamicSymbolCommand(LoadCommand):
|
|
1627
|
+
class it_indirect_symbols:
|
|
1628
|
+
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
1562
1629
|
|
|
1563
1630
|
def __len__(self) -> int: ...
|
|
1564
1631
|
|
|
1565
|
-
def __iter__(self) ->
|
|
1632
|
+
def __iter__(self) -> DynamicSymbolCommand.it_indirect_symbols: ...
|
|
1566
1633
|
|
|
1567
|
-
def __next__(self) ->
|
|
1634
|
+
def __next__(self) -> Symbol: ...
|
|
1568
1635
|
|
|
1569
|
-
|
|
1570
|
-
def size(self) -> int: ...
|
|
1636
|
+
idx_local_symbol: int
|
|
1571
1637
|
|
|
1572
|
-
|
|
1638
|
+
nb_local_symbols: int
|
|
1573
1639
|
|
|
1574
|
-
|
|
1640
|
+
idx_external_define_symbol: int
|
|
1575
1641
|
|
|
1576
|
-
|
|
1642
|
+
nb_external_define_symbols: int
|
|
1577
1643
|
|
|
1578
|
-
|
|
1644
|
+
idx_undefined_symbol: int
|
|
1579
1645
|
|
|
1580
|
-
|
|
1646
|
+
nb_undefined_symbols: int
|
|
1581
1647
|
|
|
1582
|
-
|
|
1648
|
+
toc_offset: int
|
|
1583
1649
|
|
|
1584
|
-
|
|
1650
|
+
nb_toc: int
|
|
1585
1651
|
|
|
1586
|
-
|
|
1652
|
+
module_table_offset: int
|
|
1587
1653
|
|
|
1588
|
-
|
|
1589
|
-
name: str
|
|
1654
|
+
nb_module_table: int
|
|
1590
1655
|
|
|
1591
|
-
|
|
1656
|
+
external_reference_symbol_offset: int
|
|
1592
1657
|
|
|
1593
|
-
|
|
1658
|
+
nb_external_reference_symbols: int
|
|
1594
1659
|
|
|
1595
|
-
|
|
1596
|
-
def binary(self) -> Binary: ...
|
|
1660
|
+
indirect_symbol_offset: int
|
|
1597
1661
|
|
|
1598
|
-
|
|
1662
|
+
nb_indirect_symbols: int
|
|
1599
1663
|
|
|
1600
|
-
|
|
1601
|
-
data_offset: int
|
|
1664
|
+
external_relocation_offset: int
|
|
1602
1665
|
|
|
1603
|
-
|
|
1666
|
+
nb_external_relocations: int
|
|
1604
1667
|
|
|
1605
|
-
|
|
1668
|
+
local_relocation_offset: int
|
|
1606
1669
|
|
|
1607
|
-
|
|
1670
|
+
nb_local_relocations: int
|
|
1608
1671
|
|
|
1609
1672
|
@property
|
|
1610
|
-
def
|
|
1673
|
+
def indirect_symbols(self) -> DynamicSymbolCommand.it_indirect_symbols: ...
|
|
1611
1674
|
|
|
1612
1675
|
def __str__(self) -> str: ...
|
|
1613
1676
|
|
|
1614
|
-
class
|
|
1615
|
-
def __init__(self) -> None: ...
|
|
1677
|
+
class DylinkerCommand(LoadCommand):
|
|
1678
|
+
def __init__(self, arg: str, /) -> None: ...
|
|
1616
1679
|
|
|
1617
|
-
|
|
1680
|
+
name: str
|
|
1681
|
+
|
|
1682
|
+
def __str__(self) -> str: ...
|
|
1683
|
+
|
|
1684
|
+
class DyldInfo(LoadCommand):
|
|
1685
|
+
class REBASE_TYPE(enum.Enum):
|
|
1618
1686
|
@staticmethod
|
|
1619
|
-
def from_value(arg: int, /) ->
|
|
1687
|
+
def from_value(arg: int, /) -> DyldInfo.REBASE_TYPE: ...
|
|
1620
1688
|
|
|
1621
1689
|
def __eq__(self, arg, /) -> bool: ...
|
|
1622
1690
|
|
|
@@ -1624,29 +1692,17 @@ class Header(lief.Object):
|
|
|
1624
1692
|
|
|
1625
1693
|
def __int__(self) -> int: ...
|
|
1626
1694
|
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
X86 = 7
|
|
1630
|
-
|
|
1631
|
-
X86_64 = 16777223
|
|
1632
|
-
|
|
1633
|
-
MIPS = 8
|
|
1634
|
-
|
|
1635
|
-
MC98000 = 10
|
|
1636
|
-
|
|
1637
|
-
ARM = 12
|
|
1638
|
-
|
|
1639
|
-
ARM64 = 16777228
|
|
1695
|
+
POINTER = 1
|
|
1640
1696
|
|
|
1641
|
-
|
|
1697
|
+
TEXT_ABSOLUTE32 = 2
|
|
1642
1698
|
|
|
1643
|
-
|
|
1699
|
+
TEXT_PCREL32 = 3
|
|
1644
1700
|
|
|
1645
|
-
|
|
1701
|
+
THREADED = 102
|
|
1646
1702
|
|
|
1647
|
-
class
|
|
1703
|
+
class REBASE_OPCODES(enum.Enum):
|
|
1648
1704
|
@staticmethod
|
|
1649
|
-
def from_value(arg: int, /) ->
|
|
1705
|
+
def from_value(arg: int, /) -> DyldInfo.REBASE_OPCODES: ...
|
|
1650
1706
|
|
|
1651
1707
|
def __eq__(self, arg, /) -> bool: ...
|
|
1652
1708
|
|
|
@@ -1654,33 +1710,27 @@ class Header(lief.Object):
|
|
|
1654
1710
|
|
|
1655
1711
|
def __int__(self) -> int: ...
|
|
1656
1712
|
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
OBJECT = 1
|
|
1660
|
-
|
|
1661
|
-
EXECUTE = 2
|
|
1662
|
-
|
|
1663
|
-
FVMLIB = 3
|
|
1713
|
+
DONE = 0
|
|
1664
1714
|
|
|
1665
|
-
|
|
1715
|
+
SET_TYPE_IMM = 16
|
|
1666
1716
|
|
|
1667
|
-
|
|
1717
|
+
SET_SEGMENT_AND_OFFSET_ULEB = 32
|
|
1668
1718
|
|
|
1669
|
-
|
|
1719
|
+
ADD_ADDR_ULEB = 48
|
|
1670
1720
|
|
|
1671
|
-
|
|
1721
|
+
ADD_ADDR_IMM_SCALED = 64
|
|
1672
1722
|
|
|
1673
|
-
|
|
1723
|
+
DO_REBASE_IMM_TIMES = 80
|
|
1674
1724
|
|
|
1675
|
-
|
|
1725
|
+
DO_REBASE_ULEB_TIMES = 96
|
|
1676
1726
|
|
|
1677
|
-
|
|
1727
|
+
DO_REBASE_ADD_ADDR_ULEB = 112
|
|
1678
1728
|
|
|
1679
|
-
|
|
1729
|
+
DO_REBASE_ULEB_TIMES_SKIPPING_ULEB = 128
|
|
1680
1730
|
|
|
1681
|
-
class
|
|
1731
|
+
class BIND_OPCODES(enum.Enum):
|
|
1682
1732
|
@staticmethod
|
|
1683
|
-
def from_value(arg: int, /) ->
|
|
1733
|
+
def from_value(arg: int, /) -> DyldInfo.BIND_OPCODES: ...
|
|
1684
1734
|
|
|
1685
1735
|
def __eq__(self, arg, /) -> bool: ...
|
|
1686
1736
|
|
|
@@ -1688,341 +1738,375 @@ class Header(lief.Object):
|
|
|
1688
1738
|
|
|
1689
1739
|
def __int__(self) -> int: ...
|
|
1690
1740
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
INCRLINK = 2
|
|
1694
|
-
|
|
1695
|
-
DYLDLINK = 4
|
|
1696
|
-
|
|
1697
|
-
BINDATLOAD = 8
|
|
1741
|
+
DONE = 0
|
|
1698
1742
|
|
|
1699
|
-
|
|
1743
|
+
SET_DYLIB_ORDINAL_IMM = 16
|
|
1700
1744
|
|
|
1701
|
-
|
|
1745
|
+
SET_DYLIB_ORDINAL_ULEB = 32
|
|
1702
1746
|
|
|
1703
|
-
|
|
1747
|
+
SET_DYLIB_SPECIAL_IMM = 48
|
|
1704
1748
|
|
|
1705
|
-
|
|
1749
|
+
SET_SYMBOL_TRAILING_FLAGS_IMM = 64
|
|
1706
1750
|
|
|
1707
|
-
|
|
1751
|
+
SET_TYPE_IMM = 80
|
|
1708
1752
|
|
|
1709
|
-
|
|
1753
|
+
SET_ADDEND_SLEB = 96
|
|
1710
1754
|
|
|
1711
|
-
|
|
1755
|
+
SET_SEGMENT_AND_OFFSET_ULEB = 112
|
|
1712
1756
|
|
|
1713
|
-
|
|
1757
|
+
ADD_ADDR_ULEB = 128
|
|
1714
1758
|
|
|
1715
|
-
|
|
1759
|
+
DO_BIND = 144
|
|
1716
1760
|
|
|
1717
|
-
|
|
1761
|
+
DO_BIND_ADD_ADDR_ULEB = 160
|
|
1718
1762
|
|
|
1719
|
-
|
|
1763
|
+
DO_BIND_ADD_ADDR_IMM_SCALED = 176
|
|
1720
1764
|
|
|
1721
|
-
|
|
1765
|
+
DO_BIND_ULEB_TIMES_SKIPPING_ULEB = 192
|
|
1722
1766
|
|
|
1723
|
-
|
|
1767
|
+
THREADED_APPLY = 209
|
|
1724
1768
|
|
|
1725
|
-
|
|
1769
|
+
THREADED = 208
|
|
1726
1770
|
|
|
1727
|
-
|
|
1771
|
+
class it_binding_info:
|
|
1772
|
+
def __getitem__(self, arg: int, /) -> DyldBindingInfo: ...
|
|
1728
1773
|
|
|
1729
|
-
|
|
1774
|
+
def __len__(self) -> int: ...
|
|
1730
1775
|
|
|
1731
|
-
|
|
1776
|
+
def __iter__(self) -> DyldInfo.it_binding_info: ...
|
|
1732
1777
|
|
|
1733
|
-
|
|
1778
|
+
def __next__(self) -> DyldBindingInfo: ...
|
|
1734
1779
|
|
|
1735
|
-
|
|
1780
|
+
class it_export_info:
|
|
1781
|
+
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1736
1782
|
|
|
1737
|
-
|
|
1783
|
+
def __len__(self) -> int: ...
|
|
1738
1784
|
|
|
1739
|
-
|
|
1785
|
+
def __iter__(self) -> DyldInfo.it_export_info: ...
|
|
1740
1786
|
|
|
1741
|
-
|
|
1787
|
+
def __next__(self) -> ExportInfo: ...
|
|
1742
1788
|
|
|
1743
|
-
|
|
1789
|
+
rebase: tuple[int, int]
|
|
1744
1790
|
|
|
1745
|
-
|
|
1791
|
+
rebase_opcodes: memoryview
|
|
1746
1792
|
|
|
1747
|
-
|
|
1793
|
+
@property
|
|
1794
|
+
def show_rebases_opcodes(self) -> str: ...
|
|
1748
1795
|
|
|
1749
|
-
|
|
1796
|
+
bind: tuple[int, int]
|
|
1750
1797
|
|
|
1751
|
-
|
|
1798
|
+
bind_opcodes: memoryview
|
|
1752
1799
|
|
|
1753
|
-
|
|
1800
|
+
@property
|
|
1801
|
+
def show_bind_opcodes(self) -> str: ...
|
|
1754
1802
|
|
|
1755
|
-
|
|
1803
|
+
weak_bind: tuple[int, int]
|
|
1756
1804
|
|
|
1757
|
-
|
|
1805
|
+
weak_bind_opcodes: memoryview
|
|
1758
1806
|
|
|
1759
1807
|
@property
|
|
1760
|
-
def
|
|
1761
|
-
|
|
1762
|
-
def add(self, flag: Header.FLAGS) -> None: ...
|
|
1808
|
+
def show_weak_bind_opcodes(self) -> str: ...
|
|
1763
1809
|
|
|
1764
|
-
|
|
1810
|
+
lazy_bind: tuple[int, int]
|
|
1765
1811
|
|
|
1766
|
-
|
|
1812
|
+
lazy_bind_opcodes: memoryview
|
|
1767
1813
|
|
|
1768
|
-
|
|
1814
|
+
@property
|
|
1815
|
+
def show_lazy_bind_opcodes(self) -> str: ...
|
|
1769
1816
|
|
|
1770
|
-
|
|
1817
|
+
@property
|
|
1818
|
+
def bindings(self) -> DyldInfo.it_binding_info: ...
|
|
1771
1819
|
|
|
1772
|
-
|
|
1820
|
+
export_info: tuple[int, int]
|
|
1773
1821
|
|
|
1774
|
-
|
|
1822
|
+
export_trie: memoryview
|
|
1775
1823
|
|
|
1776
|
-
|
|
1777
|
-
|
|
1824
|
+
@property
|
|
1825
|
+
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1778
1826
|
|
|
1779
|
-
|
|
1780
|
-
|
|
1827
|
+
@property
|
|
1828
|
+
def show_export_trie(self) -> str: ...
|
|
1781
1829
|
|
|
1782
|
-
|
|
1783
|
-
data_offset: int
|
|
1830
|
+
def set_rebase_offset(self, offset: int) -> None: ...
|
|
1784
1831
|
|
|
1785
|
-
|
|
1832
|
+
def set_rebase_size(self, size: int) -> None: ...
|
|
1786
1833
|
|
|
1787
|
-
|
|
1788
|
-
def content(self) -> memoryview: ...
|
|
1834
|
+
def set_bind_offset(self, offset: int) -> None: ...
|
|
1789
1835
|
|
|
1790
|
-
def
|
|
1836
|
+
def set_bind_size(self, size: int) -> None: ...
|
|
1791
1837
|
|
|
1792
|
-
|
|
1793
|
-
def __init__(self) -> None: ...
|
|
1838
|
+
def set_weak_bind_offset(self, offset: int) -> None: ...
|
|
1794
1839
|
|
|
1795
|
-
|
|
1796
|
-
@staticmethod
|
|
1797
|
-
def from_value(arg: int, /) -> LoadCommand.TYPE: ...
|
|
1840
|
+
def set_weak_bind_size(self, size: int) -> None: ...
|
|
1798
1841
|
|
|
1799
|
-
|
|
1842
|
+
def set_lazy_bind_offset(self, offset: int) -> None: ...
|
|
1800
1843
|
|
|
1801
|
-
|
|
1844
|
+
def set_lazy_bind_size(self, size: int) -> None: ...
|
|
1802
1845
|
|
|
1803
|
-
|
|
1846
|
+
def set_export_offset(self, offset: int) -> None: ...
|
|
1804
1847
|
|
|
1805
|
-
|
|
1848
|
+
def set_export_size(self, size: int) -> None: ...
|
|
1806
1849
|
|
|
1807
|
-
|
|
1850
|
+
def __str__(self) -> str: ...
|
|
1808
1851
|
|
|
1809
|
-
|
|
1852
|
+
class DyldChainedFixups(LoadCommand):
|
|
1853
|
+
class it_binding_info:
|
|
1854
|
+
def __getitem__(self, arg: int, /) -> ChainedBindingInfo: ...
|
|
1810
1855
|
|
|
1811
|
-
|
|
1856
|
+
def __len__(self) -> int: ...
|
|
1812
1857
|
|
|
1813
|
-
|
|
1858
|
+
def __iter__(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1814
1859
|
|
|
1815
|
-
|
|
1860
|
+
def __next__(self) -> ChainedBindingInfo: ...
|
|
1816
1861
|
|
|
1817
|
-
|
|
1862
|
+
class it_chained_starts_in_segments_t:
|
|
1863
|
+
def __getitem__(self, arg: int, /) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1818
1864
|
|
|
1819
|
-
|
|
1865
|
+
def __len__(self) -> int: ...
|
|
1820
1866
|
|
|
1821
|
-
|
|
1867
|
+
def __iter__(self) -> DyldChainedFixups.it_chained_starts_in_segments_t: ...
|
|
1822
1868
|
|
|
1823
|
-
|
|
1869
|
+
def __next__(self) -> DyldChainedFixups.chained_starts_in_segment: ...
|
|
1824
1870
|
|
|
1825
|
-
|
|
1871
|
+
class chained_starts_in_segment:
|
|
1872
|
+
@property
|
|
1873
|
+
def offset(self) -> int: ...
|
|
1826
1874
|
|
|
1827
|
-
|
|
1875
|
+
@property
|
|
1876
|
+
def size(self) -> int: ...
|
|
1828
1877
|
|
|
1829
|
-
|
|
1878
|
+
@property
|
|
1879
|
+
def page_size(self) -> int: ...
|
|
1830
1880
|
|
|
1831
|
-
|
|
1881
|
+
@property
|
|
1882
|
+
def segment_offset(self) -> int: ...
|
|
1832
1883
|
|
|
1833
|
-
|
|
1884
|
+
@property
|
|
1885
|
+
def page_start(self) -> list[int]: ...
|
|
1834
1886
|
|
|
1835
|
-
|
|
1887
|
+
@property
|
|
1888
|
+
def pointer_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
1836
1889
|
|
|
1837
|
-
|
|
1890
|
+
@property
|
|
1891
|
+
def max_valid_pointer(self) -> int: ...
|
|
1838
1892
|
|
|
1839
|
-
|
|
1893
|
+
@property
|
|
1894
|
+
def page_count(self) -> int: ...
|
|
1840
1895
|
|
|
1841
|
-
|
|
1896
|
+
@property
|
|
1897
|
+
def segment(self) -> SegmentCommand: ...
|
|
1842
1898
|
|
|
1843
|
-
|
|
1899
|
+
def __str__(self) -> str: ...
|
|
1844
1900
|
|
|
1845
|
-
|
|
1901
|
+
data_offset: int
|
|
1846
1902
|
|
|
1847
|
-
|
|
1903
|
+
data_size: int
|
|
1848
1904
|
|
|
1849
|
-
|
|
1905
|
+
@property
|
|
1906
|
+
def payload(self) -> memoryview: ...
|
|
1850
1907
|
|
|
1851
|
-
|
|
1908
|
+
@property
|
|
1909
|
+
def bindings(self) -> DyldChainedFixups.it_binding_info: ...
|
|
1852
1910
|
|
|
1853
|
-
|
|
1911
|
+
@property
|
|
1912
|
+
def chained_starts_in_segments(self) -> DyldChainedFixups.it_chained_starts_in_segments_t: ...
|
|
1854
1913
|
|
|
1855
|
-
|
|
1914
|
+
fixups_version: int
|
|
1856
1915
|
|
|
1857
|
-
|
|
1916
|
+
starts_offset: int
|
|
1858
1917
|
|
|
1859
|
-
|
|
1918
|
+
imports_offset: int
|
|
1860
1919
|
|
|
1861
|
-
|
|
1920
|
+
symbols_offset: int
|
|
1862
1921
|
|
|
1863
|
-
|
|
1922
|
+
imports_count: int
|
|
1864
1923
|
|
|
1865
|
-
|
|
1924
|
+
symbols_format: int
|
|
1866
1925
|
|
|
1867
|
-
|
|
1926
|
+
imports_format: DYLD_CHAINED_FORMAT
|
|
1868
1927
|
|
|
1869
|
-
|
|
1928
|
+
def __str__(self) -> str: ...
|
|
1870
1929
|
|
|
1871
|
-
|
|
1930
|
+
class DyldExportsTrie(LoadCommand):
|
|
1931
|
+
class it_export_info:
|
|
1932
|
+
def __getitem__(self, arg: int, /) -> ExportInfo: ...
|
|
1872
1933
|
|
|
1873
|
-
|
|
1934
|
+
def __len__(self) -> int: ...
|
|
1874
1935
|
|
|
1875
|
-
|
|
1936
|
+
def __iter__(self) -> DyldExportsTrie.it_export_info: ...
|
|
1876
1937
|
|
|
1877
|
-
|
|
1938
|
+
def __next__(self) -> ExportInfo: ...
|
|
1878
1939
|
|
|
1879
|
-
|
|
1940
|
+
data_offset: int
|
|
1880
1941
|
|
|
1881
|
-
|
|
1942
|
+
data_size: int
|
|
1882
1943
|
|
|
1883
|
-
|
|
1944
|
+
@property
|
|
1945
|
+
def content(self) -> memoryview: ...
|
|
1884
1946
|
|
|
1885
|
-
|
|
1947
|
+
@property
|
|
1948
|
+
def exports(self) -> DyldExportsTrie.it_export_info: ...
|
|
1886
1949
|
|
|
1887
|
-
|
|
1950
|
+
def show_export_trie(self) -> str: ...
|
|
1888
1951
|
|
|
1889
|
-
|
|
1952
|
+
def __str__(self) -> str: ...
|
|
1890
1953
|
|
|
1891
|
-
|
|
1954
|
+
class DylibCommand(LoadCommand):
|
|
1955
|
+
name: str
|
|
1892
1956
|
|
|
1893
|
-
|
|
1957
|
+
timestamp: int
|
|
1894
1958
|
|
|
1895
|
-
|
|
1959
|
+
current_version: list[int]
|
|
1896
1960
|
|
|
1897
|
-
|
|
1961
|
+
compatibility_version: list[int]
|
|
1898
1962
|
|
|
1899
|
-
|
|
1963
|
+
@staticmethod
|
|
1964
|
+
def weak_lib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1900
1965
|
|
|
1901
|
-
|
|
1966
|
+
@staticmethod
|
|
1967
|
+
def id_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1902
1968
|
|
|
1903
|
-
|
|
1969
|
+
@staticmethod
|
|
1970
|
+
def load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1904
1971
|
|
|
1905
|
-
|
|
1972
|
+
@staticmethod
|
|
1973
|
+
def reexport_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1906
1974
|
|
|
1907
|
-
|
|
1975
|
+
@staticmethod
|
|
1976
|
+
def load_upward_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1908
1977
|
|
|
1909
|
-
|
|
1978
|
+
@staticmethod
|
|
1979
|
+
def lazy_load_dylib(name: str, timestamp: int = 0, current_version: int = 0, compat_version: int = 0) -> DylibCommand: ...
|
|
1910
1980
|
|
|
1911
|
-
|
|
1981
|
+
def __str__(self) -> str: ...
|
|
1912
1982
|
|
|
1913
|
-
|
|
1983
|
+
class ThreadCommand(LoadCommand):
|
|
1984
|
+
def __init__(self, arg0: int, arg1: int, arg2: Header.CPU_TYPE, /) -> None: ...
|
|
1914
1985
|
|
|
1915
|
-
|
|
1986
|
+
flavor: int
|
|
1916
1987
|
|
|
1917
|
-
|
|
1988
|
+
state: memoryview
|
|
1918
1989
|
|
|
1919
|
-
|
|
1990
|
+
count: int
|
|
1920
1991
|
|
|
1921
|
-
|
|
1992
|
+
@property
|
|
1993
|
+
def pc(self) -> int: ...
|
|
1922
1994
|
|
|
1923
|
-
|
|
1995
|
+
architecture: Header.CPU_TYPE
|
|
1924
1996
|
|
|
1925
1997
|
def __str__(self) -> str: ...
|
|
1926
1998
|
|
|
1927
|
-
class
|
|
1999
|
+
class RPathCommand(LoadCommand):
|
|
1928
2000
|
@staticmethod
|
|
1929
|
-
def
|
|
2001
|
+
def create(path: str) -> Optional[RPathCommand]: ...
|
|
1930
2002
|
|
|
1931
|
-
|
|
2003
|
+
path: str
|
|
1932
2004
|
|
|
1933
|
-
def
|
|
2005
|
+
def __str__(self) -> str: ...
|
|
1934
2006
|
|
|
1935
|
-
|
|
2007
|
+
class Symbol(lief.Symbol):
|
|
2008
|
+
def __init__(self) -> None: ...
|
|
1936
2009
|
|
|
1937
|
-
|
|
2010
|
+
class CATEGORY(enum.Enum):
|
|
2011
|
+
@staticmethod
|
|
2012
|
+
def from_value(arg: int, /) -> Symbol.CATEGORY: ...
|
|
1938
2013
|
|
|
1939
|
-
|
|
2014
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1940
2015
|
|
|
1941
|
-
|
|
2016
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1942
2017
|
|
|
1943
|
-
|
|
2018
|
+
def __int__(self) -> int: ...
|
|
1944
2019
|
|
|
1945
|
-
|
|
2020
|
+
NONE = 0
|
|
1946
2021
|
|
|
1947
|
-
|
|
2022
|
+
LOCAL = 1
|
|
1948
2023
|
|
|
1949
|
-
|
|
2024
|
+
EXTERNAL = 2
|
|
1950
2025
|
|
|
1951
|
-
|
|
1952
|
-
def __init__(self, arg0: int, arg1: int, /) -> None: ...
|
|
2026
|
+
UNDEFINED = 3
|
|
1953
2027
|
|
|
1954
|
-
|
|
2028
|
+
INDIRECT_ABS = 4
|
|
1955
2029
|
|
|
1956
|
-
|
|
2030
|
+
INDIRECT_LOCAL = 5
|
|
1957
2031
|
|
|
1958
|
-
|
|
2032
|
+
INDIRECT_ABS_LOCAL = 6
|
|
1959
2033
|
|
|
1960
|
-
class
|
|
1961
|
-
|
|
1962
|
-
|
|
2034
|
+
class ORIGIN(enum.Enum):
|
|
2035
|
+
@staticmethod
|
|
2036
|
+
def from_value(arg: int, /) -> Symbol.ORIGIN: ...
|
|
1963
2037
|
|
|
1964
|
-
|
|
2038
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1965
2039
|
|
|
1966
|
-
|
|
2040
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1967
2041
|
|
|
1968
|
-
|
|
2042
|
+
def __int__(self) -> int: ...
|
|
1969
2043
|
|
|
1970
|
-
|
|
2044
|
+
UNKNOWN = 0
|
|
1971
2045
|
|
|
1972
|
-
|
|
2046
|
+
DYLD_EXPORT = 1
|
|
1973
2047
|
|
|
1974
|
-
|
|
2048
|
+
DYLD_BIND = 2
|
|
1975
2049
|
|
|
1976
|
-
|
|
2050
|
+
LC_SYMTAB = 3
|
|
1977
2051
|
|
|
1978
|
-
|
|
2052
|
+
class TYPE(enum.Enum):
|
|
2053
|
+
@staticmethod
|
|
2054
|
+
def from_value(arg: int, /) -> Symbol.TYPE: ...
|
|
1979
2055
|
|
|
1980
|
-
|
|
2056
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
1981
2057
|
|
|
1982
|
-
|
|
2058
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
1983
2059
|
|
|
1984
|
-
|
|
2060
|
+
def __int__(self) -> int: ...
|
|
1985
2061
|
|
|
1986
|
-
|
|
2062
|
+
UNDEFINED = 0
|
|
1987
2063
|
|
|
1988
|
-
|
|
2064
|
+
ABSOLUTE_SYM = 2
|
|
1989
2065
|
|
|
1990
|
-
|
|
2066
|
+
SECTION = 14
|
|
1991
2067
|
|
|
1992
|
-
|
|
2068
|
+
PREBOUND = 12
|
|
1993
2069
|
|
|
1994
|
-
|
|
2070
|
+
INDIRECT = 10
|
|
1995
2071
|
|
|
1996
|
-
|
|
2072
|
+
@property
|
|
2073
|
+
def demangled_name(self) -> str: ...
|
|
1997
2074
|
|
|
1998
|
-
|
|
2075
|
+
@property
|
|
2076
|
+
def category(self) -> Symbol.CATEGORY: ...
|
|
1999
2077
|
|
|
2000
|
-
|
|
2078
|
+
raw_type: int
|
|
2001
2079
|
|
|
2002
|
-
|
|
2003
|
-
def
|
|
2080
|
+
@property
|
|
2081
|
+
def type(self) -> Symbol.TYPE: ...
|
|
2004
2082
|
|
|
2005
|
-
|
|
2083
|
+
numberof_sections: int
|
|
2006
2084
|
|
|
2007
|
-
|
|
2085
|
+
description: int
|
|
2008
2086
|
|
|
2009
|
-
|
|
2087
|
+
@property
|
|
2088
|
+
def has_export_info(self) -> bool: ...
|
|
2010
2089
|
|
|
2011
|
-
|
|
2090
|
+
@property
|
|
2091
|
+
def origin(self) -> Symbol.ORIGIN: ...
|
|
2012
2092
|
|
|
2013
|
-
|
|
2093
|
+
@property
|
|
2094
|
+
def export_info(self) -> ExportInfo: ...
|
|
2014
2095
|
|
|
2015
|
-
|
|
2096
|
+
@property
|
|
2097
|
+
def has_binding_info(self) -> bool: ...
|
|
2016
2098
|
|
|
2017
|
-
|
|
2099
|
+
@property
|
|
2100
|
+
def binding_info(self) -> BindingInfo: ...
|
|
2018
2101
|
|
|
2019
|
-
|
|
2102
|
+
@property
|
|
2103
|
+
def library(self) -> DylibCommand: ...
|
|
2020
2104
|
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
def create(path: str) -> Optional[RPathCommand]: ...
|
|
2105
|
+
@property
|
|
2106
|
+
def is_external(self) -> bool: ...
|
|
2024
2107
|
|
|
2025
|
-
|
|
2108
|
+
@property
|
|
2109
|
+
def library_ordinal(self) -> int: ...
|
|
2026
2110
|
|
|
2027
2111
|
def __str__(self) -> str: ...
|
|
2028
2112
|
|
|
@@ -2077,6 +2161,14 @@ class Relocation(lief.Relocation):
|
|
|
2077
2161
|
|
|
2078
2162
|
def __str__(self) -> str: ...
|
|
2079
2163
|
|
|
2164
|
+
class RelocationObject(Relocation):
|
|
2165
|
+
value: int
|
|
2166
|
+
|
|
2167
|
+
@property
|
|
2168
|
+
def is_scattered(self) -> bool: ...
|
|
2169
|
+
|
|
2170
|
+
def __str__(self) -> str: ...
|
|
2171
|
+
|
|
2080
2172
|
class RelocationDyld(Relocation):
|
|
2081
2173
|
def __le__(self, arg: RelocationDyld, /) -> bool: ...
|
|
2082
2174
|
|
|
@@ -2095,55 +2187,39 @@ class RelocationFixup(Relocation):
|
|
|
2095
2187
|
|
|
2096
2188
|
def __str__(self) -> str: ...
|
|
2097
2189
|
|
|
2098
|
-
class
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
@property
|
|
2102
|
-
def is_scattered(self) -> bool: ...
|
|
2103
|
-
|
|
2104
|
-
def __str__(self) -> str: ...
|
|
2105
|
-
|
|
2106
|
-
class Routine(LoadCommand):
|
|
2107
|
-
init_address: int
|
|
2108
|
-
|
|
2109
|
-
init_module: int
|
|
2110
|
-
|
|
2111
|
-
reserved1: int
|
|
2112
|
-
|
|
2113
|
-
reserved2: int
|
|
2114
|
-
|
|
2115
|
-
reserved3: int
|
|
2116
|
-
|
|
2117
|
-
reserved4: int
|
|
2190
|
+
class BindingInfo(lief.Object):
|
|
2191
|
+
address: int
|
|
2118
2192
|
|
|
2119
|
-
|
|
2193
|
+
library_ordinal: int
|
|
2120
2194
|
|
|
2121
|
-
|
|
2195
|
+
addend: int
|
|
2122
2196
|
|
|
2123
|
-
|
|
2197
|
+
weak_import: bool
|
|
2124
2198
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
def __init__(self) -> None: ...
|
|
2199
|
+
@property
|
|
2200
|
+
def has_library(self) -> bool: ...
|
|
2128
2201
|
|
|
2129
|
-
@
|
|
2130
|
-
def
|
|
2202
|
+
@property
|
|
2203
|
+
def library(self) -> DylibCommand: ...
|
|
2131
2204
|
|
|
2132
|
-
@
|
|
2133
|
-
def
|
|
2205
|
+
@property
|
|
2206
|
+
def has_segment(self) -> bool: ...
|
|
2134
2207
|
|
|
2135
|
-
|
|
2136
|
-
|
|
2208
|
+
@property
|
|
2209
|
+
def segment(self) -> SegmentCommand: ...
|
|
2137
2210
|
|
|
2138
|
-
|
|
2211
|
+
@property
|
|
2212
|
+
def has_symbol(self) -> bool: ...
|
|
2139
2213
|
|
|
2140
|
-
|
|
2214
|
+
@property
|
|
2215
|
+
def symbol(self) -> Symbol: ...
|
|
2141
2216
|
|
|
2142
|
-
|
|
2217
|
+
def __str__(self) -> str: ...
|
|
2143
2218
|
|
|
2144
|
-
|
|
2219
|
+
class DyldBindingInfo(BindingInfo):
|
|
2220
|
+
class CLASS(enum.Enum):
|
|
2145
2221
|
@staticmethod
|
|
2146
|
-
def from_value(arg: int, /) ->
|
|
2222
|
+
def from_value(arg: int, /) -> DyldBindingInfo.CLASS: ...
|
|
2147
2223
|
|
|
2148
2224
|
def __eq__(self, arg, /) -> bool: ...
|
|
2149
2225
|
|
|
@@ -2151,55 +2227,59 @@ class Section(lief.Section):
|
|
|
2151
2227
|
|
|
2152
2228
|
def __int__(self) -> int: ...
|
|
2153
2229
|
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
ZEROFILL = 1
|
|
2230
|
+
WEAK = 1
|
|
2157
2231
|
|
|
2158
|
-
|
|
2232
|
+
LAZY = 2
|
|
2159
2233
|
|
|
2160
|
-
|
|
2234
|
+
STANDARD = 3
|
|
2161
2235
|
|
|
2162
|
-
|
|
2236
|
+
THREADED = 100
|
|
2163
2237
|
|
|
2164
|
-
|
|
2238
|
+
class TYPE(enum.Enum):
|
|
2239
|
+
@staticmethod
|
|
2240
|
+
def from_value(arg: int, /) -> DyldBindingInfo.TYPE: ...
|
|
2165
2241
|
|
|
2166
|
-
|
|
2242
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2167
2243
|
|
|
2168
|
-
|
|
2244
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2169
2245
|
|
|
2170
|
-
|
|
2246
|
+
def __int__(self) -> int: ...
|
|
2171
2247
|
|
|
2172
|
-
|
|
2248
|
+
POINTER = 1
|
|
2173
2249
|
|
|
2174
|
-
|
|
2250
|
+
TEXT_ABSOLUTE32 = 2
|
|
2175
2251
|
|
|
2176
|
-
|
|
2252
|
+
TEXT_PCREL32 = 3
|
|
2177
2253
|
|
|
2178
|
-
|
|
2254
|
+
binding_class: DyldBindingInfo.CLASS
|
|
2179
2255
|
|
|
2180
|
-
|
|
2256
|
+
binding_type: DyldBindingInfo.TYPE
|
|
2181
2257
|
|
|
2182
|
-
|
|
2258
|
+
@property
|
|
2259
|
+
def original_offset(self) -> int: ...
|
|
2183
2260
|
|
|
2184
|
-
|
|
2261
|
+
def __str__(self) -> str: ...
|
|
2185
2262
|
|
|
2186
|
-
|
|
2263
|
+
class ExportInfo(lief.Object):
|
|
2264
|
+
class KIND(enum.Enum):
|
|
2265
|
+
@staticmethod
|
|
2266
|
+
def from_value(arg: int, /) -> ExportInfo.KIND: ...
|
|
2187
2267
|
|
|
2188
|
-
|
|
2268
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2189
2269
|
|
|
2190
|
-
|
|
2270
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2191
2271
|
|
|
2192
|
-
|
|
2272
|
+
def __int__(self) -> int: ...
|
|
2193
2273
|
|
|
2194
|
-
|
|
2274
|
+
REGULAR = 0
|
|
2195
2275
|
|
|
2196
|
-
|
|
2276
|
+
THREAD_LOCAL_KIND = 1
|
|
2197
2277
|
|
|
2198
|
-
|
|
2278
|
+
ABSOLUTE_KIND = 2
|
|
2199
2279
|
|
|
2200
2280
|
class FLAGS(enum.Flag):
|
|
2201
2281
|
@staticmethod
|
|
2202
|
-
def from_value(arg: int, /) ->
|
|
2282
|
+
def from_value(arg: int, /) -> ExportInfo.FLAGS: ...
|
|
2203
2283
|
|
|
2204
2284
|
def __eq__(self, arg, /) -> bool: ...
|
|
2205
2285
|
|
|
@@ -2207,117 +2287,103 @@ class Section(lief.Section):
|
|
|
2207
2287
|
|
|
2208
2288
|
def __int__(self) -> int: ...
|
|
2209
2289
|
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
NO_TOC = 1073741824
|
|
2213
|
-
|
|
2214
|
-
STRIP_STATIC_SYMS = 536870912
|
|
2215
|
-
|
|
2216
|
-
NO_DEAD_STRIP = 268435456
|
|
2217
|
-
|
|
2218
|
-
LIVE_SUPPORT = 134217728
|
|
2219
|
-
|
|
2220
|
-
SELF_MODIFYING_CODE = 67108864
|
|
2221
|
-
|
|
2222
|
-
DEBUG_INFO = 33554432
|
|
2223
|
-
|
|
2224
|
-
SOME_INSTRUCTIONS = 1024
|
|
2225
|
-
|
|
2226
|
-
EXT_RELOC = 512
|
|
2227
|
-
|
|
2228
|
-
LOC_RELOC = 256
|
|
2229
|
-
|
|
2230
|
-
alignment: int
|
|
2290
|
+
WEAK_DEFINITION = 4
|
|
2231
2291
|
|
|
2232
|
-
|
|
2292
|
+
REEXPORT = 8
|
|
2233
2293
|
|
|
2234
|
-
|
|
2294
|
+
STUB_AND_RESOLVER = 16
|
|
2235
2295
|
|
|
2236
|
-
|
|
2296
|
+
@property
|
|
2297
|
+
def node_offset(self) -> int: ...
|
|
2237
2298
|
|
|
2238
2299
|
@property
|
|
2239
|
-
def
|
|
2300
|
+
def kind(self) -> ExportInfo.KIND: ...
|
|
2240
2301
|
|
|
2241
|
-
|
|
2302
|
+
@property
|
|
2303
|
+
def flags_list(self) -> list[ExportInfo.FLAGS]: ...
|
|
2242
2304
|
|
|
2243
|
-
|
|
2305
|
+
flags: int
|
|
2244
2306
|
|
|
2245
|
-
|
|
2307
|
+
address: int
|
|
2246
2308
|
|
|
2247
|
-
|
|
2309
|
+
@property
|
|
2310
|
+
def alias(self) -> Symbol: ...
|
|
2248
2311
|
|
|
2249
2312
|
@property
|
|
2250
|
-
def
|
|
2313
|
+
def alias_library(self) -> DylibCommand: ...
|
|
2251
2314
|
|
|
2252
2315
|
@property
|
|
2253
|
-
def
|
|
2316
|
+
def has_symbol(self) -> bool: ...
|
|
2254
2317
|
|
|
2255
|
-
|
|
2318
|
+
def has(self, flag: ExportInfo.FLAGS) -> bool: ...
|
|
2256
2319
|
|
|
2257
2320
|
@property
|
|
2258
|
-
def
|
|
2321
|
+
def symbol(self) -> Symbol: ...
|
|
2259
2322
|
|
|
2260
|
-
def
|
|
2323
|
+
def __str__(self) -> str: ...
|
|
2261
2324
|
|
|
2262
|
-
|
|
2325
|
+
class FunctionStarts(LoadCommand):
|
|
2326
|
+
data_offset: int
|
|
2263
2327
|
|
|
2264
|
-
|
|
2328
|
+
data_size: int
|
|
2265
2329
|
|
|
2266
|
-
|
|
2330
|
+
functions: list[int]
|
|
2267
2331
|
|
|
2268
|
-
def
|
|
2332
|
+
def add_function(self, address: int) -> None: ...
|
|
2269
2333
|
|
|
2270
|
-
|
|
2334
|
+
@property
|
|
2335
|
+
def content(self) -> memoryview: ...
|
|
2271
2336
|
|
|
2272
2337
|
def __str__(self) -> str: ...
|
|
2273
2338
|
|
|
2274
|
-
class
|
|
2275
|
-
|
|
2276
|
-
def __init__(self) -> None: ...
|
|
2339
|
+
class CodeSignature(LoadCommand):
|
|
2340
|
+
data_offset: int
|
|
2277
2341
|
|
|
2278
|
-
|
|
2279
|
-
def __init__(self, arg: str, /) -> None: ...
|
|
2342
|
+
data_size: int
|
|
2280
2343
|
|
|
2281
|
-
@
|
|
2282
|
-
def
|
|
2344
|
+
@property
|
|
2345
|
+
def content(self) -> memoryview: ...
|
|
2283
2346
|
|
|
2284
|
-
|
|
2285
|
-
def __getitem__(self, arg: int, /) -> Section: ...
|
|
2347
|
+
def __str__(self) -> str: ...
|
|
2286
2348
|
|
|
2287
|
-
|
|
2349
|
+
class CodeSignatureDir(LoadCommand):
|
|
2350
|
+
data_offset: int
|
|
2288
2351
|
|
|
2289
|
-
|
|
2352
|
+
data_size: int
|
|
2290
2353
|
|
|
2291
|
-
|
|
2354
|
+
@property
|
|
2355
|
+
def content(self) -> memoryview: ...
|
|
2292
2356
|
|
|
2293
|
-
|
|
2294
|
-
def __getitem__(self, arg: int, /) -> Relocation: ...
|
|
2357
|
+
def __str__(self) -> str: ...
|
|
2295
2358
|
|
|
2296
|
-
|
|
2359
|
+
class it_data_in_code_entries:
|
|
2360
|
+
def __getitem__(self, arg: int, /) -> DataCodeEntry: ...
|
|
2297
2361
|
|
|
2298
|
-
|
|
2362
|
+
def __len__(self) -> int: ...
|
|
2299
2363
|
|
|
2300
|
-
|
|
2364
|
+
def __iter__(self) -> it_data_in_code_entries: ...
|
|
2301
2365
|
|
|
2302
|
-
|
|
2303
|
-
@staticmethod
|
|
2304
|
-
def from_value(arg: int, /) -> SegmentCommand.VM_PROTECTIONS: ...
|
|
2366
|
+
def __next__(self) -> DataCodeEntry: ...
|
|
2305
2367
|
|
|
2306
|
-
|
|
2368
|
+
class DataInCode(LoadCommand):
|
|
2369
|
+
data_offset: int
|
|
2307
2370
|
|
|
2308
|
-
|
|
2371
|
+
data_size: int
|
|
2309
2372
|
|
|
2310
|
-
|
|
2373
|
+
@property
|
|
2374
|
+
def entries(self) -> it_data_in_code_entries: ...
|
|
2311
2375
|
|
|
2312
|
-
|
|
2376
|
+
def add(self, entry: DataCodeEntry) -> DataInCode: ...
|
|
2313
2377
|
|
|
2314
|
-
|
|
2378
|
+
@property
|
|
2379
|
+
def content(self) -> memoryview: ...
|
|
2315
2380
|
|
|
2316
|
-
|
|
2381
|
+
def __str__(self) -> str: ...
|
|
2317
2382
|
|
|
2318
|
-
|
|
2383
|
+
class DataCodeEntry(lief.Object):
|
|
2384
|
+
class TYPES(enum.Enum):
|
|
2319
2385
|
@staticmethod
|
|
2320
|
-
def from_value(arg: int, /) ->
|
|
2386
|
+
def from_value(arg: int, /) -> DataCodeEntry.TYPES: ...
|
|
2321
2387
|
|
|
2322
2388
|
def __eq__(self, arg, /) -> bool: ...
|
|
2323
2389
|
|
|
@@ -2325,62 +2391,23 @@ class SegmentCommand(LoadCommand):
|
|
|
2325
2391
|
|
|
2326
2392
|
def __int__(self) -> int: ...
|
|
2327
2393
|
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
FVMLIB = 2
|
|
2331
|
-
|
|
2332
|
-
NORELOC = 4
|
|
2333
|
-
|
|
2334
|
-
PROTECTED_VERSION_1 = 8
|
|
2335
|
-
|
|
2336
|
-
READ_ONLY = 16
|
|
2337
|
-
|
|
2338
|
-
name: Union[str, bytes]
|
|
2339
|
-
|
|
2340
|
-
virtual_address: int
|
|
2341
|
-
|
|
2342
|
-
virtual_size: int
|
|
2343
|
-
|
|
2344
|
-
file_size: int
|
|
2345
|
-
|
|
2346
|
-
file_offset: int
|
|
2347
|
-
|
|
2348
|
-
max_protection: int
|
|
2349
|
-
|
|
2350
|
-
init_protection: int
|
|
2351
|
-
|
|
2352
|
-
numberof_sections: int
|
|
2353
|
-
|
|
2354
|
-
@property
|
|
2355
|
-
def sections(self) -> SegmentCommand.it_sections: ...
|
|
2356
|
-
|
|
2357
|
-
@property
|
|
2358
|
-
def relocations(self) -> SegmentCommand.it_relocations: ...
|
|
2359
|
-
|
|
2360
|
-
@property
|
|
2361
|
-
def index(self) -> int: ...
|
|
2362
|
-
|
|
2363
|
-
content: memoryview
|
|
2364
|
-
|
|
2365
|
-
flags: int
|
|
2394
|
+
UNKNOWN = 0
|
|
2366
2395
|
|
|
2367
|
-
|
|
2396
|
+
DATA = 1
|
|
2368
2397
|
|
|
2369
|
-
|
|
2398
|
+
JUMP_TABLE_8 = 2
|
|
2370
2399
|
|
|
2371
|
-
|
|
2400
|
+
JUMP_TABLE_16 = 3
|
|
2372
2401
|
|
|
2373
|
-
|
|
2402
|
+
JUMP_TABLE_32 = 4
|
|
2374
2403
|
|
|
2375
|
-
|
|
2404
|
+
ABS_JUMP_TABLE_32 = 5
|
|
2376
2405
|
|
|
2377
|
-
|
|
2378
|
-
data_offset: int
|
|
2406
|
+
offset: int
|
|
2379
2407
|
|
|
2380
|
-
|
|
2408
|
+
length: int
|
|
2381
2409
|
|
|
2382
|
-
|
|
2383
|
-
def content(self) -> memoryview: ...
|
|
2410
|
+
type: DataCodeEntry.TYPES
|
|
2384
2411
|
|
|
2385
2412
|
def __str__(self) -> str: ...
|
|
2386
2413
|
|
|
@@ -2389,71 +2416,70 @@ class SourceVersion(LoadCommand):
|
|
|
2389
2416
|
|
|
2390
2417
|
def __str__(self) -> str: ...
|
|
2391
2418
|
|
|
2392
|
-
class
|
|
2393
|
-
|
|
2419
|
+
class Routine(LoadCommand):
|
|
2420
|
+
init_address: int
|
|
2394
2421
|
|
|
2395
|
-
|
|
2396
|
-
@overload
|
|
2397
|
-
def __init__(self) -> None: ...
|
|
2422
|
+
init_module: int
|
|
2398
2423
|
|
|
2399
|
-
|
|
2400
|
-
def __init__(self, arg0: Header.CPU_TYPE, arg1: int, /) -> None: ...
|
|
2424
|
+
reserved1: int
|
|
2401
2425
|
|
|
2402
|
-
|
|
2426
|
+
reserved2: int
|
|
2403
2427
|
|
|
2404
|
-
|
|
2428
|
+
reserved3: int
|
|
2405
2429
|
|
|
2406
|
-
|
|
2407
|
-
def address(self) -> int: ...
|
|
2430
|
+
reserved4: int
|
|
2408
2431
|
|
|
2409
|
-
|
|
2410
|
-
def raw(self) -> memoryview: ...
|
|
2432
|
+
reserved5: int
|
|
2411
2433
|
|
|
2412
|
-
|
|
2413
|
-
def target(self) -> Union[int, lief.lief_errors]: ...
|
|
2434
|
+
reserved6: int
|
|
2414
2435
|
|
|
2415
2436
|
def __str__(self) -> str: ...
|
|
2416
2437
|
|
|
2417
|
-
class
|
|
2418
|
-
|
|
2438
|
+
class VersionMin(LoadCommand):
|
|
2439
|
+
version: list[int]
|
|
2440
|
+
|
|
2441
|
+
sdk: list[int]
|
|
2419
2442
|
|
|
2420
2443
|
def __str__(self) -> str: ...
|
|
2421
2444
|
|
|
2422
|
-
class
|
|
2423
|
-
|
|
2445
|
+
class SegmentSplitInfo(LoadCommand):
|
|
2446
|
+
data_offset: int
|
|
2424
2447
|
|
|
2425
|
-
|
|
2448
|
+
data_size: int
|
|
2426
2449
|
|
|
2427
|
-
|
|
2428
|
-
def
|
|
2450
|
+
@property
|
|
2451
|
+
def content(self) -> memoryview: ...
|
|
2429
2452
|
|
|
2430
|
-
|
|
2431
|
-
@staticmethod
|
|
2432
|
-
def from_value(arg: int, /) -> Symbol.CATEGORY: ...
|
|
2453
|
+
def __str__(self) -> str: ...
|
|
2433
2454
|
|
|
2434
|
-
|
|
2455
|
+
class SubFramework(LoadCommand):
|
|
2456
|
+
umbrella: str
|
|
2435
2457
|
|
|
2436
|
-
|
|
2458
|
+
def __str__(self) -> str: ...
|
|
2437
2459
|
|
|
2438
|
-
|
|
2460
|
+
class SubClient(LoadCommand):
|
|
2461
|
+
client: str
|
|
2439
2462
|
|
|
2440
|
-
|
|
2463
|
+
def __str__(self) -> str: ...
|
|
2441
2464
|
|
|
2442
|
-
|
|
2465
|
+
class DyldEnvironment(LoadCommand):
|
|
2466
|
+
value: str
|
|
2443
2467
|
|
|
2444
|
-
|
|
2468
|
+
def __str__(self) -> str: ...
|
|
2445
2469
|
|
|
2446
|
-
|
|
2470
|
+
class EncryptionInfo(LoadCommand):
|
|
2471
|
+
crypt_offset: int
|
|
2447
2472
|
|
|
2448
|
-
|
|
2473
|
+
crypt_size: int
|
|
2449
2474
|
|
|
2450
|
-
|
|
2475
|
+
crypt_id: int
|
|
2451
2476
|
|
|
2452
|
-
|
|
2477
|
+
def __str__(self) -> str: ...
|
|
2453
2478
|
|
|
2454
|
-
|
|
2479
|
+
class BuildVersion(LoadCommand):
|
|
2480
|
+
class PLATFORMS(enum.Enum):
|
|
2455
2481
|
@staticmethod
|
|
2456
|
-
def from_value(arg: int, /) ->
|
|
2482
|
+
def from_value(arg: int, /) -> BuildVersion.PLATFORMS: ...
|
|
2457
2483
|
|
|
2458
2484
|
def __eq__(self, arg, /) -> bool: ...
|
|
2459
2485
|
|
|
@@ -2463,99 +2489,99 @@ class Symbol(lief.Symbol):
|
|
|
2463
2489
|
|
|
2464
2490
|
UNKNOWN = 0
|
|
2465
2491
|
|
|
2466
|
-
|
|
2492
|
+
MACOS = 1
|
|
2467
2493
|
|
|
2468
|
-
|
|
2494
|
+
IOS = 2
|
|
2469
2495
|
|
|
2470
|
-
|
|
2496
|
+
TVOS = 3
|
|
2471
2497
|
|
|
2472
|
-
|
|
2473
|
-
@staticmethod
|
|
2474
|
-
def from_value(arg: int, /) -> Symbol.TYPE: ...
|
|
2498
|
+
WATCHOS = 4
|
|
2475
2499
|
|
|
2476
|
-
|
|
2500
|
+
BRIDGEOS = 5
|
|
2477
2501
|
|
|
2478
|
-
|
|
2502
|
+
MAC_CATALYST = 6
|
|
2479
2503
|
|
|
2480
|
-
|
|
2504
|
+
IOS_SIMULATOR = 7
|
|
2481
2505
|
|
|
2482
|
-
|
|
2506
|
+
TVOS_SIMULATOR = 8
|
|
2483
2507
|
|
|
2484
|
-
|
|
2508
|
+
WATCHOS_SIMULATOR = 9
|
|
2485
2509
|
|
|
2486
|
-
|
|
2510
|
+
DRIVERKIT = 10
|
|
2487
2511
|
|
|
2488
|
-
|
|
2512
|
+
VISIONOS = 11
|
|
2489
2513
|
|
|
2490
|
-
|
|
2514
|
+
VISIONOS_SIMULATOR = 12
|
|
2491
2515
|
|
|
2492
|
-
|
|
2493
|
-
def demangled_name(self) -> str: ...
|
|
2516
|
+
FIRMWARE = 13
|
|
2494
2517
|
|
|
2495
|
-
|
|
2496
|
-
def category(self) -> Symbol.CATEGORY: ...
|
|
2518
|
+
SEPOS = 14
|
|
2497
2519
|
|
|
2498
|
-
|
|
2520
|
+
ANY = 4294967295
|
|
2499
2521
|
|
|
2500
|
-
|
|
2501
|
-
def type(self) -> Symbol.TYPE: ...
|
|
2522
|
+
platform: BuildVersion.PLATFORMS
|
|
2502
2523
|
|
|
2503
|
-
|
|
2524
|
+
minos: list[int]
|
|
2504
2525
|
|
|
2505
|
-
|
|
2526
|
+
sdk: list[int]
|
|
2506
2527
|
|
|
2507
2528
|
@property
|
|
2508
|
-
def
|
|
2529
|
+
def tools(self) -> list[BuildToolVersion]: ...
|
|
2509
2530
|
|
|
2510
|
-
|
|
2511
|
-
def origin(self) -> Symbol.ORIGIN: ...
|
|
2531
|
+
def __str__(self) -> str: ...
|
|
2512
2532
|
|
|
2533
|
+
class BuildToolVersion(lief.Object):
|
|
2513
2534
|
@property
|
|
2514
|
-
def
|
|
2535
|
+
def tool(self) -> BuildToolVersion.TOOLS: ...
|
|
2515
2536
|
|
|
2516
2537
|
@property
|
|
2517
|
-
def
|
|
2538
|
+
def version(self) -> list[int]: ...
|
|
2518
2539
|
|
|
2519
|
-
|
|
2520
|
-
def binding_info(self) -> BindingInfo: ...
|
|
2540
|
+
def __str__(self) -> str: ...
|
|
2521
2541
|
|
|
2522
|
-
|
|
2523
|
-
|
|
2542
|
+
class TOOLS(enum.Enum):
|
|
2543
|
+
@staticmethod
|
|
2544
|
+
def from_value(arg: int, /) -> BuildToolVersion.TOOLS: ...
|
|
2524
2545
|
|
|
2525
|
-
|
|
2526
|
-
def is_external(self) -> bool: ...
|
|
2546
|
+
def __eq__(self, arg, /) -> bool: ...
|
|
2527
2547
|
|
|
2528
|
-
|
|
2529
|
-
def library_ordinal(self) -> int: ...
|
|
2548
|
+
def __ne__(self, arg, /) -> bool: ...
|
|
2530
2549
|
|
|
2531
|
-
|
|
2550
|
+
def __int__(self) -> int: ...
|
|
2532
2551
|
|
|
2533
|
-
|
|
2534
|
-
def __init__(self) -> None: ...
|
|
2552
|
+
UNKNOWN = 0
|
|
2535
2553
|
|
|
2536
|
-
|
|
2554
|
+
CLANG = 1
|
|
2537
2555
|
|
|
2538
|
-
|
|
2556
|
+
SWIFT = 2
|
|
2539
2557
|
|
|
2540
|
-
|
|
2558
|
+
LD = 3
|
|
2541
2559
|
|
|
2542
|
-
|
|
2560
|
+
LLD = 4
|
|
2543
2561
|
|
|
2544
|
-
|
|
2562
|
+
class FilesetCommand(LoadCommand):
|
|
2563
|
+
name: str
|
|
2545
2564
|
|
|
2546
|
-
|
|
2547
|
-
def __init__(self, arg0: int, arg1: int, arg2: Header.CPU_TYPE, /) -> None: ...
|
|
2565
|
+
virtual_address: int
|
|
2548
2566
|
|
|
2549
|
-
|
|
2567
|
+
file_offset: int
|
|
2550
2568
|
|
|
2551
|
-
|
|
2569
|
+
@property
|
|
2570
|
+
def binary(self) -> Binary: ...
|
|
2552
2571
|
|
|
2553
|
-
|
|
2572
|
+
def __str__(self) -> str: ...
|
|
2573
|
+
|
|
2574
|
+
class ChainedBindingInfo(BindingInfo):
|
|
2575
|
+
@property
|
|
2576
|
+
def format(self) -> DYLD_CHAINED_FORMAT: ...
|
|
2554
2577
|
|
|
2555
2578
|
@property
|
|
2556
|
-
def
|
|
2579
|
+
def ptr_format(self) -> DYLD_CHAINED_PTR_FORMAT: ...
|
|
2580
|
+
|
|
2581
|
+
offset: int
|
|
2557
2582
|
|
|
2558
|
-
|
|
2583
|
+
@property
|
|
2584
|
+
def sign_extended_addend(self) -> int: ...
|
|
2559
2585
|
|
|
2560
2586
|
def __str__(self) -> str: ...
|
|
2561
2587
|
|
|
@@ -2577,102 +2603,78 @@ class TwoLevelHints(LoadCommand):
|
|
|
2577
2603
|
|
|
2578
2604
|
def __str__(self) -> str: ...
|
|
2579
2605
|
|
|
2580
|
-
class
|
|
2581
|
-
|
|
2606
|
+
class LinkerOptHint(LoadCommand):
|
|
2607
|
+
data_offset: int
|
|
2582
2608
|
|
|
2583
|
-
|
|
2609
|
+
data_size: int
|
|
2584
2610
|
|
|
2585
|
-
class UnknownCommand(LoadCommand):
|
|
2586
2611
|
@property
|
|
2587
|
-
def
|
|
2612
|
+
def content(self) -> memoryview: ...
|
|
2588
2613
|
|
|
2589
2614
|
def __str__(self) -> str: ...
|
|
2590
2615
|
|
|
2591
|
-
class
|
|
2592
|
-
|
|
2616
|
+
class IndirectBindingInfo(BindingInfo):
|
|
2617
|
+
pass
|
|
2593
2618
|
|
|
2594
|
-
|
|
2619
|
+
class UnknownCommand(LoadCommand):
|
|
2620
|
+
@property
|
|
2621
|
+
def original_command(self) -> int: ...
|
|
2595
2622
|
|
|
2596
2623
|
def __str__(self) -> str: ...
|
|
2597
2624
|
|
|
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: ...
|
|
2625
|
+
class Stub:
|
|
2626
|
+
def __init__(self, target_info: Stub.target_info_t, address: int, raw_stub: Sequence[int]) -> None: ...
|
|
2607
2627
|
|
|
2608
|
-
|
|
2628
|
+
class target_info_t:
|
|
2629
|
+
@overload
|
|
2630
|
+
def __init__(self) -> None: ...
|
|
2609
2631
|
|
|
2610
|
-
|
|
2632
|
+
@overload
|
|
2633
|
+
def __init__(self, arg0: Header.CPU_TYPE, arg1: int, /) -> None: ...
|
|
2611
2634
|
|
|
2612
|
-
|
|
2635
|
+
arch: Header.CPU_TYPE
|
|
2613
2636
|
|
|
2614
|
-
|
|
2637
|
+
subtype: int
|
|
2615
2638
|
|
|
2616
|
-
|
|
2639
|
+
@property
|
|
2640
|
+
def address(self) -> int: ...
|
|
2617
2641
|
|
|
2618
|
-
|
|
2642
|
+
@property
|
|
2643
|
+
def raw(self) -> memoryview: ...
|
|
2619
2644
|
|
|
2620
|
-
|
|
2645
|
+
@property
|
|
2646
|
+
def target(self) -> Union[int, lief.lief_errors]: ...
|
|
2621
2647
|
|
|
2622
|
-
|
|
2648
|
+
def __str__(self) -> str: ...
|
|
2623
2649
|
|
|
2624
|
-
|
|
2650
|
+
class Builder:
|
|
2651
|
+
class config_t:
|
|
2652
|
+
def __init__(self) -> None: ...
|
|
2625
2653
|
|
|
2626
|
-
|
|
2654
|
+
linkedit: bool
|
|
2627
2655
|
|
|
2628
|
-
|
|
2656
|
+
@overload
|
|
2629
2657
|
@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
|
|
2658
|
+
def write(binary: Binary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2639
2659
|
|
|
2640
|
-
|
|
2660
|
+
@overload
|
|
2661
|
+
@staticmethod
|
|
2662
|
+
def write(binary: Binary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2641
2663
|
|
|
2642
|
-
|
|
2664
|
+
@overload
|
|
2665
|
+
@staticmethod
|
|
2666
|
+
def write(fat_binary: FatBinary, output: str) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2643
2667
|
|
|
2644
|
-
|
|
2668
|
+
@overload
|
|
2669
|
+
@staticmethod
|
|
2670
|
+
def write(fat_binary: FatBinary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2645
2671
|
|
|
2646
|
-
|
|
2672
|
+
def is_fat(file: str) -> bool: ...
|
|
2647
2673
|
|
|
2648
|
-
|
|
2674
|
+
def is_64(file: str) -> bool: ...
|
|
2649
2675
|
|
|
2650
2676
|
@overload
|
|
2651
2677
|
def check_layout(file: Binary) -> tuple[bool, str]: ...
|
|
2652
2678
|
|
|
2653
2679
|
@overload
|
|
2654
2680
|
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]: ...
|