[PATCH] D74169: [WIP][LLD][ELF][DebugInfo] Skeleton implementation of removing obsolete debug info.

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 23 19:07:19 PST 2020


smeenai added a comment.

In D74169#1887799 <https://reviews.llvm.org/D74169#1887799>, @dblaikie wrote:

> 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.


Note that such post-processing is probably more suited to llvm-objcopy than lld, though of course they can use the same underlying LLVM library.


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