<html>
    <head>
      <base href="http://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 --- - ld64/libLTO crashes with bit-code files from clang 3.4"
   href="http://llvm.org/bugs/show_bug.cgi?id=20509">20509</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ld64/libLTO crashes with bit-code files from clang 3.4
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>lto
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>t.poechtrager@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>Created <span class=""><a href="attachment.cgi?id=12844" name="attach_12844" title="backtrace">attachment 12844</a> <a href="attachment.cgi?id=12844&action=edit" title="backtrace">[details]</a></span>
backtrace

$ cat test.c
int main() {return 0;}

# Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
$ clang test.c -g -c -flto

# Adjust DYLD_LIBRARY_PATH, so ld64 uses the correct libLTO
$ export DYLD_LIBRARY_PATH=/Users/thomas/llvm-trunk/lib

$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-236.3
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m armv7m
armv7em
LTO support using: LLVM version 3.6.0svn

$ ld -arch x86_64 -macosx_version_min 10.9 test.o
Segmentation fault: 11

LLVM rev: 214519. Backtrace is attached.</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>