<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Debug information corrupted due to multiple .debug_str sections in relocatable output"
   href="https://bugs.llvm.org/show_bug.cgi?id=35223">35223</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Debug information corrupted due to multiple .debug_str sections in relocatable output
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ELF
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jh7370.2008@my.bristol.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19376" name="attach_19376" title="Reproducible package">attachment 19376</a> <a href="attachment.cgi?id=19376&action=edit" title="Reproducible package">[details]</a></span>
Reproducible package

This is a regression caused by r317406. Repro is attached.

DWARF consumers only ever expect there to be one .debug_str section, as there
is nothing in the DWARF specification that identifies which section to use for
debug strings, beyond the section name.

Following r317406, in relocatable output, LLD does not combine .debug_str
sections. This means that attempts to use tools such as llvm-dwarfdump can
result in invalid output. For example, with the attached reproducible, running
"llvm-dwarfdump -debug-info test.ro" will result in the wrong values for the
DW_AT_name and DW_AT_comp_dir attributes in the first CU.

It's worth pointing out that because the two sections will eventually get
merged in the final link, this is only a problem with the intermediate
relocatable object.</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>