From f5aae6dda6cd7a7629c4396c3fa11f56dc369215 Mon Sep 17 00:00:00 2001 From: Vasileios Kalintiris Date: Mon, 16 May 2016 11:53:51 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269651 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/linux-ld.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c index c15e24d294..1c7a68161b 100644 --- a/test/Driver/linux-ld.c +++ b/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 -- 2.50.1