[PATCH] D74169: [WIP][LLD][ELF][DebugInfo] Skeleton implementation of removing obsolete debug info.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 18:09:22 PST 2020
dblaikie added a comment.
In D74169#1887791 <https://reviews.llvm.org/D74169#1887791>, @clayborg wrote:
> In D74169#1887764 <https://reviews.llvm.org/D74169#1887764>, @dblaikie wrote:
>
> > lld already supports gdb_index & there's plans to add debug_names support in the near future (~6 months).
>
>
> Does it support adding the GDB index after the fact on an already linked binary, or just at normal link time? I want to add a GSYM option to LLD at some point too. Can replace -gline-tables-only in many cases.
I don't think there's been any effort to add it as a post-processing step, no. I believe it can be built either from parsed DWARF or from debug_gnu_pubnames - in either case, at link time. I mean, it'd be probably quite practical to extend it to be able to be done as a standalone/post-processing step.
For the sake of object and linked executable size, I suspect we might end up trying to move the indexing out of the object files/linked executable - perhaps putting the names either in a third file, or in the .dwo files and generating an index from them instead of from the objects. Not sure. Some further experimentation expected there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74169/new/
https://reviews.llvm.org/D74169
More information about the llvm-commits
mailing list