[PowerPC] Fix ELF interpreter name for powerpc64le-linux
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 20 Jun 2014 14:19:02 +0000 (14:19 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 20 Jun 2014 14:19:02 +0000 (14:19 +0000)
commit68e902c36033351942b12c6c29ed950f8cdd5606
tree8c741a2da8369b05de838e846feb49c09b5bdc9a
parenta8331b992575ab2f1a2c98c12f09c2ebf87ce0b9
[PowerPC] Fix ELF interpreter name for powerpc64le-linux

On PowerPC LE the system uses the /lib64/ld64.so.2 dynamic linker name
instead of /lib64/ld64.so.1 (to indicate the ELFv2 ABI version).

This fixes the clang driver to pass the appropriate -dynamic-linker
setting, and adds some more tests to linux-ld.c.

llvm-svn: 211360
clang/lib/Driver/Tools.cpp
clang/test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/powerpc64le-linux-gnu/crt1.o [new file with mode: 0644]
clang/test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/powerpc64le-linux-gnu/crti.o [new file with mode: 0644]
clang/test/Driver/Inputs/ubuntu_14.04_multiarch_tree/usr/lib/powerpc64le-linux-gnu/crtn.o [new file with mode: 0644]
clang/test/Driver/linux-ld.c