<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 - A shared library linked by lld crashes at loading"
   href="https://bugs.llvm.org/show_bug.cgi?id=48325">48325</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>A shared library linked by lld crashes at loading
          </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>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>MachO
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dpldobrev@protonmail.com
          </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=24218" name="attach_24218" title="The corrupted binary and its source and object code">attachment 24218</a> <a href="attachment.cgi?id=24218&action=edit" title="The corrupted binary and its source and object code">[details]</a></span>
The corrupted binary and its source and object code

I have attached a shared library and its object file linked by LLD. It was
produced with the following options:

-flavor darwinnew -lc++ -lSystem -dylib -sdk_version 10.12.0

Its source code is attached too. It's been compiled by Clang revision
0c8f9b8099fd0500cd885bc699924e20371014ff (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>)
with:

-cc1 -O3

lld has been built from the same revision.

The archive also contains working versions of the code, the object file and the
library. The only differences are two implicit constructors and one implicit
destructor all made explicit.

The problem might not be in the linker but rather in the compiler - I'm not
sure. In case I've been wrong in my guess it's lld, please reassign to the
respective category.</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>