aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/hidden-vis-shared.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/hidden-vis-shared.s')
-rw-r--r--test/ELF/hidden-vis-shared.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ELF/hidden-vis-shared.s b/test/ELF/hidden-vis-shared.s
new file mode 100644
index 000000000000..f3fa206895a3
--- /dev/null
+++ b/test/ELF/hidden-vis-shared.s
@@ -0,0 +1,18 @@
+// REQUIRES: x86
+
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
+// RUN: ld.lld -shared %t2.o -o %t2.so
+// RUN: ld.lld %t.o %t2.so -o %t
+// RUN: llvm-readobj -r %t | FileCheck %s
+// RUN: ld.lld %t2.so %t.o -o %t
+// RUN: llvm-readobj -r %t | FileCheck %s
+
+// CHECK: Relocations [
+// CHECK-NEXT: ]
+
+.global _start
+_start:
+callq bar
+.hidden bar
+.weak bar