[PATCH] D26283: [ELF] - Partial support of --gdb-index command line option (Part 3).

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 11:23:26 PST 2016


On Wed, Dec 7, 2016 at 10:50 AM Greg Clayton via Phabricator <
reviews at reviews.llvm.org> wrote:

> clayborg added a comment.
>
> Ah, I missed the extra "gnu" in the pubnames and pubtypes. If these
> sections don't exist, can we generate them on the fly using common code and
> then use the generated data?
>

In some cases.

When using Fission we cannot - the pubnames go in the .o files, the DWARF
with the entities goes in the .dwo file. That's the big reason for this
feature - so that your debugger has an index and knows which .dwo files to
go to without needing to look at all of them first (& not even your linker
needs to look at all of them - indeed your linker need not have access to
your .dwo files at all)

In non-fission cases, you could parse all the DWARF in the linker and
compute these values, but that's a lot more work for the linker to do
compared to a table provided by the compiler in the object file. It could
be a fallback, but I don't think anyone has a need for that fallback at the
moment.


>
>
> https://reviews.llvm.org/D26283
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/05c9021e/attachment.html>


More information about the llvm-commits mailing list