brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 5bd0bd6 Raw
38 lines · plain
1// REQUIRES: x862 3// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o4// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \5// RUN:   %p/Inputs/start-lib1.s -o %t2.o6// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \7// RUN:   %p/Inputs/start-lib2.s -o %t3.o8// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \9// RUN:   %p/Inputs/eager.s -o %t-eager.o10 11// RUN: ld.lld -o %t3 %t1.o %t2.o %t3.o %t-eager.o12// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST1 %s13// TEST1: Name: foo14// TEST1: Name: bar15 16// RUN: ld.lld -o %t3 %t1.o -u bar --start-lib %t2.o %t3.o %t-eager.o17// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST2 %s18// TEST2-NOT: Name: foo19// TEST2: Name: bar20 21// RUN: ld.lld -o %t3 %t1.o --start-lib %t2.o %t3.o %t-eager.o22// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST3 %s23// TEST3-NOT: Name: foo24// TEST3-NOT: Name: bar25 26// RUN: not ld.lld %t1.o --start-lib --start-lib 2>&1 | FileCheck -check-prefix=NESTED-LIB %s27// NESTED-LIB: nested --start-lib28 29// RUN: not ld.lld %t1.o --start-group --start-lib 2>&1 | FileCheck -check-prefix=LIB-IN-GROUP %s30// LIB-IN-GROUP: may not nest --start-lib in --start-group31 32// RUN: not ld.lld --end-lib 2>&1 | FileCheck -check-prefix=END %s33// END: stray --end-lib34 35.globl _start36_start:37  callq eager38