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