1# REQUIRES: x86 2 3# Undefined symbols in a DSO should pull out object files from archives 4# to resolve them. 5 6# RUN: echo '.globl foo' | llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o - 7# RUN: ld.lld -shared -o %t.so %t1.o 8 9# RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s 10# RUN: rm -f %t.a 11# RUN: llvm-ar cru %t.a %t2.o 12# RUN: ld.lld -o %t.exe %t.so %t.a 13# RUN: llvm-nm -D %t.exe | FileCheck %s 14 15# CHECK: T foo 16 17.globl foo 18foo: 19 ret 20