<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 --- - compiling clang - does not check for location of ld-linux-x86-64.so.2"
href="https://llvm.org/bugs/show_bug.cgi?id=31033">31033</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compiling clang - does not check for location of ld-linux-x86-64.so.2
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>john.frankish@outlook.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When compiling clang it does not check the location of ld-linux-x86-64.so.2,
which is hardcoded to /lib64/ld-linux-x86-64.so.2
This means that items compiled with clang fail on systems where the loader is
located at /lib/ld-linux-x86-64.so.2
Is it enough to correct this in cfe-3.7.0.src/lib/Driver/Tools.cpp or is it
more complicated than that?
----------
$ cat t.c
#include <stdio.h>
int main(int argc, char **argv) { printf("hello world\n"); }
$ clang t.c
$ ./a.out
sh: ./a.out: not found
$ ldd a.out
linux-vdso.so.1 (0x00007ffea0fac000)
libc.so.6 => /lib/libc.so.6 (0x00007fc2249fe000)
/lib64/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2
(0x000055b04ec3c000)
$ cc t.c
$ ./a.out
hello world
$ ldd a.out
linux-vdso.so.1 (0x00007ffe1a794000)
libc.so.6 => /lib/libc.so.6 (0x00007fec95861000)
/lib/ld-linux-x86-64.so.2 (0x0000558a17752000)</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>