8000 ELF: fix DWARF 5 source file lookups by raaller · Pull Request #879 · angr/cle · GitHub
[go: up one dir, main page]

Skip to content

ELF: fix DWARF 5 source file lookups - #879

Open
raaller wants to merge 1 commit into
angr:masterfrom
raaller:fix/dwarf5-line-filenames-548
Open

raaller wants to merge 1 commit into
angr:masterfrom
raaller:fix/dwarf5-line-filenames-548

Conversation

@raaller
@raaller raaller commented Oct 22, 2026
Copy link
Copy Markdown

Fix file and directory lookups in DWARF 5 line tables, which use zero-based indices. Preserve legacy indexing and the implicit compilation directory for older versions.

Added regression coverage for DWARF 4/5 and relative/absolute directories.

Closes #548

@rhelmot
rhelmot commented Nov 5, 2026
Copy link
Copy Markdown
Member

CLE is enough of an end-to-end system that I would strongly prefer we test against real binaries rather than mocks. Can you either synthesize the subject of your testcase into an actual ELF or find an in-the-wild redistributable ELF and commit it to angr/binaries?

@raaller
raaller commented Nov 6, 2026
Copy link
Copy Markdown
Author

hi, i've opened angr/binaries#276 with three synthetic ELF fixtures, assembly sources, and a rebuild script. They cover DWARF 4 and DWARF 5 filename indexing with relative and absolute directories, check on this pls

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.

Wrong lookups for DWARF v5 filename

2 participants

0