[PATCH] D59553: llvm-symbolizer shows incorrect source line info if --gc-sections used
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 10:37:32 PDT 2019
dblaikie added subscribers: JDevlieghere, probinson, echristo.
dblaikie added a comment.
This seems like it might be worth a broader discussion about these sort of cases - probably llvm-dev, maybe with some DWARF folks (though the usual LLVM debug info cabal (myself, @aprantl, @probinson, @JDevlieghere, and @echristo) is probably sufficient to get a rough idea of what might be a good general approach).
Looking at all the cases where addresses to sections that aren't allocated (& this happens not just in gc-sections, but also with inline functions (the DWARF for one copy of an inline function can't point to another copy, so its addresses become zero currently, etc) which is a more broadly applicable problem (though I suppose without gc-sections a CU's address range can't be empty, because it can't consist of only inline functions - but it does apply to the high/low pc of the subprogram DIE at least))
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59553/new/
https://reviews.llvm.org/D59553
More information about the llvm-commits
mailing list