brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · aa74557 Raw
46 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive.s -o %t24# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive2.s -o %t35# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive3.s -o %t46# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive4.s -o %t57 8# RUN: rm -f %t.a9# RUN: llvm-ar rcs %t.a %t2 %t3 %t410 11# RUN: ld.lld %t %t.a %t5 -o %t.out12# RUN: llvm-nm %t.out | FileCheck %s13 14# RUN: rm -f %t.thin15# RUN: llvm-ar --format=gnu rcsT %t.thin %t2 %t3 %t416 17# RUN: ld.lld %t %t.thin %t5 -o %t.out18# RUN: llvm-nm %t.out | FileCheck %s19 20# Nothing here. Just needed for the linker to create a undefined _start symbol.21 22.quad end23 24.weak foo25.quad foo26 27.weak bar28.quad bar29 30 31# CHECK:      T _start32# CHECK-NEXT: T bar33# CHECK-NEXT: T end34# CHECK-NEXT: w foo35 36 37# Test that the hitting the first object file after having a lazy symbol for38# _start is handled correctly.39# RUN: ld.lld %t.a %t -o %t.out40# RUN: llvm-nm %t.out | FileCheck --check-prefix=AR-FIRST %s41 42# AR-FIRST:      T _start43# AR-FIRST-NEXT: w bar44# AR-FIRST-NEXT: T end45# AR-FIRST-NEXT: w foo46