Commit Graph

428 Commits

Author SHA1 Message Date
Romain Thomas ada25284df Refactor PE's relocation API 2024-01-13 11:53:58 +01:00
Romain Thomas bcd9b27df3 Address feedback from #1009
Add `has_nx_stack` and `has_nx_heap`
2024-01-07 10:23:37 +01:00
Romain Thomas c01dc6af49 Update PE's ResourcesManager 2024-01-07 10:11:57 +01:00
Romain Thomas 78d2f4b9d3 Cleanup PE LoadConfiguration interfaces 2023-12-23 05:06:26 +01:00
Romain Thomas 8dd8a255a8 Narrow the scope of SIG_ATTRIBUTE_TYPES to LIEF::PE::Attribute::TYPE 2023-12-09 05:02:47 +01:00
Romain Thomas 3aa5497b5e Cleanup 2023-12-03 10:02:46 +01:00
Romain Thomas fac0e7840e Add support for ELF NT_GNU_PROPERTY_TYPE_0 (read-only)
See: `tests/elf/test_notes.py` for API usage

Resolve: #975
2023-12-02 08:03:12 +01:00
Romain Thomas 47a78077b4 Add helpers for cross-compilation 2023-11-26 15:48:58 +01:00
Romain Thomas 6ddc7e4145 Resolve #956 2023-11-25 11:46:31 +01:00
Romain Thomas df97777811 Fix typo and update the changelog 2023-11-18 12:33:36 +01:00
Romain Thomas 529d5a8679 Implement classof for Binary object 2023-11-18 09:00:39 +01:00
Romain Thomas ded37c5b92 Expose non-const iterators 2023-11-18 09:00:38 +01:00
Romain Thomas 879c4c5b3b More span 2023-11-10 18:38:29 +01:00
Romain Thomas ad50afbdbf More span 2023-11-10 10:59:28 +01:00
Romain Thomas 1a1d2ec9e7 Update typing 2023-11-10 07:43:09 +01:00
Romain Thomas 262ad9735a Cleanup std::vector with span when it's suitable 2023-11-10 07:41:31 +01:00
Romain Thomas 1e0bc5d522 Simplify CMake 2023-11-10 05:33:41 +01:00
Romain Thomas 78c3196d67 Refactor the ELF Note support 2023-11-09 06:26:56 +01:00
Romain Thomas 0c472ca906 Replace str | None with Optional 2023-11-07 13:39:57 +01:00
Romain Thomas 23546d4bad Resolve #996
Usage:

```toml
[lief.build]
cxx-compiler = "/path/to/cxx"
c-compiler = "/path/to/c"
```
2023-11-07 11:43:12 +01:00
Romain Thomas 1c3e1d05b4 Fix missing include 2023-11-07 09:42:01 +01:00
Romain Thomas 1eb2df6e47 Use a CMakeLists.txt in the src/ directory 2023-11-04 05:31:13 +01:00
Romain Thomas 78006bc772 New build backend based on scikit-build-core 2023-11-04 04:06:51 +01:00
Romain Thomas 29f7e9d86f Python 3.12 support 2023-10-28 05:39:27 +02:00
Romain Thomas 021705297d Remove unused section 2023-10-22 20:07:31 +02:00
Romain Thomas e5ef1da160 Fix typing 2023-10-22 14:00:04 +02:00
Romain Thomas 2a2c56a173 Make typing stubs more accurate 2023-10-21 06:36:59 +02:00
Romain Thomas a27bd6a644 Add support for os.PathLike inputs in the parsers
Resolve: #974
2023-10-21 05:23:42 +02:00
Romain Thomas dffcff5df7 Fix logging 2023-10-15 23:03:20 +02:00
Romain Thomas 3ade2736c0 Improve typing stubs 2023-10-15 22:14:28 +02:00
Romain Thomas b8409a73c2 Fix missing include 2023-10-15 16:48:57 +02:00
Romain Thomas 5c43eadcd1 Use Python sys.stderr for LIEF's logger
By default, LIEF's logger uses `stderr` to emit log messages which
is not catchable in Python. This commit makes use of `sys.stderr` for
the Python bindings.
2023-10-14 05:36:41 +02:00
Romain Thomas 068512c331 Bump nanobind to 1.6.2.r7.gb4c5af0 2023-10-07 12:48:52 +02:00
Romain Thomas d7b962d782 Fix 2023-10-01 10:35:08 +02:00
Romain Thomas dd95b2fbab Fix list vs tuple 2023-10-01 09:20:55 +02:00
Romain Thomas 9de43ed301 Set build temp 2023-10-01 09:14:08 +02:00
Romain Thomas 84b053793c Overload setuptools commands 2023-09-30 21:13:51 +02:00
Romain Thomas dd96f0129c pip wheel update 2023-09-30 15:56:10 +02:00
Romain Thomas b4c2f47563 Get rid of setup.py (deprecated) 2023-09-30 10:48:42 +02:00
Romain Thomas db0bf3e794 Remove typing info 2023-09-30 06:40:03 +02:00
Romain Thomas ad312da094 Add option for a custom build dir 2023-09-30 04:39:37 +02:00
Romain Thomas 6e4722624a Fix typo 2023-09-23 06:49:27 +02:00
Vikas 84d1388e5e ELF Python - fixing utf-8 encoding issue 2023-09-21 20:08:13 +05:30
Romain Thomas b3d6b20085 Fix return type (#965) 2023-09-16 06:00:21 +02:00
Romain Thomas 3c959daa58 Resolve #965 2023-09-16 05:49:26 +02:00
Romain Thomas 3414ded8cd Fix doc (#962) 2023-09-10 20:54:36 +02:00
Romain Thomas b820df0bd7 Fix space 2023-09-10 13:11:23 +02:00
Romain Thomas 1ecfbf1fd8 Add new ELF DT_ enums.
This commit resolves the `UNDEFINED` output mentioned in #954, whilst
not supporting yet the packed relocations.
2023-08-27 21:33:23 +02:00
Romain Thomas 5b6eefbe9c Resolve #945 2023-08-05 21:28:36 +02:00
Romain Thomas f999ea6456 Clean and refactor the PE SignatureParser 2023-07-30 06:07:41 +02:00