summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/ELF/version-script-undef-version.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/test/ELF/version-script-undef-version.s b/lld/test/ELF/version-script-undef-version.s
new file mode 100644
index 00000000000..3d0c3bfa453
--- /dev/null
+++ b/lld/test/ELF/version-script-undef-version.s
@@ -0,0 +1,10 @@
+# REQUIRES: x86
+
+# Test that we don't error on undefined versions when static linking.
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
+# RUN: ld.lld %t.o -o %t
+
+.global _start
+.global bar
+.symver _start, bar@@UNDEFINED
+_start:
OpenPOWER on IntegriCloud