brintos

brintos / llvm-project-archived public Read only

0
0
Text · 696 B · 784685e Raw
29 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %ta.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.o < /dev/null4# RUN: rm -f %tar.a5# RUN: llvm-ar rcs %tar.a %ta.o6 7# RUN: echo "SECTIONS { foo = 1; }" > %t1.script8# RUN: ld.lld -o %t1.exe --script %t1.script %tar.a %t.o9# RUN: llvm-readobj --symbols %t1.exe | FileCheck %s10# CHECK:     Symbols [11# CHECK-NOT: bar12# CHECK:     foo13# CHECK-NOT: bar14 15# RUN: echo "SECTIONS { zed = foo; }" > %t2.script16# RUN: ld.lld -o %t2.exe --script %t2.script %tar.a %t.o17# RUN: llvm-readobj --symbols %t2.exe | FileCheck %s --check-prefix=SYMS18# SYMS: foo19# SYMS: bar20 21.text22.globl foo23foo:24 nop25 26.globl bar27bar:28 nop29