2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o
3 # RUN: ld.lld -shared %t2.o -o %t2.so
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5 # RUN: ld.lld -o %t %t.o --as-needed %t2.so
6 # RUN: llvm-readelf -d --dyn-symbols %t | FileCheck %s
9 # There must be a NEEDED entry for each undefined
11 # CHECK: (NEEDED) Shared library: [{{.*}}as-needed-no-reloc{{.*}}2.so]