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