2 ; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o
4 ; RUN: llvm-ar rcs %t.a %t1.o
5 ; RUN: llvm-as %s -o %t2.o
6 ; RUN: ld.lld %t2.o %t.a -o %t3 -shared
7 ; RUN: llvm-readobj --symbols %t3 | FileCheck %s
8 ; RUN: ld.lld %t2.o --whole-archive %t.a -o %t3 -shared
9 ; RUN: llvm-readobj --symbols %t3 | FileCheck %s
14 ; CHECK-NEXT: Binding: Global
15 ; CHECK-NEXT: Type: Function
16 ; CHECK-NEXT: Other: 0
17 ; CHECK-NEXT: Section: .text
22 ; CHECK-NEXT: Binding: Global
23 ; CHECK-NEXT: Type: Function
24 ; CHECK-NEXT: Other: 0
25 ; CHECK-NEXT: Section: .text
27 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
28 target triple = "x86_64-unknown-linux-gnu"