diff options
author | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2016-05-16 11:53:51 +0000 |
---|---|---|
committer | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2016-05-16 11:53:51 +0000 |
commit | 44deb63ff2585286bb9f3cc10b8bab69c48d8230 (patch) | |
tree | e46252ece2fd91da72f2025dfb063884c5014001 | |
parent | 0d05484db6c4f81bb74c59276ce34323634de721 (diff) | |
download | bcm5719-llvm-44deb63ff2585286bb9f3cc10b8bab69c48d8230.tar.gz bcm5719-llvm-44deb63ff2585286bb9f3cc10b8bab69c48d8230.zip |
[mips] Add test for the dynamic linker when using the mips64el-fedora-linux triple.
We should use the musl linker only when there's no environment specified and
the vendor is MTI. The new test verifies this behaviour and is a follow-up to
the r269411 commit that added the vendor field check.
llvm-svn: 269651
-rw-r--r-- | clang/test/Driver/linux-ld.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index c15e24d294a..1c7a68161b3 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -762,6 +762,14 @@ // CHECK-MIPS64EL-N32-NAN2008: "-dynamic-linker" "{{.*}}/lib32/ld-linux-mipsn8.so.1" // CHECK-MIPS64EL-N32-NAN2008-NOT: "--hash-style={{gnu|both}}" // +// RUN: %clang %s -### -o %t.o 2>&1 --target=mips64el-redhat-linux \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-REDHAT %s +// CHECK-MIPS64EL-REDHAT: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64EL-REDHAT: "-m" "elf64ltsmip" +// CHECK-MIPS64EL-REDHAT: "-dynamic-linker" "{{.*}}/lib64/ld.so.1" +// CHECK-MIPS64EL-REDHAT-NOT: "-dynamic-linker" "{{.*}}/lib64/ld-musl-mipsel.so.1" +// CHECK-MIPS64EL-REDHAT-NOT: "--hash-style={{gnu|both}}" +// // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: --target=sparc-unknown-linux-gnu \ // RUN: | FileCheck --check-prefix=CHECK-SPARCV8 %s |