2018-07-26 05:53:18 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# Check that we fall back to search paths if a version script was not found
|
|
|
|
# This behaviour matches ld.bfd.
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
# RUN: mkdir -p %T/searchpath
|
2018-07-26 06:01:54 +08:00
|
|
|
# RUN: echo '{};' > %T/searchpath/%basename_t.script
|
|
|
|
# RUN: ld.lld -L%T/searchpath --version-script=%basename_t.script %t.o -o /dev/null
|
|
|
|
# RUN: not ld.lld --version-script=%basename_t.script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
|
2018-07-26 05:53:18 +08:00
|
|
|
# ERROR: error: cannot find version script
|