When populating the symbol table for an ELF object file, don't insert any symbols that come from ELF sections which don't have runtime allocated memory (typically debugging symbols).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good - one minor change to drop braces from the if. (I can make this change myself if I'm submitting it for you)
Do you need me to submit this for you? (if you don't have LLVM commit access)
llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | ||
---|---|---|
174–176 |
llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | ||
---|---|---|
173 | We generally prefer that, though it does seem unnecessary to declare that for a single use. |
We generally prefer that, though it does seem unnecessary to declare that for a single use.
Might as well do: if ((Sec.get()->getFlags() & ELF::SHF_ALLOC) == 0))