Skip to content

feat: Determine ABI for ELF files using LIEF#82

Merged
danielplohmann merged 12 commits intodanielplohmann:masterfrom
r0ny123:elf-abi-determination-18345444851281356132
Mar 23, 2026
Merged

feat: Determine ABI for ELF files using LIEF#82
danielplohmann merged 12 commits intodanielplohmann:masterfrom
r0ny123:elf-abi-determination-18345444851281356132

Conversation

@r0ny123
Copy link
Copy Markdown
Contributor

@r0ny123 r0ny123 commented Jan 16, 2026

No description provided.

r0ny123 and others added 10 commits January 16, 2026 15:26
This change implements ABI determination for ELF files by extracting the `identity_os_abi` from the ELF header using the LIEF library. The ABI information is now stored in the `BinaryInfo` class and accessible via the `abi` attribute.

Changes:
- Added `abi` attribute to `BinaryInfo` class.
- Implemented `getAbi` in `ElfFileLoader` to return the ABI name (e.g., "SYSTEMV").
- Added `getAbi` stubs to `PeFileLoader`, `MachoFileLoader`, and `DelphiKbFileLoader`.
- Updated `FileLoader` to extract and store the ABI.
- Updated `Disassembler` to populate `BinaryInfo.abi`.
- Updated `tests/testFileFormatParsers.py` to verify ABI extraction for ELF files.
…: Resolve conflict in testFileFormatParsers.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@r0ny123 r0ny123 marked this pull request as draft January 18, 2026 02:55
@r0ny123 r0ny123 marked this pull request as ready for review January 19, 2026 18:45
@danielplohmann danielplohmann merged commit 724789d into danielplohmann:master Mar 23, 2026
7 checks passed
@r0ny123 r0ny123 deleted the elf-abi-determination-18345444851281356132 branch March 23, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants