diff options
| author | Simon Atanasyan <satanasyan@mips.com> | 2012-04-06 20:14:27 +0000 |
|---|---|---|
| committer | Simon Atanasyan <satanasyan@mips.com> | 2012-04-06 20:14:27 +0000 |
| commit | 1e1e2e2d9ad9b477606a4e054fcff007ef637353 (patch) | |
| tree | 5c84e3930aff1bb05a5c96c538b0f95cb44f1048 /clang/test/Driver/linux-ld.c | |
| parent | 8a102c21e313e14f4b5ea26fb63e326bb58686bb (diff) | |
| download | bcm5719-llvm-1e1e2e2d9ad9b477606a4e054fcff007ef637353.tar.gz bcm5719-llvm-1e1e2e2d9ad9b477606a4e054fcff007ef637353.zip | |
MIPS: Provide a correct path to the dynamic linker when build for MIPS 64-bit targets.
llvm-svn: 154200
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
| -rw-r--r-- | clang/test/Driver/linux-ld.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index 1ade7f1d050..9a35d5d386e 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -187,26 +187,35 @@ // CHECK-SUSE-10-3-PPC64: "-L[[SYSROOT]]/usr/lib/../lib64" // // Check that we do not pass --hash-style=gnu and --hash-style=both to linker -// when build for MIPS platforms. +// and provide correct path to the dynamic linker and emulation mode when build +// for MIPS platforms. // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips-linux-gnu -ccc-clang-archs mips \ // RUN: | FileCheck --check-prefix=CHECK-MIPS %s // CHECK-MIPS: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS: "-m" "elf32btsmip" +// CHECK-MIPS: "-dynamic-linker" "{{.*}}/lib/ld.so.1" // CHECK-MIPS-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mipsel-linux-gnu -ccc-clang-archs mipsel \ // RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s // CHECK-MIPSEL: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPSEL: "-m" "elf32ltsmip" +// CHECK-MIPSEL: "-dynamic-linker" "{{.*}}/lib/ld.so.1" // CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips64-linux-gnu -ccc-clang-archs mips64 \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64 %s // CHECK-MIPS64: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64: "-m" "elf64btsmip" +// CHECK-MIPS64: "-dynamic-linker" "{{.*}}/lib64/ld.so.1" // CHECK-MIPS64-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips64el-linux-gnu -ccc-clang-archs mips64el \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL %s // CHECK-MIPS64EL: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64EL: "-m" "elf64ltsmip" +// CHECK-MIPS64EL: "-dynamic-linker" "{{.*}}/lib64/ld.so.1" // CHECK-MIPS64EL-NOT: "--hash-style={{gnu|both}}" // // Thoroughly exercise the Debian multiarch environment. |

