• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; REQUIRES: x86
2;
3; RUN: llvm-as %s -o %t1.o
4; RUN: llvm-as %p/Inputs/start-lib1.ll -o %t2.o
5; RUN: llvm-as %p/Inputs/start-lib2.ll -o %t3.o
6;
7; RUN: ld.lld -shared -o %t3 %t1.o %t2.o %t3.o
8; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST1 %s
9; TEST1: Name: bar
10; TEST1: Name: foo
11;
12; RUN: ld.lld -shared -o %t3 -u bar %t1.o --start-lib %t2.o %t3.o
13; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST2 %s
14; TEST2: Name: bar
15; TEST2-NOT: Name: foo
16;
17; RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o %t3.o
18; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST3 %s
19; TEST3-NOT: Name: bar
20; TEST3-NOT: Name: foo
21
22target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
23target triple = "x86_64-unknown-linux-gnu"
24
25define void @_start() {
26  ret void
27}
28