[llvm-bugs] [Bug 31033] New: compiling clang - does not check for location of ld-linux-x86-64.so.2
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 16 00:44:32 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31033
Bug ID: 31033
Summary: compiling clang - does not check for location of
ld-linux-x86-64.so.2
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: john.frankish at outlook.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
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)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161116/a6479d23/attachment-0001.html>
More information about the llvm-bugs
mailing list