Commit Graph

332 Commits

Author SHA1 Message Date
Romain Thomas b54bece30d Resolve #291 2023-04-08 14:46:31 +02:00
Romain Thomas d2fe82a6b4 Resolve #880 2023-04-02 07:23:52 +02:00
Romain Thomas 58a756460a Clean headers 2023-04-01 09:18:43 +02:00
Romain Thomas 683fc6cea7 Enhance mypy stubs (related to #650) 2023-03-25 10:45:37 +01:00
Romain Thomas 2de5816f04 Update stubs 2023-03-19 20:21:51 +01:00
Romain Thomas 363f1a1b07 Add API to setup a log file sink (fix #875) 2023-03-18 11:16:34 +01:00
Romain Thomas a3ec9dc89e FILE_END is a Windows macro [...] so let's change it. 2023-03-18 10:41:21 +01:00
Romain Thomas 9320303fb3 Enhance the methods to relocate the segments table
This commit resolves #872
2023-03-18 07:30:23 +01:00
Romain Thomas 6357c6370b Use the span interface 2023-03-11 16:37:09 +01:00
Romain Thomas d3aa0f4f93 Remove exceptions 2023-03-05 09:54:48 +01:00
Romain Thomas 9da2466609 Improve the LIEF Python build system by using pyproject.toml
- It also provides typing info (close #650)
- Enhance the test suite
- Remove deprecated PE functions
2023-02-19 20:19:03 +01:00
Romain Thomas 69e9fd39a5 Remove PE hooking 2023-02-11 09:21:21 +01:00
Romain Thomas c91b7c2de1 Update code to ease Python stub files (related #650) 2023-02-04 08:45:40 +01:00
Romain Thomas 6594b7d1ab Allows Binary::write to take a Builder::config_t parameter 2023-01-29 17:09:11 +01:00
fanquake 6389d5d718 ELF: fix typo in has() description 2023-01-09 17:32:17 +00:00
Romain Thomas 969411f8ef Welcome 2023 2023-01-03 10:38:09 +01:00
Romain Thomas 1149e81c2b Merge pull request #849 from mrexodia/msvc-runtime
Fix MSVC runtime selection
2023-01-03 09:20:42 +00:00
Duncan Ogilvie bbdc62f691 Fix MSVC runtime selection 2023-01-02 17:30:42 +01:00
Romain Thomas b3167cb78b Fix missing relationship between symbols and sections
See: #841
2022-12-11 09:01:31 +01:00
Romain Thomas 2a10494b8a Enhance the Python IO interface
Related to #832
2022-12-09 10:22:53 +01:00
Romain Thomas 81fd78e81e Use the span/bytes interface (#833) 2022-12-07 08:22:25 +01:00
Romain Thomas 85ce881011 Process #833 2022-12-07 08:22:25 +01:00
Romain Thomas d445beaac3 Expose 'remove_dynamic_symbol' 2022-11-24 04:22:22 +01:00
Romain Thomas 91d5162be4 Enable support for parsing a Mach-O from memory 2022-11-22 10:55:15 +01:00
Romain Thomas 803127cf52 Resolve #816 2022-11-09 17:55:54 +01:00
Romain Thomas 9dbbc39c65 Update dependencies 2022-11-01 08:16:36 +01:00
Wilson Martin 7e624c997a Bugfix for ImportEntry to accept PE_TYPE
In the Python bindings, a new instance of ImportEntry
has it's type hard-coded to PE_TYPE::PE32, with no
way to change the type once created.

This prevents adding new ordinal imports to PE32+,
aka 64-bit, binaries.

The fix is to allow ImportEntry to also accept PE_TYPE.
In addition, the unittest also documents how to add an ordinal
using LIEF.

* Update ImportEntry to accept PE_TYPE
* Update python bindings for ImportEntry
* Add unittest for ImportEntry and ordinals
2022-10-12 14:38:56 -04:00
Romain Thomas f29aa6ba0d Fix DOWNLOAD_EXTRACT_TIMESTAMP warning 2022-09-12 06:31:28 +02:00
Romain Thomas 27754bc698 Update bindings 2022-08-13 04:53:27 +02:00
ζeh Matt 6085bbc949 Use explicit function signature for python bindings on write function 2022-07-22 06:36:35 +02:00
Romain Thomas 0c244dab90 Fix #735 2022-07-03 06:41:38 +02:00
David Sanders 10f8d01b8d Improve Mach-O handling of page size 2022-06-18 11:00:27 -07:00
David Sanders 06d492b8f6 Fix ordering of resource node childs in PE 2022-06-17 05:07:57 +00:00
Romain Thomas fa306af477 Bump pybind11 version 2022-06-17 06:48:58 +02:00
David Sanders 0ecd6682c7 Add API to remove a section from a segment & section names 2022-06-12 07:03:48 +00:00
Romain Thomas e1a8244b92 Enhance Mach-O's builder and add support for recent LC commands 2022-04-16 15:10:56 +02:00
Romain Thomas 7412a4c50c Add API to get a section from a segment & section names 2022-04-04 06:24:37 +02:00
Romain Thomas 266f989e52 Enable support for modifying section-less ELF binaries 2022-04-03 19:34:44 +02:00
Romain Thomas baa023b914 Remove exceptions 2022-04-01 05:38:30 +02:00
Romain Thomas 946b66550c Fix Python life time issue
Resolve #688
2022-03-31 07:15:46 +02:00
Romain Thomas b421535b8e Re-compute the OptionalHeader's checksum
Resolve #660
2022-03-07 07:44:28 +01:00
Romain Thomas 7f878f40ee Enable to re-compute the PE rich header
Resolve #587
2022-03-05 21:29:53 +01:00
Wolf Vollprecht a15c6d1240 allow external pybind11 2022-03-05 11:42:04 +01:00
Romain Thomas 9511d9fccf Update doc according to #675 2022-03-05 10:19:12 +01:00
Romain Thomas ba54ea632b Add support for PE delayed imports
Resolve #664
2022-03-01 06:18:44 +01:00
Adrian Haensler 9331982bfe support update of auxiliary symbol versions and adding new SymbolVersionAuxRequirements 2022-02-25 05:08:44 +01:00
Romain Thomas 3816cccd95 Improve Mach-O relocations parser 2022-02-16 22:42:03 +01:00
Romain Thomas 8fcff6e8e3 Proprify PE resources handling 2022-02-16 05:32:25 +01:00
Romain Thomas 274d887e17 Update PE parser interface 2022-02-14 06:40:06 +01:00
Romain Thomas 50986fcaf1 Use a span interface 2022-02-13 10:39:38 +01:00