brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · c25c1ed Raw
46 lines · plain
1// REQUIRES: x862 3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \5// RUN:   %p/Inputs/exclude-libs.s -o %t2.o6// RUN: llvm-as --data-layout=e %p/Inputs/exclude-libs.ll -o %t3.o7// RUN: mkdir -p %t.dir8// RUN: rm -f %t.dir/exc.a9// RUN: llvm-ar rcs %t.dir/exc.a %t2.o %t3.o10 11// RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe12// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=DEFAULT %s13 14// RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe --exclude-libs=foo,bar15// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=DEFAULT %s16 17// RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe --exclude-libs foo,bar,exc.a18// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=EXCLUDE %s19 20// RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe --exclude-libs foo:bar:exc.a21// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=EXCLUDE %s22 23// RUN: ld.lld -shared %t.o %t.dir/exc.a -o %t.exe --exclude-libs=ALL24// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=EXCLUDE %s25 26// RUN: ld.lld -shared %t.o %t2.o %t3.o %t.dir/exc.a -o %t.exe --exclude-libs=ALL27// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=DEFAULT %s28 29// RUN: ld.lld -shared --whole-archive %t.o %t.dir/exc.a -o %t.exe --exclude-libs foo,bar,exc.a30// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=EXCLUDE %s31 32// RUN: ld.lld -shared --whole-archive %t.o %t.dir/exc.a -o %t.exe --exclude-libs=ALL33// RUN: llvm-readobj --dyn-syms %t.exe | FileCheck --check-prefix=EXCLUDE %s34 35// DEFAULT: Name: fn36// DEFAULT: Name: fn237// DEFAULT: Name: foo38// EXCLUDE-NOT: Name: fn39// EXCLUDE-NOT: Name: fn240// EXCLUDE: Name: foo41 42.globl fn, fn2, foo43foo:44  call fn@PLT45  call fn2@PLT46