diff options
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 |