2 ; RUN: llvm-as %S/Inputs/archive-2.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
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
11 ; CHECK: Name: _start (
14 ; CHECK-NEXT: Binding: Global
15 ; CHECK-NEXT: Type: Function
16 ; CHECK-NEXT: Other: 0
17 ; CHECK-NEXT: Section: .text
19 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
20 target triple = "x86_64-unknown-linux-gnu"
27 declare void @_start()