[llvm-bugs] [Bug 34820] Make lld's -gdb-index work without -ggnu-pubnames

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 17 08:25:36 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=34820

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #3 from David Blaikie <dblaikie at gmail.com> ---
I think this should be addressed - but not necessarily by having lld correctly
parse all the DWARF & build names from scratch.

I'll still argue this bug is a good place for this request - because as it
currently stands, lld produces in incorrect index in the absence of
gnu-pubnames (so a request that this "work" in a broad sense, as in "is
correct" - not necessarily "indexes everything")

To summarize a recent discussion:

* given an input with a CU without gnu-pubnames, lld currently includes that CU
in the gdb-index, but without any names indexed - this leads consumers to not
manually index the CU because they believe it's already covered by the index

* lld should either index the contents (expensive in both link time and linker
implementation complexity - probably undesirable as the first resolution of
this bug indicated) or produce an index that does not suggest such CUs are
covered by it

* additionally, probably a warning that the index is incomplete would be nice
(perhaps when -gdb-index is used, a warning if any CU is missing pubnames, and
an error if /all/ CUs are missing pubnames)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190717/0296a251/attachment.html>


More information about the llvm-bugs mailing list