xref: /llvm-project-15.0.7/lld/test/ELF/version-script-in-search-path.s (revision 0d4e6519)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2# Check that we fall back to search paths if a version script was not found
3# This behaviour matches ld.bfd.
4
5# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
6# RUN: rm -rf %t.dir && mkdir -p %t.dir
7# RUN: echo '{};' > %t.dir/script
8# RUN: ld.lld -L%t.dir --version-script=script %t.o -o /dev/null
9# RUN: not ld.lld --version-script=script %t.o 2>&1 | FileCheck -check-prefix ERROR %s
10# ERROR: error: cannot find version script
11

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026