aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/verdef.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/verdef.s')
-rw-r--r--test/ELF/verdef.s22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/ELF/verdef.s b/test/ELF/verdef.s
index 9463de0c0a0c..7fd60a95d1df 100644
--- a/test/ELF/verdef.s
+++ b/test/ELF/verdef.s
@@ -1,14 +1,8 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: echo "LIBSAMPLE_1.0{ \
-# RUN: global: a; \
-# RUN: local: *; }; \
-# RUN: LIBSAMPLE_2.0{ \
-# RUN: global: b; \
-# RUN: local: *; }; \
-# RUN: LIBSAMPLE_3.0{ \
-# RUN: global: c; \
-# RUN: local: *; };" > %t.script
+# RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" > %t.script
+# RUN: echo "LIBSAMPLE_2.0 { global: b; local: *; };" >> %t.script
+# RUN: echo "LIBSAMPLE_3.0 { global: c; local: *; };" >> %t.script
# RUN: ld.lld --version-script %t.script -shared -soname shared %t.o -o %t.so
# RUN: llvm-readobj -V -dyn-symbols %t.so | FileCheck --check-prefix=DSO %s
@@ -76,7 +70,7 @@
# MAIN: Version symbols {
# MAIN-NEXT: Section Name: .gnu.version
-# MAIN-NEXT: Address: 0x10228
+# MAIN-NEXT: Address: 0x200228
# MAIN-NEXT: Offset: 0x228
# MAIN-NEXT: Link: 1
# MAIN-NEXT: Symbols [
@@ -101,6 +95,14 @@
# MAIN-NEXT: SHT_GNU_verdef {
# MAIN-NEXT: }
+# RUN: echo "VERSION {" > %t.script
+# RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" >> %t.script
+# RUN: echo "LIBSAMPLE_2.0 { global: b; local: *; };" >> %t.script
+# RUN: echo "LIBSAMPLE_3.0 { global: c; local: *; };" >> %t.script
+# RUN: echo "}" >> %t.script
+# RUN: ld.lld --script %t.script -shared -soname shared %t.o -o %t2.so
+# RUN: llvm-readobj -V -dyn-symbols %t2.so | FileCheck --check-prefix=DSO %s
+
.globl a
.type a,@function
a: