Commit Graph

542 Commits

Author SHA1 Message Date
Romain Thomas 27be4e6b2d Add support for GNU_PROPERTY_AARCH64_FEATURE_PAUTH 2024-10-26 15:46:14 +02:00
Romain Thomas 086c49fb7a Add is_targeting_android to determine if an ELF targets Android 2024-10-26 08:48:08 +02:00
Romain Thomas 4cc1dd26be Refactor and clean code in LIEF's abstract layer
Resolve #1119
2024-10-26 05:36:49 +02:00
Romain Thomas 8784fb5aa5 Refactor LIEF's Abstract Function 2024-10-26 05:03:52 +02:00
Romain Thomas 442fb46395 Initial support for Apple's dyld shared cache 2024-10-19 06:29:24 +02:00
Romain Thomas 07b3241fe1 Improve objc support
- Add `LIEF::objc::DeclOpt` to tweak the generated output
- Add `objc::Class:to_decl` & `objc::Class::to_decl`
- Improve the documentation
- Fix issue with Small method address
2024-10-19 04:45:13 +02:00
Romain Thomas b6de8801b2 Improve documentation 2024-10-19 04:39:01 +02:00
Romain Thomas e98d6e7d0a #1114 follow up 2024-10-12 06:31:57 +02:00
Romain Thomas 17b86f8b37 Make sure the Mach-O parsing depth matches C++
Resolve #1114
2024-10-08 05:10:39 +02:00
Romain Thomas ba294bd181 Make sure we have a correct visibility 2024-10-05 05:49:38 +02:00
Romain Thomas a3f034d767 Fix clash with Windows's header #define 2024-10-05 05:29:00 +02:00
Romain Thomas 3def579f75 Add support for creating and analyzing chained fixups & bindings 2024-10-05 05:23:39 +02:00
Romain Thomas f8d30efa17 Remove unused header 2024-10-05 04:16:19 +02:00
Romain Thomas 0f4ed10aba Fix logging 2024-09-28 18:30:10 +02:00
Manuel Zabelt b8b2ae0b02 Adjusted authenticode_reader.py to use Attribute.TYPE instead of SIG_ATTRIBUTE_TYPES (#1111)
Inspired by this change: 8dd8a255a8
2024-09-28 06:19:15 +02:00
Mike Nawrocki 165b9f6535 Python: mark add_relocation return value reference (#1108)
Makes the return value from the PE::Binary add_relocation method an
internal reference.
2024-09-21 07:18:12 +02:00
Romain Thomas 77c633cc22 Add missing bindings 2024-09-21 07:13:46 +02:00
Mike Nawrocki 53ea6eae0b Python: mark add_entry return value as reference (#1106)
Makes the return value from the PE::Reference add_entry method an
internal reference.
2024-09-19 11:17:30 +02:00
Romain Thomas 5c1f3613cb More values for BuildVersion::PLATFORMS 2024-09-19 10:43:26 +02:00
Romain Thomas 544332db2c Add helpers to determine the platform targeted by a Mach-O 2024-09-19 10:35:42 +02:00
Romain Thomas c8cc69c77e Make sure we support buffer larger than 1000.
See: https://github.com/python/cpython/blob/453da532fee26dc4f83d4cab77eb9bdb17b941e6/Python/sysmodule.c#L4001
2024-09-19 09:44:49 +02:00
Romain Thomas 94adbf5f2a Fix types (from #1100) 2024-09-14 08:07:29 +02:00
Romain Thomas cd81ed3ba6 Add get_int_from_virtual_address in the abstract layer 2024-09-14 05:57:08 +02:00
Romain Thomas 155febcb77 Expose the chained's next value 2024-09-14 05:01:01 +02:00
Romain Thomas fa41703c1a Add payload helper to access the raw content of the command 2024-09-14 04:23:18 +02:00
Romain Thomas 39b21e4319 Add NONE entry 2024-09-01 14:18:11 +02:00
Romain Thomas d574f58004 Update position 2024-08-31 09:53:43 +02:00
Aiden-Isik 93e2e65a6f Add PowerPC Big Endian 0x1F2 (found on Xbox 360) (#1090) 2024-08-31 09:25:22 +02:00
Romain Thomas 2001d8c9b7 Resolve #1093 2024-08-31 09:19:27 +02:00
Romain Thomas 993f24bdc1 Add Mach-O symbol stubs iterator 2024-08-31 07:35:26 +02:00
Romain Thomas 5915877834 Add require_extended_version error type 2024-08-31 07:06:47 +02:00
Romain Thomas 0ff2f093c0 Enhance demangling support (especially with LIEF extended) 2024-08-31 07:01:05 +02:00
Romain Thomas 222a160cf5 Add the attribute from_dyld_shared_cache 2024-08-31 05:13:36 +02:00
Romain Thomas d28e879ad3 Fix support for Mach-O indirect symbols indexed with 0xc0000000 (LOCAL and ABS) 2024-08-31 05:10:36 +02:00
Romain Thomas ea4a6b299f Add support for binding operation infered from indirect symbol table 2024-08-24 07:30:25 +02:00
Romain Thomas 62929828ce Expose a bindings iterator 2024-08-24 07:01:27 +02:00
Romain Thomas bc31ee5dce Expose an iterator over the indirect symbols located in DynamicSymbolCommand 2024-08-24 06:02:46 +02:00
Romain Thomas f979004437 Resolve #1086 2024-08-24 04:44:44 +02:00
Romain Thomas b267a99cb8 Update LIEF Python package README 2024-08-18 12:34:38 +02:00
Romain Thomas 7c3b4a3f9f Add demangle utility (resolve: #1054) 2024-08-17 05:30:57 +02:00
Romain Thomas ab85865f27 Improve support for RISC-V architecture
Resolve: #1082
2024-08-17 04:57:30 +02:00
Peter Meerwald-Stadler 42df4964f0 Fix some more typos (#1084) 2024-08-02 21:28:08 +02:00
Romain Thomas 24d48ad0b5 Fix Mach-O issue 2024-07-27 21:01:04 +02:00
nsurbay f4bf30dfbc Support new Dynamic tags for X86_64 (#1081)
* Add new X86_64 specific Dynamic Tag

See https://sourceware.org/git/?p=glibc.git;a=commit;h=848746e88ec2aa22e8dea25f2110e2b2c59c712e

* Add missing Dynamic Tag in C api

---------

Co-authored-by: Romain Thomas <me@romainthomas.fr>
Co-authored-by: Romain Thomas <7450402+romainthomas@users.noreply.github.com>
2024-07-27 11:00:43 +02:00
Romain Thomas ff72aa9242 Fix warnings 2024-07-27 05:31:44 +02:00
Romain Thomas 8a2ec4eeae Fix typo 2024-07-27 05:28:30 +02:00
Romain Thomas 2f7620f527 Add support for LC_ROUTINE/LC_ROUTINE64 2024-07-27 05:27:10 +02:00
Romain Thomas 4800a80769 Add support for Mach-O LC_SUBCLIENT command 2024-07-27 05:01:30 +02:00
Romain Thomas ab1387add8 Add utilities 2024-07-23 16:58:13 +02:00
Romain Thomas d4e767b3d9 Add OFF level and the API to get the current level 2024-07-23 16:58:12 +02:00