brintos

brintos / llvm-project-archived public Read only

0
0
Text · 678 B · 6ffb561 Raw
22 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: echo "TARGET(binary) INPUT(\"%t.o\") TARGET(elf64-x86-64) INPUT(\"%t.o\")" > %t.script5# RUN: ld.lld --script %t.script -o %t.exe6# RUN: llvm-readelf -s %t.exe | FileCheck %s7# RUN: echo 'TARGET("elf64-x86-64") INPUT("%t.o") TARGET("binary") INPUT("%t.o")' > %t.script8# RUN: ld.lld -T %t.script -o %t9# RUN: llvm-readelf -s %t | FileCheck %s10 11# CHECK-DAG: [[#]] _binary_12# CHECK-DAG: [[#]] foobar13 14# RUN: echo "TARGET(foo)" > %t2.script15# RUN: not ld.lld --script %t2.script -o /dev/null 2>&1 | FileCheck -check-prefix=ERR %s16 17# ERR: unknown target: foo18 19.global foobar20foobar:21  nop22