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