<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 - error: broken object file: ddraw.lib"
   href="https://bugs.llvm.org/show_bug.cgi?id=34709">34709</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error: broken object file: ddraw.lib
          </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>Linux
          </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>COFF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvm@thecybershadow.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>lld-link can't seem to be able to link some Microsoft .lib files. One example
of this is ddraw.lib from the DirectX 7 SDK.

Upon attempting to read the file, lld prints:

error: broken object file: ddraw.lib(ddraw.dll)

and exits.

Since the ddraw.lib file is publicly available, I've mirrored it here:
<a href="https://dump.thecybershadow.net/cf12728e199866ddb654463cd555f7c7/ddraw.lib">https://dump.thecybershadow.net/cf12728e199866ddb654463cd555f7c7/ddraw.lib</a>

Other examples of files that cause lld-link to fail with the same error are
dsound.dll (from the same SDK), and ltkrn_n.lib from the LeadTools SDK.</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>