lief 0.16.7__cp313-cp313-win_arm64.whl → 0.17.1__cp313-cp313-win_arm64.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.pyd +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.7.dist-info → lief-0.17.1.dist-info}/METADATA +1 -1
- lief-0.17.1.dist-info/RECORD +37 -0
- lief-0.16.7.dist-info/RECORD +0 -33
- {lief-0.16.7.dist-info → lief-0.17.1.dist-info}/WHEEL +0 -0
lief/DEX/__init__.pyi
CHANGED
|
@@ -55,7 +55,7 @@ def parse(filename: str) -> Optional[File]: ...
|
|
|
55
55
|
def parse(raw: Sequence[int], name: str = '') -> Optional[File]: ...
|
|
56
56
|
|
|
57
57
|
@overload
|
|
58
|
-
def parse(obj: Union[io.IOBase | os.PathLike], name: str = '') -> Optional[File]: ...
|
|
58
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], name: str = '') -> Optional[File]: ...
|
|
59
59
|
|
|
60
60
|
class File(lief.Object):
|
|
61
61
|
class it_classes:
|
|
@@ -327,6 +327,9 @@ class Method(lief.Object):
|
|
|
327
327
|
|
|
328
328
|
def insert_dex2dex_info(self, pc: int, index: int) -> None: ...
|
|
329
329
|
|
|
330
|
+
@property
|
|
331
|
+
def code_info(self) -> CodeInfo: ...
|
|
332
|
+
|
|
330
333
|
def __str__(self) -> str: ...
|
|
331
334
|
|
|
332
335
|
class Field(lief.Object):
|
|
@@ -503,6 +506,9 @@ class MapItem(lief.Object):
|
|
|
503
506
|
def __str__(self) -> str: ...
|
|
504
507
|
|
|
505
508
|
class CodeInfo(lief.Object):
|
|
509
|
+
@property
|
|
510
|
+
def nb_registers(self) -> int: ...
|
|
511
|
+
|
|
506
512
|
def __str__(self) -> str: ...
|
|
507
513
|
|
|
508
514
|
@overload
|
lief/ELF/__init__.pyi
CHANGED
|
@@ -373,6 +373,8 @@ class ARCH(enum.Enum):
|
|
|
373
373
|
|
|
374
374
|
LOONGARCH = 258
|
|
375
375
|
|
|
376
|
+
ALPHA_ALT = 36902
|
|
377
|
+
|
|
376
378
|
class ParserConfig:
|
|
377
379
|
def __init__(self) -> None: ...
|
|
378
380
|
|
|
@@ -408,16 +410,11 @@ class ParserConfig:
|
|
|
408
410
|
|
|
409
411
|
count_mtd: ParserConfig.DYNSYM_COUNT
|
|
410
412
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
@overload
|
|
414
|
-
def parse(filename: str, config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
413
|
+
page_size: int
|
|
415
414
|
|
|
416
|
-
|
|
417
|
-
def parse(raw: Sequence[int], config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
415
|
+
all: ParserConfig = ...
|
|
418
416
|
|
|
419
|
-
|
|
420
|
-
def parse(obj: Union[io.IOBase | os.PathLike], config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
417
|
+
def parse(obj: Union[str | io.IOBase | os.PathLike | bytes | list[int]], config: ParserConfig = ...) -> Optional[Binary]: ...
|
|
421
418
|
|
|
422
419
|
class SymbolVersion(lief.Object):
|
|
423
420
|
@overload
|
|
@@ -435,6 +432,12 @@ class SymbolVersion(lief.Object):
|
|
|
435
432
|
|
|
436
433
|
symbol_version_auxiliary: SymbolVersionAux
|
|
437
434
|
|
|
435
|
+
def drop_version(self, value: int) -> None: ...
|
|
436
|
+
|
|
437
|
+
def as_global(self) -> None: ...
|
|
438
|
+
|
|
439
|
+
def as_local(self) -> None: ...
|
|
440
|
+
|
|
438
441
|
def __str__(self) -> str: ...
|
|
439
442
|
|
|
440
443
|
class Binary(lief.Binary):
|
|
@@ -557,6 +560,13 @@ class Binary(lief.Binary):
|
|
|
557
560
|
|
|
558
561
|
SEGMENT_GAP = 4
|
|
559
562
|
|
|
563
|
+
class SEC_INSERT_POS(enum.Enum):
|
|
564
|
+
AUTO = 0
|
|
565
|
+
|
|
566
|
+
POST_SECTION = 2
|
|
567
|
+
|
|
568
|
+
POST_SEGMENT = 1
|
|
569
|
+
|
|
560
570
|
@property
|
|
561
571
|
def type(self) -> Header.CLASS: ...
|
|
562
572
|
|
|
@@ -576,7 +586,7 @@ class Binary(lief.Binary):
|
|
|
576
586
|
def add(self, arg: DynamicEntry, /) -> DynamicEntry: ...
|
|
577
587
|
|
|
578
588
|
@overload
|
|
579
|
-
def add(self, section: Section, loaded: bool = True) -> Section: ...
|
|
589
|
+
def add(self, section: Section, loaded: bool = True, pos: Binary.SEC_INSERT_POS = Binary.SEC_INSERT_POS.AUTO) -> Section: ...
|
|
580
590
|
|
|
581
591
|
@overload
|
|
582
592
|
def add(self, segment: Segment, base: int = 0) -> Segment: ...
|
|
@@ -736,6 +746,12 @@ class Binary(lief.Binary):
|
|
|
736
746
|
@overload
|
|
737
747
|
def remove(self, section: Section, clear: bool = False) -> None: ...
|
|
738
748
|
|
|
749
|
+
@overload
|
|
750
|
+
def remove(self, segment: Segment, clear: bool = False) -> None: ...
|
|
751
|
+
|
|
752
|
+
@overload
|
|
753
|
+
def remove(self, type: Segment.TYPE, clear: bool = False) -> None: ...
|
|
754
|
+
|
|
739
755
|
@overload
|
|
740
756
|
def remove(self, note: Note) -> None: ...
|
|
741
757
|
|
|
@@ -753,10 +769,16 @@ class Binary(lief.Binary):
|
|
|
753
769
|
def permute_dynamic_symbols(self, permutation: Sequence[int]) -> None: ...
|
|
754
770
|
|
|
755
771
|
@overload
|
|
756
|
-
def write(self, output: str) -> None: ...
|
|
772
|
+
def write(self, output: Union[str | os.PathLike]) -> None: ...
|
|
757
773
|
|
|
758
774
|
@overload
|
|
759
|
-
def write(self, output: str, config: Builder.config_t) -> None: ...
|
|
775
|
+
def write(self, output: Union[str | os.PathLike], config: Builder.config_t) -> None: ...
|
|
776
|
+
|
|
777
|
+
@overload
|
|
778
|
+
def write_to_bytes(self, config: Builder.config_t) -> bytes: ...
|
|
779
|
+
|
|
780
|
+
@overload
|
|
781
|
+
def write_to_bytes(self) -> bytes: ...
|
|
760
782
|
|
|
761
783
|
@property
|
|
762
784
|
def last_offset_section(self) -> int: ...
|
|
@@ -825,12 +847,22 @@ class Binary(lief.Binary):
|
|
|
825
847
|
@property
|
|
826
848
|
def is_targeting_android(self) -> bool: ...
|
|
827
849
|
|
|
850
|
+
@overload
|
|
851
|
+
def get_section_idx(self, arg: Section, /) -> Union[int, lief.lief_errors]: ...
|
|
852
|
+
|
|
853
|
+
@overload
|
|
854
|
+
def get_section_idx(self, arg: str, /) -> Union[int, lief.lief_errors]: ...
|
|
855
|
+
|
|
828
856
|
overlay: memoryview
|
|
829
857
|
|
|
830
858
|
def relocate_phdr_table(self, type: Binary.PHDR_RELOC = Binary.PHDR_RELOC.AUTO) -> int: ...
|
|
831
859
|
|
|
832
860
|
def get_relocated_dynamic_array(self, array_tag: DynamicEntry.TAG) -> list[int]: ...
|
|
833
861
|
|
|
862
|
+
def find_version_requirement(self, libname: str) -> SymbolVersionRequirement: ...
|
|
863
|
+
|
|
864
|
+
def remove_version_requirement(self, libname: str) -> bool: ...
|
|
865
|
+
|
|
834
866
|
@overload
|
|
835
867
|
def __iadd__(self, arg: Segment, /) -> Binary: ...
|
|
836
868
|
|
|
@@ -1351,12 +1383,88 @@ class Section(lief.Section):
|
|
|
1351
1383
|
|
|
1352
1384
|
X86_64_UNWIND = 10468982785
|
|
1353
1385
|
|
|
1386
|
+
MIPS_LIBLIST = 14763950080
|
|
1387
|
+
|
|
1388
|
+
MIPS_MSYM = 14763950081
|
|
1389
|
+
|
|
1390
|
+
MIPS_CONFLICT = 14763950082
|
|
1391
|
+
|
|
1392
|
+
MIPS_GPTAB = 14763950083
|
|
1393
|
+
|
|
1394
|
+
MIPS_UCODE = 14763950084
|
|
1395
|
+
|
|
1396
|
+
MIPS_DEBUG = 14763950085
|
|
1397
|
+
|
|
1354
1398
|
MIPS_REGINFO = 14763950086
|
|
1355
1399
|
|
|
1400
|
+
MIPS_PACKAGE = 14763950087
|
|
1401
|
+
|
|
1402
|
+
MIPS_PACKSYM = 14763950088
|
|
1403
|
+
|
|
1404
|
+
MIPS_RELD = 14763950089
|
|
1405
|
+
|
|
1406
|
+
MIPS_IFACE = 14763950091
|
|
1407
|
+
|
|
1408
|
+
MIPS_CONTENT = 14763950092
|
|
1409
|
+
|
|
1356
1410
|
MIPS_OPTIONS = 14763950093
|
|
1357
1411
|
|
|
1412
|
+
MIPS_SHDR = 14763950096
|
|
1413
|
+
|
|
1414
|
+
MIPS_FDESC = 14763950097
|
|
1415
|
+
|
|
1416
|
+
MIPS_EXTSYM = 14763950098
|
|
1417
|
+
|
|
1418
|
+
MIPS_DENSE = 14763950099
|
|
1419
|
+
|
|
1420
|
+
MIPS_PDESC = 14763950100
|
|
1421
|
+
|
|
1422
|
+
MIPS_LOCSYM = 14763950101
|
|
1423
|
+
|
|
1424
|
+
MIPS_AUXSYM = 14763950102
|
|
1425
|
+
|
|
1426
|
+
MIPS_OPTSYM = 14763950103
|
|
1427
|
+
|
|
1428
|
+
MIPS_LOCSTR = 14763950104
|
|
1429
|
+
|
|
1430
|
+
MIPS_LINE = 14763950105
|
|
1431
|
+
|
|
1432
|
+
MIPS_RFDESC = 14763950106
|
|
1433
|
+
|
|
1434
|
+
MIPS_DELTASYM = 14763950107
|
|
1435
|
+
|
|
1436
|
+
MIPS_DELTAINST = 14763950108
|
|
1437
|
+
|
|
1438
|
+
MIPS_DELTACLASS = 14763950109
|
|
1439
|
+
|
|
1440
|
+
MIPS_DWARF = 14763950110
|
|
1441
|
+
|
|
1442
|
+
MIPS_DELTADECL = 14763950111
|
|
1443
|
+
|
|
1444
|
+
MIPS_SYMBOL_LIB = 14763950112
|
|
1445
|
+
|
|
1446
|
+
MIPS_EVENTS = 14763950113
|
|
1447
|
+
|
|
1448
|
+
MIPS_TRANSLATE = 14763950114
|
|
1449
|
+
|
|
1450
|
+
MIPS_PIXIE = 14763950115
|
|
1451
|
+
|
|
1452
|
+
MIPS_XLATE = 14763950116
|
|
1453
|
+
|
|
1454
|
+
MIPS_XLATE_DEBUG = 14763950117
|
|
1455
|
+
|
|
1456
|
+
MIPS_WHIRL = 14763950118
|
|
1457
|
+
|
|
1458
|
+
MIPS_EH_REGION = 14763950119
|
|
1459
|
+
|
|
1460
|
+
MIPS_XLATE_OLD = 14763950120
|
|
1461
|
+
|
|
1462
|
+
MIPS_PDR_EXCEPTION = 14763950121
|
|
1463
|
+
|
|
1358
1464
|
MIPS_ABIFLAGS = 14763950122
|
|
1359
1465
|
|
|
1466
|
+
MIPS_XHASH = 14763950123
|
|
1467
|
+
|
|
1360
1468
|
RISCV_ATTRIBUTES = 19058917379
|
|
1361
1469
|
|
|
1362
1470
|
def as_frame(self) -> Section: ...
|
|
@@ -1455,6 +1563,8 @@ class Segment(lief.Object):
|
|
|
1455
1563
|
|
|
1456
1564
|
GNU_RELRO = 1685382482
|
|
1457
1565
|
|
|
1566
|
+
PAX_FLAGS = 1694766464
|
|
1567
|
+
|
|
1458
1568
|
ARM_ARCHEXT = 10468982784
|
|
1459
1569
|
|
|
1460
1570
|
ARM_EXIDX = 10468982785
|
|
@@ -1471,6 +1581,42 @@ class Segment(lief.Object):
|
|
|
1471
1581
|
|
|
1472
1582
|
RISCV_ATTRIBUTES = 36238786563
|
|
1473
1583
|
|
|
1584
|
+
IA_64_EXT = 44828721152
|
|
1585
|
+
|
|
1586
|
+
IA_64_UNWIND = 44828721153
|
|
1587
|
+
|
|
1588
|
+
HP_TLS = 9007200865353728
|
|
1589
|
+
|
|
1590
|
+
HP_CORE_NONE = 9007200865353729
|
|
1591
|
+
|
|
1592
|
+
HP_CORE_VERSION = 9007200865353730
|
|
1593
|
+
|
|
1594
|
+
HP_CORE_KERNEL = 9007200865353731
|
|
1595
|
+
|
|
1596
|
+
HP_CORE_COMM = 9007200865353732
|
|
1597
|
+
|
|
1598
|
+
HP_CORE_PROC = 9007200865353733
|
|
1599
|
+
|
|
1600
|
+
HP_CORE_LOADABLE = 9007200865353734
|
|
1601
|
+
|
|
1602
|
+
HP_CORE_STACK = 9007200865353735
|
|
1603
|
+
|
|
1604
|
+
HP_CORE_SHM = 9007200865353736
|
|
1605
|
+
|
|
1606
|
+
HP_CORE_MMF = 9007200865353737
|
|
1607
|
+
|
|
1608
|
+
HP_PARALLEL = 9007200865353744
|
|
1609
|
+
|
|
1610
|
+
HP_FASTBIND = 9007200865353745
|
|
1611
|
+
|
|
1612
|
+
HP_OPT_ANNOT = 9007200865353746
|
|
1613
|
+
|
|
1614
|
+
HP_HSL_ANNOT = 9007200865353747
|
|
1615
|
+
|
|
1616
|
+
HP_STACK = 9007200865353748
|
|
1617
|
+
|
|
1618
|
+
HP_CORE_UTSNAME = 9007200865353749
|
|
1619
|
+
|
|
1474
1620
|
class FLAGS(enum.Flag):
|
|
1475
1621
|
@staticmethod
|
|
1476
1622
|
def from_value(arg: int, /) -> Segment.FLAGS: ...
|
|
@@ -1496,6 +1642,8 @@ class Segment(lief.Object):
|
|
|
1496
1642
|
|
|
1497
1643
|
flags: Segment.FLAGS
|
|
1498
1644
|
|
|
1645
|
+
raw_flags: int
|
|
1646
|
+
|
|
1499
1647
|
file_offset: int
|
|
1500
1648
|
|
|
1501
1649
|
virtual_address: int
|
|
@@ -1523,6 +1671,10 @@ class Segment(lief.Object):
|
|
|
1523
1671
|
@overload
|
|
1524
1672
|
def has(self, section_name: str) -> bool: ...
|
|
1525
1673
|
|
|
1674
|
+
def clear(self) -> None: ...
|
|
1675
|
+
|
|
1676
|
+
def fill(self, value: str) -> None: ...
|
|
1677
|
+
|
|
1526
1678
|
@property
|
|
1527
1679
|
def sections(self) -> Segment.it_sections: ...
|
|
1528
1680
|
|
|
@@ -3573,6 +3725,14 @@ class Relocation(lief.Relocation):
|
|
|
3573
3725
|
|
|
3574
3726
|
SYSZ_IRELATIVE = 1476395069
|
|
3575
3727
|
|
|
3728
|
+
SYSZ_PC12DBL = 1476395070
|
|
3729
|
+
|
|
3730
|
+
SYSZ_PLT12DBL = 1476395071
|
|
3731
|
+
|
|
3732
|
+
SYSZ_PC24DBL = 1476395072
|
|
3733
|
+
|
|
3734
|
+
SYSZ_PLT24DBL = 1476395073
|
|
3735
|
+
|
|
3576
3736
|
RISCV_NONE = 1610612736
|
|
3577
3737
|
|
|
3578
3738
|
RISCV_32 = 1610612737
|
|
@@ -3701,6 +3861,226 @@ class Relocation(lief.Relocation):
|
|
|
3701
3861
|
|
|
3702
3862
|
BPF_64_32 = 1744830474
|
|
3703
3863
|
|
|
3864
|
+
SH_NONE = 1879048192
|
|
3865
|
+
|
|
3866
|
+
SH_DIR32 = 1879048193
|
|
3867
|
+
|
|
3868
|
+
SH_REL32 = 1879048194
|
|
3869
|
+
|
|
3870
|
+
SH_DIR8WPN = 1879048195
|
|
3871
|
+
|
|
3872
|
+
SH_IND12W = 1879048196
|
|
3873
|
+
|
|
3874
|
+
SH_DIR8WPL = 1879048197
|
|
3875
|
+
|
|
3876
|
+
SH_DIR8WPZ = 1879048198
|
|
3877
|
+
|
|
3878
|
+
SH_DIR8BP = 1879048199
|
|
3879
|
+
|
|
3880
|
+
SH_DIR8W = 1879048200
|
|
3881
|
+
|
|
3882
|
+
SH_DIR8L = 1879048201
|
|
3883
|
+
|
|
3884
|
+
SH_LOOP_START = 1879048202
|
|
3885
|
+
|
|
3886
|
+
SH_LOOP_END = 1879048203
|
|
3887
|
+
|
|
3888
|
+
SH_GNU_VTINHERIT = 1879048214
|
|
3889
|
+
|
|
3890
|
+
SH_GNU_VTENTRY = 1879048215
|
|
3891
|
+
|
|
3892
|
+
SH_SWITCH8 = 1879048216
|
|
3893
|
+
|
|
3894
|
+
SH_SWITCH16 = 1879048217
|
|
3895
|
+
|
|
3896
|
+
SH_SWITCH32 = 1879048218
|
|
3897
|
+
|
|
3898
|
+
SH_USES = 1879048219
|
|
3899
|
+
|
|
3900
|
+
SH_COUNT = 1879048220
|
|
3901
|
+
|
|
3902
|
+
SH_ALIGN = 1879048221
|
|
3903
|
+
|
|
3904
|
+
SH_CODE = 1879048222
|
|
3905
|
+
|
|
3906
|
+
SH_DATA = 1879048223
|
|
3907
|
+
|
|
3908
|
+
SH_LABEL = 1879048224
|
|
3909
|
+
|
|
3910
|
+
SH_DIR16 = 1879048225
|
|
3911
|
+
|
|
3912
|
+
SH_DIR8 = 1879048226
|
|
3913
|
+
|
|
3914
|
+
SH_DIR8UL = 1879048227
|
|
3915
|
+
|
|
3916
|
+
SH_DIR8UW = 1879048228
|
|
3917
|
+
|
|
3918
|
+
SH_DIR8U = 1879048229
|
|
3919
|
+
|
|
3920
|
+
SH_DIR8SW = 1879048230
|
|
3921
|
+
|
|
3922
|
+
SH_DIR8S = 1879048231
|
|
3923
|
+
|
|
3924
|
+
SH_DIR4UL = 1879048232
|
|
3925
|
+
|
|
3926
|
+
SH_DIR4UW = 1879048233
|
|
3927
|
+
|
|
3928
|
+
SH_DIR4U = 1879048234
|
|
3929
|
+
|
|
3930
|
+
SH_PSHA = 1879048235
|
|
3931
|
+
|
|
3932
|
+
SH_PSHL = 1879048236
|
|
3933
|
+
|
|
3934
|
+
SH_DIR5U = 1879048237
|
|
3935
|
+
|
|
3936
|
+
SH_DIR6U = 1879048238
|
|
3937
|
+
|
|
3938
|
+
SH_DIR6S = 1879048239
|
|
3939
|
+
|
|
3940
|
+
SH_DIR10S = 1879048240
|
|
3941
|
+
|
|
3942
|
+
SH_DIR10SW = 1879048241
|
|
3943
|
+
|
|
3944
|
+
SH_DIR10SL = 1879048242
|
|
3945
|
+
|
|
3946
|
+
SH_DIR10SQ = 1879048243
|
|
3947
|
+
|
|
3948
|
+
SH_DIR16S = 1879048245
|
|
3949
|
+
|
|
3950
|
+
SH_TLS_GD_32 = 1879048336
|
|
3951
|
+
|
|
3952
|
+
SH_TLS_LD_32 = 1879048337
|
|
3953
|
+
|
|
3954
|
+
SH_TLS_LDO_32 = 1879048338
|
|
3955
|
+
|
|
3956
|
+
SH_TLS_IE_32 = 1879048339
|
|
3957
|
+
|
|
3958
|
+
SH_TLS_LE_32 = 1879048340
|
|
3959
|
+
|
|
3960
|
+
SH_TLS_DTPMOD32 = 1879048341
|
|
3961
|
+
|
|
3962
|
+
SH_TLS_DTPOFF32 = 1879048342
|
|
3963
|
+
|
|
3964
|
+
SH_TLS_TPOFF32 = 1879048343
|
|
3965
|
+
|
|
3966
|
+
SH_GOT32 = 1879048352
|
|
3967
|
+
|
|
3968
|
+
SH_PLT32 = 1879048353
|
|
3969
|
+
|
|
3970
|
+
SH_COPY = 1879048354
|
|
3971
|
+
|
|
3972
|
+
SH_GLOB_DAT = 1879048355
|
|
3973
|
+
|
|
3974
|
+
SH_JMP_SLOT = 1879048356
|
|
3975
|
+
|
|
3976
|
+
SH_RELATIVE = 1879048357
|
|
3977
|
+
|
|
3978
|
+
SH_GOTOFF = 1879048358
|
|
3979
|
+
|
|
3980
|
+
SH_GOTPC = 1879048359
|
|
3981
|
+
|
|
3982
|
+
SH_GOTPLT32 = 1879048360
|
|
3983
|
+
|
|
3984
|
+
SH_GOT_LOW16 = 1879048361
|
|
3985
|
+
|
|
3986
|
+
SH_GOT_MEDLOW16 = 1879048362
|
|
3987
|
+
|
|
3988
|
+
SH_GOT_MEDHI16 = 1879048363
|
|
3989
|
+
|
|
3990
|
+
SH_GOT_HI16 = 1879048364
|
|
3991
|
+
|
|
3992
|
+
SH_GOTPLT_LOW16 = 1879048365
|
|
3993
|
+
|
|
3994
|
+
SH_GOTPLT_MEDLOW16 = 1879048366
|
|
3995
|
+
|
|
3996
|
+
SH_GOTPLT_MEDHI16 = 1879048367
|
|
3997
|
+
|
|
3998
|
+
SH_GOTPLT_HI16 = 1879048368
|
|
3999
|
+
|
|
4000
|
+
SH_PLT_LOW16 = 1879048369
|
|
4001
|
+
|
|
4002
|
+
SH_PLT_MEDLOW16 = 1879048370
|
|
4003
|
+
|
|
4004
|
+
SH_PLT_MEDHI16 = 1879048371
|
|
4005
|
+
|
|
4006
|
+
SH_PLT_HI16 = 1879048372
|
|
4007
|
+
|
|
4008
|
+
SH_GOTOFF_LOW16 = 1879048373
|
|
4009
|
+
|
|
4010
|
+
SH_GOTOFF_MEDLOW16 = 1879048374
|
|
4011
|
+
|
|
4012
|
+
SH_GOTOFF_MEDHI16 = 1879048375
|
|
4013
|
+
|
|
4014
|
+
SH_GOTOFF_HI16 = 1879048376
|
|
4015
|
+
|
|
4016
|
+
SH_GOTPC_LOW16 = 1879048377
|
|
4017
|
+
|
|
4018
|
+
SH_GOTPC_MEDLOW16 = 1879048378
|
|
4019
|
+
|
|
4020
|
+
SH_GOTPC_MEDHI16 = 1879048379
|
|
4021
|
+
|
|
4022
|
+
SH_GOTPC_HI16 = 1879048380
|
|
4023
|
+
|
|
4024
|
+
SH_GOT10BY4 = 1879048381
|
|
4025
|
+
|
|
4026
|
+
SH_GOTPLT10BY4 = 1879048382
|
|
4027
|
+
|
|
4028
|
+
SH_GOT10BY8 = 1879048383
|
|
4029
|
+
|
|
4030
|
+
SH_GOTPLT10BY8 = 1879048384
|
|
4031
|
+
|
|
4032
|
+
SH_COPY64 = 1879048385
|
|
4033
|
+
|
|
4034
|
+
SH_GLOB_DAT64 = 1879048386
|
|
4035
|
+
|
|
4036
|
+
SH_JMP_SLOT64 = 1879048387
|
|
4037
|
+
|
|
4038
|
+
SH_RELATIVE64 = 1879048388
|
|
4039
|
+
|
|
4040
|
+
SH_GOT20 = 1879048393
|
|
4041
|
+
|
|
4042
|
+
SH_GOTOFF20 = 1879048394
|
|
4043
|
+
|
|
4044
|
+
SH_GOTFUNCDESC = 1879048395
|
|
4045
|
+
|
|
4046
|
+
SH_GOTFUNCDESC20 = 1879048396
|
|
4047
|
+
|
|
4048
|
+
SH_GOTOFFFUNCDESC = 1879048397
|
|
4049
|
+
|
|
4050
|
+
SH_GOTOFFFUNCDESC20 = 1879048398
|
|
4051
|
+
|
|
4052
|
+
SH_FUNCDESC = 1879048399
|
|
4053
|
+
|
|
4054
|
+
SH_FUNCDESC_VALUE = 1879048400
|
|
4055
|
+
|
|
4056
|
+
SH_SHMEDIA_CODE = 1879048434
|
|
4057
|
+
|
|
4058
|
+
SH_PT_16 = 1879048435
|
|
4059
|
+
|
|
4060
|
+
SH_IMMS16 = 1879048436
|
|
4061
|
+
|
|
4062
|
+
SH_IMMU16 = 1879048437
|
|
4063
|
+
|
|
4064
|
+
SH_IMM_LOW16 = 1879048438
|
|
4065
|
+
|
|
4066
|
+
SH_IMM_LOW16_PCREL = 1879048439
|
|
4067
|
+
|
|
4068
|
+
SH_IMM_MEDLOW16 = 1879048440
|
|
4069
|
+
|
|
4070
|
+
SH_IMM_MEDLOW16_PCREL = 1879048441
|
|
4071
|
+
|
|
4072
|
+
SH_IMM_MEDHI16 = 1879048442
|
|
4073
|
+
|
|
4074
|
+
SH_IMM_MEDHI16_PCREL = 1879048443
|
|
4075
|
+
|
|
4076
|
+
SH_IMM_HI16 = 1879048444
|
|
4077
|
+
|
|
4078
|
+
SH_IMM_HI16_PCREL = 1879048445
|
|
4079
|
+
|
|
4080
|
+
SH_64 = 1879048446
|
|
4081
|
+
|
|
4082
|
+
SH_64_PCREL = 1879048447
|
|
4083
|
+
|
|
3704
4084
|
class PURPOSE(enum.Enum):
|
|
3705
4085
|
@staticmethod
|
|
3706
4086
|
def from_value(arg: int, /) -> Relocation.PURPOSE: ...
|
|
@@ -3840,6 +4220,14 @@ class SymbolVersionRequirement(lief.Object):
|
|
|
3840
4220
|
|
|
3841
4221
|
def add_auxiliary_requirement(self, arg: SymbolVersionAuxRequirement, /) -> SymbolVersionAuxRequirement: ...
|
|
3842
4222
|
|
|
4223
|
+
def find_aux(self, name: str) -> SymbolVersionAuxRequirement: ...
|
|
4224
|
+
|
|
4225
|
+
@overload
|
|
4226
|
+
def remove_aux_requirement(self, name: str) -> bool: ...
|
|
4227
|
+
|
|
4228
|
+
@overload
|
|
4229
|
+
def remove_aux_requirement(self, aux: SymbolVersionAuxRequirement) -> bool: ...
|
|
4230
|
+
|
|
3843
4231
|
def __str__(self) -> str: ...
|
|
3844
4232
|
|
|
3845
4233
|
class DynamicEntry(lief.Object):
|
|
@@ -4105,6 +4493,68 @@ class DynamicEntry(lief.Object):
|
|
|
4105
4493
|
|
|
4106
4494
|
X86_64_PLTENT = 31943819267
|
|
4107
4495
|
|
|
4496
|
+
IA_64_PLT_RESERVE = 36238786560
|
|
4497
|
+
|
|
4498
|
+
IA_64_VMS_SUBTYPE = 35970351104
|
|
4499
|
+
|
|
4500
|
+
IA_64_VMS_IMGIOCNT = 35970351106
|
|
4501
|
+
|
|
4502
|
+
IA_64_VMS_LNKFLAGS = 35970351112
|
|
4503
|
+
|
|
4504
|
+
IA_64_VMS_VIR_MEM_BLK_SIZ = 35970351114
|
|
4505
|
+
|
|
4506
|
+
IA_64_VMS_IDENT = 35970351116
|
|
4507
|
+
|
|
4508
|
+
IA_64_VMS_NEEDED_IDENT = 35970351120
|
|
4509
|
+
|
|
4510
|
+
IA_64_VMS_IMG_RELA_CNT = 35970351122
|
|
4511
|
+
|
|
4512
|
+
IA_64_VMS_SEG_RELA_CNT = 35970351124
|
|
4513
|
+
|
|
4514
|
+
IA_64_VMS_FIXUP_RELA_CNT = 35970351126
|
|
4515
|
+
|
|
4516
|
+
IA_64_VMS_FIXUP_NEEDED = 35970351128
|
|
4517
|
+
|
|
4518
|
+
IA_64_VMS_SYMVEC_CNT = 35970351130
|
|
4519
|
+
|
|
4520
|
+
IA_64_VMS_XLATED = 35970351134
|
|
4521
|
+
|
|
4522
|
+
IA_64_VMS_STACKSIZE = 35970351136
|
|
4523
|
+
|
|
4524
|
+
IA_64_VMS_UNWINDSZ = 35970351138
|
|
4525
|
+
|
|
4526
|
+
IA_64_VMS_UNWIND_CODSEG = 35970351140
|
|
4527
|
+
|
|
4528
|
+
IA_64_VMS_UNWIND_INFOSEG = 35970351142
|
|
4529
|
+
|
|
4530
|
+
IA_64_VMS_LINKTIME = 35970351144
|
|
4531
|
+
|
|
4532
|
+
IA_64_VMS_SEG_NO = 35970351146
|
|
4533
|
+
|
|
4534
|
+
IA_64_VMS_SYMVEC_OFFSET = 35970351148
|
|
4535
|
+
|
|
4536
|
+
IA_64_VMS_SYMVEC_SEG = 35970351150
|
|
4537
|
+
|
|
4538
|
+
IA_64_VMS_UNWIND_OFFSET = 35970351152
|
|
4539
|
+
|
|
4540
|
+
IA_64_VMS_UNWIND_SEG = 35970351154
|
|
4541
|
+
|
|
4542
|
+
IA_64_VMS_STRTAB_OFFSET = 35970351156
|
|
4543
|
+
|
|
4544
|
+
IA_64_VMS_SYSVER_OFFSET = 35970351158
|
|
4545
|
+
|
|
4546
|
+
IA_64_VMS_IMG_RELA_OFF = 35970351160
|
|
4547
|
+
|
|
4548
|
+
IA_64_VMS_SEG_RELA_OFF = 35970351162
|
|
4549
|
+
|
|
4550
|
+
IA_64_VMS_FIXUP_RELA_OFF = 35970351164
|
|
4551
|
+
|
|
4552
|
+
IA_64_VMS_PLTGOT_OFFSET = 35970351166
|
|
4553
|
+
|
|
4554
|
+
IA_64_VMS_PLTGOT_SEG = 35970351168
|
|
4555
|
+
|
|
4556
|
+
IA_64_VMS_FPMODE = 35970351170
|
|
4557
|
+
|
|
4108
4558
|
tag: DynamicEntry.TAG
|
|
4109
4559
|
|
|
4110
4560
|
value: int
|
|
@@ -4340,13 +4790,19 @@ class SysvHash(lief.Object):
|
|
|
4340
4790
|
def __str__(self) -> str: ...
|
|
4341
4791
|
|
|
4342
4792
|
class Builder:
|
|
4343
|
-
|
|
4793
|
+
@overload
|
|
4794
|
+
def __init__(self, elf: Binary) -> None: ...
|
|
4795
|
+
|
|
4796
|
+
@overload
|
|
4797
|
+
def __init__(self, elf: Binary, config: Builder.config_t) -> None: ...
|
|
4344
4798
|
|
|
4345
4799
|
class config_t:
|
|
4346
4800
|
def __init__(self) -> None: ...
|
|
4347
4801
|
|
|
4348
4802
|
force_relocate: bool
|
|
4349
4803
|
|
|
4804
|
+
skip_dynamic: bool
|
|
4805
|
+
|
|
4350
4806
|
dt_hash: bool
|
|
4351
4807
|
|
|
4352
4808
|
dyn_str: bool
|
|
@@ -4383,9 +4839,12 @@ class Builder:
|
|
|
4383
4839
|
|
|
4384
4840
|
coredump_notes: bool
|
|
4385
4841
|
|
|
4842
|
+
keep_empty_version_requirement: bool
|
|
4843
|
+
|
|
4386
4844
|
def build(self) -> None: ...
|
|
4387
4845
|
|
|
4388
|
-
|
|
4846
|
+
@property
|
|
4847
|
+
def config(self) -> Builder.config_t: ...
|
|
4389
4848
|
|
|
4390
4849
|
def write(self, output: str) -> None: ...
|
|
4391
4850
|
|
|
@@ -4814,7 +5273,7 @@ class CoreAuxv(Note):
|
|
|
4814
5273
|
|
|
4815
5274
|
END = 0
|
|
4816
5275
|
|
|
4817
|
-
|
|
5276
|
+
IGNORE_TY = 1
|
|
4818
5277
|
|
|
4819
5278
|
EXECFD = 2
|
|
4820
5279
|
|