[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / searchdir.s
blob9fc1a6a49a904b484f8c370be597533157333dcb
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd \
5 # RUN: %p/Inputs/libsearch-dyn.s -o %tdyn.o
6 # RUN: mkdir -p %t.dir
7 # RUN: ld.lld -shared %tdyn.o -o %t.dir/libls.so
8 # RUN: echo "SEARCH_DIR(\"%t.dir\")" > %t.script
9 # RUN: ld.lld -o %t2 --script %t.script -lls %t
11 .globl _start,_bar
12 _start: