summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/linux-ld.c
diff options
context:
space:
mode:
authorSumanth Gundapaneni <sgundapa@codeaurora.org>2017-01-19 16:54:04 +0000
committerSumanth Gundapaneni <sgundapa@codeaurora.org>2017-01-19 16:54:04 +0000
commit1952acf958ab5d7276c642c3c4fb33028b42fc0e (patch)
treefa7dca75a470e54d4d52a6cc2d72ffb5995c48b3 /clang/test/Driver/linux-ld.c
parent5f2f53b10639a8b1e9fea5a297435f8abd7e7bd7 (diff)
downloadbcm5719-llvm-1952acf958ab5d7276c642c3c4fb33028b42fc0e.tar.gz
bcm5719-llvm-1952acf958ab5d7276c642c3c4fb33028b42fc0e.zip
[Hexagon] Linux linker does not support .gnu-hash
Hexagon Linux dynamic loader does not use (in fact does not support) .gnu-hash Differential Revision: https://reviews.llvm.org/D28865 llvm-svn: 292496
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r--clang/test/Driver/linux-ld.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c
index 5d1001beb02..e5aa870866d 100644
--- a/clang/test/Driver/linux-ld.c
+++ b/clang/test/Driver/linux-ld.c
@@ -705,6 +705,14 @@
// CHECK-PPC64LE-ELFv2: "-m" "elf64lppc"
// CHECK-PPC64LE-ELFv2: "-dynamic-linker" "{{.*}}/lib{{(64)?}}/ld64.so.2"
//
+// Check that we do not pass --hash-style=gnu or --hash-style=both to
+// hexagon linux linker
+// RUN: %clang %s -### -o %t.o 2>&1 \
+// RUN: --target=hexagon-linux-gnu \
+// RUN: | FileCheck --check-prefix=CHECK-HEXAGON %s
+// CHECK-HEXAGON: "{{.*}}hexagon-link{{(.exe)?}}"
+// CHECK-HEXAGON-NOT: "--hash-style={{gnu|both}}"
+//
// Check that we do not pass --hash-style=gnu and --hash-style=both to linker
// and provide correct path to the dynamic linker and emulation mode when build
// for MIPS platforms.
OpenPOWER on IntegriCloud