lief 0.16.6__cp311-cp311-musllinux_1_2_aarch64.whl → 0.17.0__cp311-cp311-musllinux_1_2_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lief might be problematic. Click here for more details.
- lief/ART/__init__.pyi +1 -1
- lief/COFF/__init__.pyi +708 -0
- lief/DEX/__init__.pyi +7 -1
- lief/ELF/__init__.pyi +473 -14
- lief/MachO/__init__.pyi +441 -23
- lief/OAT/__init__.pyi +1 -1
- lief/PE/__init__.pyi +2515 -1903
- lief/PE/unwind_aarch64/__init__.pyi +58 -0
- lief/PE/unwind_x64/__init__.pyi +53 -0
- lief/VDEX/__init__.pyi +1 -1
- lief/__init__.py +1 -1
- lief/__init__.pyi +40 -14
- lief/_lief.so +0 -0
- lief/assembly/__init__.pyi +17 -0
- lief/assembly/aarch64/__init__.pyi +10989 -8863
- lief/assembly/arm/__init__.pyi +4516 -4486
- lief/assembly/ebpf/__init__.pyi +530 -476
- lief/assembly/mips/__init__.pyi +2921 -2883
- lief/assembly/powerpc/__init__.pyi +2953 -2841
- lief/assembly/riscv/__init__.pyi +14783 -13821
- lief/assembly/x86/__init__.pyi +24948 -19904
- lief/dsc/__init__.pyi +7 -3
- lief/dwarf/__init__.pyi +15 -2
- lief/dwarf/editor/__init__.pyi +138 -0
- lief/pdb/__init__.pyi +235 -1
- {lief-0.16.6.dist-info → lief-0.17.0.dist-info}/METADATA +1 -1
- lief-0.17.0.dist-info/RECORD +37 -0
- lief-0.16.6.dist-info/RECORD +0 -33
- {lief-0.16.6.dist-info → lief-0.17.0.dist-info}/WHEEL +0 -0
lief/MachO/__init__.pyi
CHANGED
|
@@ -28,9 +28,9 @@ class MACHO_TYPES(enum.Enum):
|
|
|
28
28
|
|
|
29
29
|
CIGAM_64 = 3489328638
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
MAGIC_FAT = 3405691582
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
CIGAM_FAT = 3199925962
|
|
34
34
|
|
|
35
35
|
NEURAL_MODEL = 3203398350
|
|
36
36
|
|
|
@@ -242,6 +242,10 @@ class DYLD_CHAINED_PTR_FORMAT(enum.Enum):
|
|
|
242
242
|
|
|
243
243
|
PTR_ARM64E_USERLAND24 = 12
|
|
244
244
|
|
|
245
|
+
PTR_ARM64E_SHARED_CACHE = 13
|
|
246
|
+
|
|
247
|
+
PTR_ARM64E_SEGMENTED = 14
|
|
248
|
+
|
|
245
249
|
class ParserConfig:
|
|
246
250
|
def __init__(self) -> None: ...
|
|
247
251
|
|
|
@@ -261,17 +265,10 @@ class ParserConfig:
|
|
|
261
265
|
|
|
262
266
|
quick: ParserConfig = ...
|
|
263
267
|
|
|
264
|
-
@overload
|
|
265
|
-
def parse(filename: str, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
266
|
-
|
|
267
|
-
@overload
|
|
268
|
-
def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
269
|
-
|
|
270
|
-
@overload
|
|
271
|
-
def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
272
|
-
|
|
273
268
|
def parse_from_memory(address: int, config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
274
269
|
|
|
270
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], config: ParserConfig = ...) -> Optional[FatBinary]: ...
|
|
271
|
+
|
|
275
272
|
class ChainedPointerAnalysis:
|
|
276
273
|
class dyld_chained_ptr_arm64e_rebase_t:
|
|
277
274
|
@property
|
|
@@ -522,6 +519,48 @@ class ChainedPointerAnalysis:
|
|
|
522
519
|
|
|
523
520
|
def __str__(self) -> str: ...
|
|
524
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
|
+
|
|
525
564
|
@staticmethod
|
|
526
565
|
def stride(fmt: DYLD_CHAINED_PTR_FORMAT) -> int: ...
|
|
527
566
|
|
|
@@ -573,7 +612,13 @@ class ChainedPointerAnalysis:
|
|
|
573
612
|
@property
|
|
574
613
|
def dyld_chained_ptr_32_firmware_rebase(self) -> ChainedPointerAnalysis.dyld_chained_ptr_32_firmware_rebase_t: ...
|
|
575
614
|
|
|
576
|
-
|
|
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]: ...
|
|
577
622
|
|
|
578
623
|
class FatBinary:
|
|
579
624
|
class it_binaries:
|
|
@@ -686,6 +731,15 @@ class Binary(lief.Binary):
|
|
|
686
731
|
|
|
687
732
|
def __next__(self) -> SubClient: ...
|
|
688
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
|
+
|
|
689
743
|
class range_t:
|
|
690
744
|
start: int
|
|
691
745
|
|
|
@@ -913,6 +967,24 @@ class Binary(lief.Binary):
|
|
|
913
967
|
@property
|
|
914
968
|
def linker_opt_hint(self) -> LinkerOptHint: ...
|
|
915
969
|
|
|
970
|
+
@property
|
|
971
|
+
def has_atom_info(self) -> bool: ...
|
|
972
|
+
|
|
973
|
+
@property
|
|
974
|
+
def atom_info(self) -> AtomInfo: ...
|
|
975
|
+
|
|
976
|
+
@property
|
|
977
|
+
def has_function_variants(self) -> bool: ...
|
|
978
|
+
|
|
979
|
+
@property
|
|
980
|
+
def function_variants(self) -> FunctionVariants: ...
|
|
981
|
+
|
|
982
|
+
@property
|
|
983
|
+
def has_function_variant_fixups(self) -> bool: ...
|
|
984
|
+
|
|
985
|
+
@property
|
|
986
|
+
def function_variant_fixups(self) -> FunctionVariants: ...
|
|
987
|
+
|
|
916
988
|
def virtual_address_to_offset(self, virtual_address: int) -> Union[int, lief.lief_errors]: ...
|
|
917
989
|
|
|
918
990
|
def has_section(self, name: str) -> bool: ...
|
|
@@ -936,10 +1008,16 @@ class Binary(lief.Binary):
|
|
|
936
1008
|
def is_valid_addr(self, address: int) -> bool: ...
|
|
937
1009
|
|
|
938
1010
|
@overload
|
|
939
|
-
def write(self, output: str) -> None: ...
|
|
1011
|
+
def write(self, output: Union[str | os.PathLike]) -> None: ...
|
|
1012
|
+
|
|
1013
|
+
@overload
|
|
1014
|
+
def write(self, output: Union[str | os.PathLike], config: Builder.config_t) -> None: ...
|
|
1015
|
+
|
|
1016
|
+
@overload
|
|
1017
|
+
def write_to_bytes(self, config: Builder.config_t) -> bytes: ...
|
|
940
1018
|
|
|
941
1019
|
@overload
|
|
942
|
-
def
|
|
1020
|
+
def write_to_bytes(self) -> bytes: ...
|
|
943
1021
|
|
|
944
1022
|
@overload
|
|
945
1023
|
def add(self, dylib_command: DylibCommand) -> LoadCommand: ...
|
|
@@ -994,6 +1072,10 @@ class Binary(lief.Binary):
|
|
|
994
1072
|
@overload
|
|
995
1073
|
def add_section(self, section: Section) -> Section: ...
|
|
996
1074
|
|
|
1075
|
+
def find_library(self, name: str) -> DylibCommand: ...
|
|
1076
|
+
|
|
1077
|
+
def extend_section(self, section: Section, size: int) -> bool: ...
|
|
1078
|
+
|
|
997
1079
|
def add_library(self, library_name: str) -> LoadCommand: ...
|
|
998
1080
|
|
|
999
1081
|
def get(self, type: LoadCommand.TYPE) -> LoadCommand: ...
|
|
@@ -1014,9 +1096,6 @@ class Binary(lief.Binary):
|
|
|
1014
1096
|
|
|
1015
1097
|
def add_local_symbol(self, address: int, name: str) -> Symbol: ...
|
|
1016
1098
|
|
|
1017
|
-
@property
|
|
1018
|
-
def page_size(self) -> int: ...
|
|
1019
|
-
|
|
1020
1099
|
@property
|
|
1021
1100
|
def bindings(self) -> Iterator[BindingInfo]: ...
|
|
1022
1101
|
|
|
@@ -1035,6 +1114,12 @@ class Binary(lief.Binary):
|
|
|
1035
1114
|
@property
|
|
1036
1115
|
def objc_metadata(self) -> Optional[lief.objc.Metadata]: ...
|
|
1037
1116
|
|
|
1117
|
+
@property
|
|
1118
|
+
def notes(self) -> Binary.it_notes: ...
|
|
1119
|
+
|
|
1120
|
+
@property
|
|
1121
|
+
def has_notes(self) -> bool: ...
|
|
1122
|
+
|
|
1038
1123
|
def __getitem__(self, arg: LoadCommand.TYPE, /) -> LoadCommand: ...
|
|
1039
1124
|
|
|
1040
1125
|
def __contains__(self, arg: LoadCommand.TYPE, /) -> bool: ...
|
|
@@ -1042,6 +1127,9 @@ class Binary(lief.Binary):
|
|
|
1042
1127
|
@property
|
|
1043
1128
|
def overlay(self) -> memoryview: ...
|
|
1044
1129
|
|
|
1130
|
+
@property
|
|
1131
|
+
def available_command_space(self) -> int: ...
|
|
1132
|
+
|
|
1045
1133
|
def __str__(self) -> str: ...
|
|
1046
1134
|
|
|
1047
1135
|
class Header(lief.Object):
|
|
@@ -1067,16 +1155,32 @@ class Header(lief.Object):
|
|
|
1067
1155
|
|
|
1068
1156
|
MC98000 = 10
|
|
1069
1157
|
|
|
1158
|
+
HPPA = 11
|
|
1159
|
+
|
|
1070
1160
|
ARM = 12
|
|
1071
1161
|
|
|
1072
1162
|
ARM64 = 16777228
|
|
1073
1163
|
|
|
1164
|
+
MC88000 = 13
|
|
1165
|
+
|
|
1074
1166
|
SPARC = 14
|
|
1075
1167
|
|
|
1168
|
+
I860 = 15
|
|
1169
|
+
|
|
1170
|
+
ALPHA = 16
|
|
1171
|
+
|
|
1076
1172
|
POWERPC = 18
|
|
1077
1173
|
|
|
1078
1174
|
POWERPC64 = 16777234
|
|
1079
1175
|
|
|
1176
|
+
APPLE_GPU = 16777235
|
|
1177
|
+
|
|
1178
|
+
AMD_GPU = 16777236
|
|
1179
|
+
|
|
1180
|
+
INTEL_GPU = 16777237
|
|
1181
|
+
|
|
1182
|
+
AIR64 = 16777239
|
|
1183
|
+
|
|
1080
1184
|
class FILE_TYPE(enum.Enum):
|
|
1081
1185
|
@staticmethod
|
|
1082
1186
|
def from_value(arg: int, /) -> Header.FILE_TYPE: ...
|
|
@@ -1111,6 +1215,12 @@ class Header(lief.Object):
|
|
|
1111
1215
|
|
|
1112
1216
|
KEXT_BUNDLE = 11
|
|
1113
1217
|
|
|
1218
|
+
FILESET = 12
|
|
1219
|
+
|
|
1220
|
+
GPU_EXECUTE = 13
|
|
1221
|
+
|
|
1222
|
+
GPU_DYLIB = 14
|
|
1223
|
+
|
|
1114
1224
|
class FLAGS(enum.Flag):
|
|
1115
1225
|
@staticmethod
|
|
1116
1226
|
def from_value(arg: int, /) -> Header.FLAGS: ...
|
|
@@ -1173,6 +1283,14 @@ class Header(lief.Object):
|
|
|
1173
1283
|
|
|
1174
1284
|
APP_EXTENSION_SAFE = 33554432
|
|
1175
1285
|
|
|
1286
|
+
NLIST_OUTOFSYNC_WITH_DYLDINFO = 67108864
|
|
1287
|
+
|
|
1288
|
+
SIM_SUPPORT = 134217728
|
|
1289
|
+
|
|
1290
|
+
IMPLICIT_PAGEZERO = 268435456
|
|
1291
|
+
|
|
1292
|
+
DYLIB_IN_CACHE = 2147483648
|
|
1293
|
+
|
|
1176
1294
|
magic: MACHO_TYPES
|
|
1177
1295
|
|
|
1178
1296
|
cpu_type: Header.CPU_TYPE
|
|
@@ -1192,6 +1310,12 @@ class Header(lief.Object):
|
|
|
1192
1310
|
@property
|
|
1193
1311
|
def flags_list(self) -> list[Header.FLAGS]: ...
|
|
1194
1312
|
|
|
1313
|
+
@property
|
|
1314
|
+
def is_32bit(self) -> bool: ...
|
|
1315
|
+
|
|
1316
|
+
@property
|
|
1317
|
+
def is_64bit(self) -> bool: ...
|
|
1318
|
+
|
|
1195
1319
|
def add(self, flag: Header.FLAGS) -> None: ...
|
|
1196
1320
|
|
|
1197
1321
|
def remove(self, flag: Header.FLAGS) -> None: ...
|
|
@@ -1329,6 +1453,14 @@ class LoadCommand(lief.Object):
|
|
|
1329
1453
|
|
|
1330
1454
|
FILESET_ENTRY = 2147483701
|
|
1331
1455
|
|
|
1456
|
+
ATOM_INFO = 54
|
|
1457
|
+
|
|
1458
|
+
FUNCTION_VARIANTS = 55
|
|
1459
|
+
|
|
1460
|
+
FUNCTION_VARIANT_FIXUPS = 56
|
|
1461
|
+
|
|
1462
|
+
TARGET_TRIPLE = 57
|
|
1463
|
+
|
|
1332
1464
|
LIEF_UNKNOWN = 4293787649
|
|
1333
1465
|
|
|
1334
1466
|
command: LoadCommand.TYPE
|
|
@@ -1500,9 +1632,9 @@ class Section(lief.Section):
|
|
|
1500
1632
|
|
|
1501
1633
|
CSTRING_LITERALS = 2
|
|
1502
1634
|
|
|
1503
|
-
|
|
1635
|
+
IS_4BYTE_LITERALS = 3
|
|
1504
1636
|
|
|
1505
|
-
|
|
1637
|
+
IS_8BYTE_LITERALS = 4
|
|
1506
1638
|
|
|
1507
1639
|
LITERAL_POINTERS = 5
|
|
1508
1640
|
|
|
@@ -1522,7 +1654,7 @@ class Section(lief.Section):
|
|
|
1522
1654
|
|
|
1523
1655
|
INTERPOSING = 13
|
|
1524
1656
|
|
|
1525
|
-
|
|
1657
|
+
IS_16BYTE_LITERALS = 14
|
|
1526
1658
|
|
|
1527
1659
|
DTRACE_DOF = 15
|
|
1528
1660
|
|
|
@@ -1623,6 +1755,18 @@ class MainCommand(LoadCommand):
|
|
|
1623
1755
|
|
|
1624
1756
|
def __str__(self) -> str: ...
|
|
1625
1757
|
|
|
1758
|
+
class NoteCommand(LoadCommand):
|
|
1759
|
+
note_offset: int
|
|
1760
|
+
|
|
1761
|
+
note_size: int
|
|
1762
|
+
|
|
1763
|
+
@property
|
|
1764
|
+
def owner_str(self) -> str: ...
|
|
1765
|
+
|
|
1766
|
+
owner: memoryview
|
|
1767
|
+
|
|
1768
|
+
def __str__(self) -> str: ...
|
|
1769
|
+
|
|
1626
1770
|
class DynamicSymbolCommand(LoadCommand):
|
|
1627
1771
|
class it_indirect_symbols:
|
|
1628
1772
|
def __getitem__(self, arg: int, /) -> Symbol: ...
|
|
@@ -1954,6 +2098,9 @@ class DyldExportsTrie(LoadCommand):
|
|
|
1954
2098
|
class DylibCommand(LoadCommand):
|
|
1955
2099
|
name: str
|
|
1956
2100
|
|
|
2101
|
+
@property
|
|
2102
|
+
def name_offset(self) -> int: ...
|
|
2103
|
+
|
|
1957
2104
|
timestamp: int
|
|
1958
2105
|
|
|
1959
2106
|
current_version: list[int]
|
|
@@ -2000,6 +2147,9 @@ class RPathCommand(LoadCommand):
|
|
|
2000
2147
|
@staticmethod
|
|
2001
2148
|
def create(path: str) -> Optional[RPathCommand]: ...
|
|
2002
2149
|
|
|
2150
|
+
@property
|
|
2151
|
+
def path_offset(self) -> int: ...
|
|
2152
|
+
|
|
2003
2153
|
path: str
|
|
2004
2154
|
|
|
2005
2155
|
def __str__(self) -> str: ...
|
|
@@ -2047,7 +2197,7 @@ class Symbol(lief.Symbol):
|
|
|
2047
2197
|
|
|
2048
2198
|
DYLD_BIND = 2
|
|
2049
2199
|
|
|
2050
|
-
|
|
2200
|
+
SYMTAB = 3
|
|
2051
2201
|
|
|
2052
2202
|
class TYPE(enum.Enum):
|
|
2053
2203
|
@staticmethod
|
|
@@ -2293,6 +2443,8 @@ class ExportInfo(lief.Object):
|
|
|
2293
2443
|
|
|
2294
2444
|
STUB_AND_RESOLVER = 16
|
|
2295
2445
|
|
|
2446
|
+
STATIC_RESOLVER = 32
|
|
2447
|
+
|
|
2296
2448
|
@property
|
|
2297
2449
|
def node_offset(self) -> int: ...
|
|
2298
2450
|
|
|
@@ -2336,6 +2488,238 @@ class FunctionStarts(LoadCommand):
|
|
|
2336
2488
|
|
|
2337
2489
|
def __str__(self) -> str: ...
|
|
2338
2490
|
|
|
2491
|
+
class FunctionVariants(LoadCommand):
|
|
2492
|
+
class RuntimeTableEntry:
|
|
2493
|
+
class FLAGS(enum.Enum):
|
|
2494
|
+
ARM64_DEFAULT = 3145728
|
|
2495
|
+
|
|
2496
|
+
ARM64_FLAGM = 3145729
|
|
2497
|
+
|
|
2498
|
+
ARM64_FLAGM2 = 3145730
|
|
2499
|
+
|
|
2500
|
+
ARM64_FHM = 3145731
|
|
2501
|
+
|
|
2502
|
+
ARM64_DOTPROD = 3145732
|
|
2503
|
+
|
|
2504
|
+
ARM64_SHA3 = 3145733
|
|
2505
|
+
|
|
2506
|
+
ARM64_RDM = 3145734
|
|
2507
|
+
|
|
2508
|
+
ARM64_LSE = 3145735
|
|
2509
|
+
|
|
2510
|
+
ARM64_SHA256 = 3145736
|
|
2511
|
+
|
|
2512
|
+
ARM64_SHA512 = 3145737
|
|
2513
|
+
|
|
2514
|
+
ARM64_SHA1 = 3145738
|
|
2515
|
+
|
|
2516
|
+
ARM64_AES = 3145739
|
|
2517
|
+
|
|
2518
|
+
ARM64_PMULL = 3145740
|
|
2519
|
+
|
|
2520
|
+
ARM64_SPECRES = 3145741
|
|
2521
|
+
|
|
2522
|
+
ARM64_SB = 3145742
|
|
2523
|
+
|
|
2524
|
+
ARM64_FRINTTS = 3145743
|
|
2525
|
+
|
|
2526
|
+
ARM64_LRCPC = 3145744
|
|
2527
|
+
|
|
2528
|
+
ARM64_LRCPC2 = 3145745
|
|
2529
|
+
|
|
2530
|
+
ARM64_FCMA = 3145746
|
|
2531
|
+
|
|
2532
|
+
ARM64_JSCVT = 3145747
|
|
2533
|
+
|
|
2534
|
+
ARM64_PAUTH = 3145748
|
|
2535
|
+
|
|
2536
|
+
ARM64_PAUTH2 = 3145749
|
|
2537
|
+
|
|
2538
|
+
ARM64_FPAC = 3145750
|
|
2539
|
+
|
|
2540
|
+
ARM64_DPB = 3145751
|
|
2541
|
+
|
|
2542
|
+
ARM64_DPB2 = 3145752
|
|
2543
|
+
|
|
2544
|
+
ARM64_BF16 = 3145753
|
|
2545
|
+
|
|
2546
|
+
ARM64_I8MM = 3145754
|
|
2547
|
+
|
|
2548
|
+
ARM64_WFXT = 3145755
|
|
2549
|
+
|
|
2550
|
+
ARM64_RPRES = 3145756
|
|
2551
|
+
|
|
2552
|
+
ARM64_ECV = 3145757
|
|
2553
|
+
|
|
2554
|
+
ARM64_AFP = 3145758
|
|
2555
|
+
|
|
2556
|
+
ARM64_LSE2 = 3145759
|
|
2557
|
+
|
|
2558
|
+
ARM64_CSV2 = 3145760
|
|
2559
|
+
|
|
2560
|
+
ARM64_CVS3 = 3145761
|
|
2561
|
+
|
|
2562
|
+
ARM64_DIT = 3145762
|
|
2563
|
+
|
|
2564
|
+
ARM64_FP16 = 3145763
|
|
2565
|
+
|
|
2566
|
+
ARM64_SSBS = 3145764
|
|
2567
|
+
|
|
2568
|
+
ARM64_BTI = 3145765
|
|
2569
|
+
|
|
2570
|
+
ARM64_SME = 3145772
|
|
2571
|
+
|
|
2572
|
+
ARM64_SME2 = 3145773
|
|
2573
|
+
|
|
2574
|
+
ARM64_SMEF64F64 = 3145774
|
|
2575
|
+
|
|
2576
|
+
ARM64_SMEI16I64 = 3145775
|
|
2577
|
+
|
|
2578
|
+
ARM64_SMEF32F32 = 3145776
|
|
2579
|
+
|
|
2580
|
+
ARM64_SMEBI32I32 = 3145777
|
|
2581
|
+
|
|
2582
|
+
ARM64_SMEB16F32 = 3145778
|
|
2583
|
+
|
|
2584
|
+
ARM64_SMEF16F32 = 3145779
|
|
2585
|
+
|
|
2586
|
+
ARM64_SMEI8I32 = 3145780
|
|
2587
|
+
|
|
2588
|
+
ARM64_SMEI16I32 = 3145781
|
|
2589
|
+
|
|
2590
|
+
ARM64_ADVSIMD = 3145782
|
|
2591
|
+
|
|
2592
|
+
ARM64_ADVSIMDHPFP = 3145783
|
|
2593
|
+
|
|
2594
|
+
ARM64_CRC32 = 3145784
|
|
2595
|
+
|
|
2596
|
+
PER_PROCESS_DEFAULT = 1048576
|
|
2597
|
+
|
|
2598
|
+
PER_PROCESS_TRANSLATED = 1048577
|
|
2599
|
+
|
|
2600
|
+
PER_PROCESS_NO_OVERREAD = 1048579
|
|
2601
|
+
|
|
2602
|
+
SYSTEM_WIDE_DEFAULT = 2097152
|
|
2603
|
+
|
|
2604
|
+
SYSTEM_WIDE_INTERNAL_INSTALL = 2097153
|
|
2605
|
+
|
|
2606
|
+
SYSTEM_WIDE_CUSTOMER_INSTALL = 2097154
|
|
2607
|
+
|
|
2608
|
+
SYSTEM_WIDE_LOCKDOWN = 2097155
|
|
2609
|
+
|
|
2610
|
+
X86_64_DEFAULT = 4194304
|
|
2611
|
+
|
|
2612
|
+
X86_64_SSE41 = 4194305
|
|
2613
|
+
|
|
2614
|
+
X86_64_FMA = 4194306
|
|
2615
|
+
|
|
2616
|
+
X86_64_AVX = 4194307
|
|
2617
|
+
|
|
2618
|
+
X86_64_AVX2 = 4194308
|
|
2619
|
+
|
|
2620
|
+
X86_64_AVX512F = 4194309
|
|
2621
|
+
|
|
2622
|
+
X86_64_AVX512BW = 4194310
|
|
2623
|
+
|
|
2624
|
+
X86_64_BMI1 = 4194311
|
|
2625
|
+
|
|
2626
|
+
X86_64_ROSETTA = 4194312
|
|
2627
|
+
|
|
2628
|
+
X86_64_HASWELL = 4194313
|
|
2629
|
+
|
|
2630
|
+
X86_64_IVYBRIDGE = 4194314
|
|
2631
|
+
|
|
2632
|
+
X86_64_NEHALEM = 4194315
|
|
2633
|
+
|
|
2634
|
+
UNKNOWN = 0
|
|
2635
|
+
|
|
2636
|
+
@property
|
|
2637
|
+
def impl(self) -> int: ...
|
|
2638
|
+
|
|
2639
|
+
@property
|
|
2640
|
+
def another_table(self) -> bool: ...
|
|
2641
|
+
|
|
2642
|
+
@property
|
|
2643
|
+
def flag_bit_nums(self) -> memoryview: ...
|
|
2644
|
+
|
|
2645
|
+
@property
|
|
2646
|
+
def flags(self) -> list[FunctionVariants.RuntimeTableEntry.FLAGS]: ...
|
|
2647
|
+
|
|
2648
|
+
def __str__(self) -> str: ...
|
|
2649
|
+
|
|
2650
|
+
class RuntimeTable:
|
|
2651
|
+
class KIND(enum.Enum):
|
|
2652
|
+
UNKNOWN = 0
|
|
2653
|
+
|
|
2654
|
+
PER_PROCESS = 1
|
|
2655
|
+
|
|
2656
|
+
SYSTEM_WIDE = 2
|
|
2657
|
+
|
|
2658
|
+
ARM64 = 3
|
|
2659
|
+
|
|
2660
|
+
X86_64 = 4
|
|
2661
|
+
|
|
2662
|
+
class it_entries:
|
|
2663
|
+
def __getitem__(self, arg: int, /) -> FunctionVariants.RuntimeTableEntry: ...
|
|
2664
|
+
|
|
2665
|
+
def __len__(self) -> int: ...
|
|
2666
|
+
|
|
2667
|
+
def __iter__(self) -> FunctionVariants.RuntimeTable.it_entries: ...
|
|
2668
|
+
|
|
2669
|
+
def __next__(self) -> FunctionVariants.RuntimeTableEntry: ...
|
|
2670
|
+
|
|
2671
|
+
@property
|
|
2672
|
+
def kind(self) -> FunctionVariants.RuntimeTable.KIND: ...
|
|
2673
|
+
|
|
2674
|
+
@property
|
|
2675
|
+
def offset(self) -> int: ...
|
|
2676
|
+
|
|
2677
|
+
@property
|
|
2678
|
+
def entries(self) -> FunctionVariants.RuntimeTable.it_entries: ...
|
|
2679
|
+
|
|
2680
|
+
def __str__(self) -> str: ...
|
|
2681
|
+
|
|
2682
|
+
class it_runtime_table:
|
|
2683
|
+
def __getitem__(self, arg: int, /) -> FunctionVariants.RuntimeTable: ...
|
|
2684
|
+
|
|
2685
|
+
def __len__(self) -> int: ...
|
|
2686
|
+
|
|
2687
|
+
def __iter__(self) -> FunctionVariants.it_runtime_table: ...
|
|
2688
|
+
|
|
2689
|
+
def __next__(self) -> FunctionVariants.RuntimeTable: ...
|
|
2690
|
+
|
|
2691
|
+
data_offset: int
|
|
2692
|
+
|
|
2693
|
+
data_size: int
|
|
2694
|
+
|
|
2695
|
+
@property
|
|
2696
|
+
def content(self) -> memoryview: ...
|
|
2697
|
+
|
|
2698
|
+
@property
|
|
2699
|
+
def runtime_table(self) -> FunctionVariants.it_runtime_table: ...
|
|
2700
|
+
|
|
2701
|
+
def __str__(self) -> str: ...
|
|
2702
|
+
|
|
2703
|
+
class FunctionVariantFixups(LoadCommand):
|
|
2704
|
+
data_offset: int
|
|
2705
|
+
|
|
2706
|
+
data_size: int
|
|
2707
|
+
|
|
2708
|
+
@property
|
|
2709
|
+
def content(self) -> memoryview: ...
|
|
2710
|
+
|
|
2711
|
+
def __str__(self) -> str: ...
|
|
2712
|
+
|
|
2713
|
+
class AtomInfo(LoadCommand):
|
|
2714
|
+
data_offset: int
|
|
2715
|
+
|
|
2716
|
+
data_size: int
|
|
2717
|
+
|
|
2718
|
+
@property
|
|
2719
|
+
def content(self) -> memoryview: ...
|
|
2720
|
+
|
|
2721
|
+
def __str__(self) -> str: ...
|
|
2722
|
+
|
|
2339
2723
|
class CodeSignature(LoadCommand):
|
|
2340
2724
|
data_offset: int
|
|
2341
2725
|
|
|
@@ -2517,6 +2901,26 @@ class BuildVersion(LoadCommand):
|
|
|
2517
2901
|
|
|
2518
2902
|
SEPOS = 14
|
|
2519
2903
|
|
|
2904
|
+
MACOS_EXCLAVE_CORE = 15
|
|
2905
|
+
|
|
2906
|
+
MACOS_EXCLAVE_KIT = 16
|
|
2907
|
+
|
|
2908
|
+
IOS_EXCLAVE_CORE = 17
|
|
2909
|
+
|
|
2910
|
+
IOS_EXCLAVE_KIT = 18
|
|
2911
|
+
|
|
2912
|
+
TVOS_EXCLAVE_CORE = 19
|
|
2913
|
+
|
|
2914
|
+
TVOS_EXCLAVE_KIT = 20
|
|
2915
|
+
|
|
2916
|
+
WATCHOS_EXCLAVE_CORE = 21
|
|
2917
|
+
|
|
2918
|
+
WATCHOS_EXCLAVE_KIT = 22
|
|
2919
|
+
|
|
2920
|
+
VISIONOS_EXCLAVE_CORE = 23
|
|
2921
|
+
|
|
2922
|
+
VISIONOS_EXCLAVE_KIT = 24
|
|
2923
|
+
|
|
2520
2924
|
ANY = 4294967295
|
|
2521
2925
|
|
|
2522
2926
|
platform: BuildVersion.PLATFORMS
|
|
@@ -2559,6 +2963,20 @@ class BuildToolVersion(lief.Object):
|
|
|
2559
2963
|
|
|
2560
2964
|
LLD = 4
|
|
2561
2965
|
|
|
2966
|
+
METAL = 1024
|
|
2967
|
+
|
|
2968
|
+
AIRLLD = 1025
|
|
2969
|
+
|
|
2970
|
+
AIRNT = 1026
|
|
2971
|
+
|
|
2972
|
+
AIRNT_PLUGIN = 1027
|
|
2973
|
+
|
|
2974
|
+
AIRPACK = 1028
|
|
2975
|
+
|
|
2976
|
+
GPUARCHIVER = 1031
|
|
2977
|
+
|
|
2978
|
+
METAL_FRAMEWORK = 1032
|
|
2979
|
+
|
|
2562
2980
|
class FilesetCommand(LoadCommand):
|
|
2563
2981
|
name: str
|
|
2564
2982
|
|
|
@@ -2669,9 +3087,9 @@ class Builder:
|
|
|
2669
3087
|
@staticmethod
|
|
2670
3088
|
def write(fat_binary: FatBinary, output: str, config: Builder.config_t) -> Union[lief.ok_t, lief.lief_errors]: ...
|
|
2671
3089
|
|
|
2672
|
-
def is_fat(file: str) -> bool: ...
|
|
3090
|
+
def is_fat(file: Union[str | os.PathLike]) -> bool: ...
|
|
2673
3091
|
|
|
2674
|
-
def is_64(file: str) -> bool: ...
|
|
3092
|
+
def is_64(file: Union[str | os.PathLike]) -> bool: ...
|
|
2675
3093
|
|
|
2676
3094
|
@overload
|
|
2677
3095
|
def check_layout(file: Binary) -> tuple[bool, str]: ...
|
lief/OAT/__init__.pyi
CHANGED
|
@@ -105,7 +105,7 @@ def parse(oat_file: str, vdex_file: str) -> Optional[Binary]: ...
|
|
|
105
105
|
def parse(raw: Sequence[int]) -> Optional[Binary]: ...
|
|
106
106
|
|
|
107
107
|
@overload
|
|
108
|
-
def parse(obj: Union[io.IOBase | os.PathLike]) -> Optional[Binary]: ...
|
|
108
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]]) -> Optional[Binary]: ...
|
|
109
109
|
|
|
110
110
|
class Binary(lief.ELF.Binary):
|
|
111
111
|
class it_dex_files:
|