Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin: prefer symbol table names over DWARF names #332

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

philipc
Copy link
Contributor

@philipc philipc commented Oct 3, 2024

Prefer the symbol table over the DWARF name because:

  • the symbol can include a clone suffix
  • llvm may omit the linkage name in the DWARF with -g1

These two cases are tested in testoutput/dwarf/cold and testoutput/dwarf/base-clang-g1.

This also fixes the case where the DWARF includes an inlined function with no name, and we wrongly used the symbol table. I don't have a test case for this.

Partial fix for #324 and #326

Prefer the symbol table over the DWARF name because:
- the symbol can include a clone suffix
- llvm may omit the linkage name in the DWARF with -g1

These two cases are tested in testoutput/dwarf/cold
and testoutput/dwarf/base-clang-g1.

This also fixes the case where the DWARF includes an inlined
function with no name, and we wrongly used the symbol table.
I don't have a test case for this.
@philipc philipc merged commit b43dfaa into gimli-rs:master Oct 4, 2024
12 checks passed
@philipc philipc deleted the function-symbol branch October 4, 2024 03:02
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.

1 participant