Some targets don't have lld built, so just use a binary copy

of the input file.

llvm-svn: 335908
This commit is contained in:
Sterling Augustine 2018-06-28 19:47:23 +00:00
parent 82e9ea5b49
commit 052ce120d5
2 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,2 @@
// RUN: echo -e ".text\ncallq foo\n" | llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %t1.o
// RUN: ld.lld --defsym foo=0x100 %t1.o -o %t2
// RUN: llvm-objdump --disassemble %t2 | FileCheck %s
// RUN: llvm-objdump --disassemble %p/Inputs/call-absolute-symbol.elf-x86_64 | FileCheck %s
CHECK: 201000: e8 fb f0 df ff callq -2100997 <foo>