29 lines · plain
1; REQUIRES: x862; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o3; RUN: rm -f %t.a4; RUN: llvm-ar rcs %t.a %t1.o5 6; RUN: llvm-as %s -o %t2.o7; RUN: ld.lld %t2.o -o %t2.so %t.a -shared8; RUN: llvm-readobj --symbols %t2.so | FileCheck %s9 10target triple = "x86_64-unknown-linux-gnu"11target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"12 13declare extern_weak void @f()14define void @foo() {15 call void @f()16 ret void17}18 19; We should not fetch the archive member.20 21; CHECK: Name: f ({{.*}})22; CHECK-NEXT: Value: 0x023; CHECK-NEXT: Size: 024; CHECK-NEXT: Binding: Weak25; CHECK-NEXT: Type: None26; CHECK-NEXT: Other: 027; CHECK-NEXT: Section: Undefined28 29