17 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o3# RUN: ld.lld -shared %t2.o -o %t2.so4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o5# RUN: ld.lld -o %t %t.o --as-needed %t2.so6# RUN: llvm-readelf -d --dyn-symbols %t | FileCheck %s7 8 9# There must be a NEEDED entry for each undefined10 11# CHECK: (NEEDED) Shared library: [{{.*}}as-needed-no-reloc{{.*}}2.so]12# CHECK: UND bar13 14 .globl _start15_start:16 .global bar17