-
Notifications
You must be signed in to change notification settings - Fork 111
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
dwarfdump getting wrong names #180
Comments
I think this is because our object loader needs to process relocations gimli-rs/object#4 |
Ah, yes! That makes perfect sense. |
Instead of apply relocations LLVM uses a relocation map: This saves having to load the entire file. |
I'm looking into implementing this. I think the relocation map idea will work great. We already have |
Here is
issue-358.hpp
:Here is
issue-358.cpp
:Compile with
clang++ -g3 -std=c++14 -c issue-358.cpp -o issue-358.o
.Run our dwarfdump (
../gimli/target/debug/examples/dwarfdump issue-358.o
) and every name is "clang version ...":(snipped)
Compare this to using the canonical libdwarf version of dwarfdump on this same object file,
dwarfdump issue-358.o
:(also snipped)
The libdwarf version of dwarfdump is picking up all the names that I would expect.
I haven't dug into this issue at all, I just noticed it, and am filing this bug for posterity.
The text was updated successfully, but these errors were encountered: