brintos

brintos / llvm-project-archived public Read only

0
0
Text · 460 B · 940d8d7 Raw
20 lines · plain
1# REQUIRES: x862 3# Undefined symbols in a DSO should pull out object files from archives4# 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.o8 9# RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s10# RUN: rm -f %t.a11# RUN: llvm-ar cru %t.a %t2.o12# RUN: ld.lld -o %t.exe %t.so %t.a13# RUN: llvm-nm -D %t.exe | FileCheck %s14 15# CHECK: T foo16 17.globl foo18foo:19  ret20