]> granicus.if.org Git - clang/commitdiff
[mips] Add test for the dynamic linker when using the mips64el-fedora-linux triple.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Mon, 16 May 2016 11:53:51 +0000 (11:53 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Mon, 16 May 2016 11:53:51 +0000 (11:53 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269651 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/linux-ld.c

index c15e24d294a98076deb94044e26ca60319f94013..1c7a68161b307e6af4f3469629b7d172645567ef 100644 (file)
 // 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