diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
commit | d93e1dfac8711cfed1a9d9cd1876a788b83945cd (patch) | |
tree | 5896fa6c02a262a6148b215487e545d937de58b7 /test/ELF/version-script-missing.s | |
parent | 8d43286d630f9224de07809ea253e83ebb9cdee6 (diff) |
Notes
Diffstat (limited to 'test/ELF/version-script-missing.s')
-rw-r--r-- | test/ELF/version-script-missing.s | 7 |
1 files changed, 7 insertions, 0 deletions
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 |