<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Make lld's -gdb-index work without -ggnu-pubnames"
   href="https://bugs.llvm.org/show_bug.cgi?id=34820">bug 34820</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WONTFIX
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Make lld's -gdb-index work without -ggnu-pubnames"
   href="https://bugs.llvm.org/show_bug.cgi?id=34820#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Make lld's -gdb-index work without -ggnu-pubnames"
   href="https://bugs.llvm.org/show_bug.cgi?id=34820">bug 34820</a>
              from <span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span></b>
        <pre>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)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>