From d93e1dfac8711cfed1a9d9cd1876a788b83945cd Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:19:15 +0000 Subject: Vendor import of lld trunk r290819: https://llvm.org/svn/llvm-project/lld/trunk@290819 --- test/ELF/version-script-missing.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/ELF/version-script-missing.s (limited to 'test/ELF/version-script-missing.s') diff --git a/test/ELF/version-script-missing.s b/test/ELF/version-script-missing.s new file mode 100644 index 000000000000..ad4786e70cc5 --- /dev/null +++ b/test/ELF/version-script-missing.s @@ -0,0 +1,7 @@ +# REQUIRES: x86 + +# We used to crash if a symbol in a version script was not in the symbol table. + +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: echo "{ foobar; };" > %t.script +# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so -- cgit v1.3