diff options
author | Renato Golin <renato.golin@linaro.org> | 2015-07-27 09:56:37 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2015-07-27 09:56:37 +0000 |
commit | 24ba3e985211f2cee5280ea75f507b9df5b941b2 (patch) | |
tree | 35f98b5549c3e72ef7a6c897b3b01d7317180fcf /clang/test/Driver/linux-ld.c | |
parent | 015ce0f68f791b3abec4225c1b2e532ce5020174 (diff) | |
download | bcm5719-llvm-24ba3e985211f2cee5280ea75f507b9df5b941b2.tar.gz bcm5719-llvm-24ba3e985211f2cee5280ea75f507b9df5b941b2.zip |
Setting ARM dynamic linker name from commandline
Currently trigger to select hard-float linker is only based of -gnueabihf
appearing in target triplet, but we should also select it when hardfloat
is requested via cmdline.
Patch by Khem Raj.
llvm-svn: 243262
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r-- | clang/test/Driver/linux-ld.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index 2c06fc1d779..3a326f4d017 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -618,6 +618,13 @@ // CHECK-ARM: "-dynamic-linker" "{{.*}}/lib/ld-linux.so.3" // // RUN: %clang %s -### -o %t.o 2>&1 \ +// RUN: --target=arm-linux-gnueabi -mfloat-abi=hard \ +// RUN: | FileCheck --check-prefix=CHECK-ARM-ABIHF %s +// CHECK-ARM-ABIHF: "{{.*}}ld{{(.exe)?}}" +// CHECK-ARM-ABIHF: "-m" "armelf_linux_eabi" +// CHECK-ARM-ABIHF: "-dynamic-linker" "{{.*}}/lib/ld-linux-armhf.so.3" +// +// RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: --target=arm-linux-gnueabihf \ // RUN: | FileCheck --check-prefix=CHECK-ARM-HF %s // CHECK-ARM-HF: "{{.*}}ld{{(.exe)?}}" |