summaryrefslogtreecommitdiff
path: root/test/ELF/soname.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-12-30 11:57:38 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-12-30 11:57:38 +0000
commit5a5c549fe9a3fef595297bd21d36bed8409dc37d (patch)
treea964c8f5ac85b7b641cac022c5f9bf4eed3d2b9b /test/ELF/soname.s
parentfb911942f1434f3d1750f83f25f5e42c80e60638 (diff)
Notes
Diffstat (limited to 'test/ELF/soname.s')
-rw-r--r--test/ELF/soname.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/soname.s b/test/ELF/soname.s
new file mode 100644
index 0000000000000..9d6fe7681dace
--- /dev/null
+++ b/test/ELF/soname.s
@@ -0,0 +1,11 @@
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+// RUN: ld.lld %t.o -shared -soname=bar -o %t.so
+// RUN: ld.lld %t.o -shared -soname=bar -o %t2.so
+// RUN: ld.lld %t.o %t.so %t2.so -o %t
+// RUN: llvm-readobj --dynamic-table %t | FileCheck %s
+
+// CHECK: 0x0000000000000001 NEEDED SharedLibrary (bar)
+// CHECK-NOT: NEEDED
+
+.global _start
+_start: