<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 --- - Binary crashes in _dl_relocate_object"
   href="https://llvm.org/bugs/show_bug.cgi?id=25175">25175</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Binary crashes in _dl_relocate_object
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hfinkel@anl.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15079" name="attach_15079" title="Crashing binary">attachment 15079</a> <a href="attachment.cgi?id=15079&action=edit" title="Crashing binary">[details]</a></span>
Crashing binary

$ cat /tmp/hello.cpp 
#include <iostream>

int main() {
  std::cout << "hello\n";
}

$ clang++ -fuse-ld=lld2 -o /tmp/h -O3 /tmp/hello.cpp
$ clang++ -o /tmp/h-ld -O3 /tmp/hello.cpp

$ /tmp/h-ld 
hello
$ /tmp/h
Segmentation fault

$ gdb /tmp/h
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
...
(gdb) r
Starting program: /tmp/h 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7de8d66 in _dl_relocate_object () from /lib64/ld-linux-x86-64.so.2
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.149.el6_6.5.x86_64
(gdb) bt
#0  0x00007ffff7de8d66 in _dl_relocate_object () from
/lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7de08a3 in dl_main () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7df2b4e in _dl_sysdep_start () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7dde4a4 in _dl_start () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7dddb08 in _start () from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fffffffe795 in ?? ()
#7  0x0000000000000000 in ?? ()

This is trunk LLVM/Clang from two days ago and current trunk lld.

This binary also crashes when run on my FC19 machine. If you can't reproduce
the problem, please let me know. I'll happily tar up whatever you need.</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>