<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Unwinding fails when linking object file produced by rustc" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24213&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Kywkn0rNByiF1OQjFaTwVOMNE-O_nzVOE8oR582rj1c&s=xROvRbhjBaTWNBjn2JrEdUI70siK8fcRhYpvku9YZ7s&e=">24213</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unwinding fails when linking object file produced by rustc
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tamird@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Full repro is here: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tamird_rust-5Flld&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Kywkn0rNByiF1OQjFaTwVOMNE-O_nzVOE8oR582rj1c&s=SjwbGbn5Y85IRrcqcVNqieWtWiIvZ2QEyV3lGl2W1ak&e=">https://github.com/tamird/rust_lld</a>, but you'll need a
working rust compiler and might need to massage build.sh for your system.

TL;DR unwinding fails with `fatal runtime error: Could not unwind stack, error
= 5`.

Here's the symbol table diff between what `ld` produces vs `lld`:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__gist.github.com_tamird_1af0c8d9a7132fd9915e&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=Kywkn0rNByiF1OQjFaTwVOMNE-O_nzVOE8oR582rj1c&s=jnprYfqc2vuto5a41Gmpg3f1pDV4fTBK9H6OpCgBCTQ&e=">https://gist.github.com/tamird/1af0c8d9a7132fd9915e</a></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>