2013-06-15 13:04:07 +08:00
|
|
|
# Verify that lld can handle multiple input files.
|
|
|
|
#
|
2013-07-05 18:41:44 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj
|
|
|
|
# RUN: yaml2obj %p/Inputs/static-data1.obj.yaml > %t2.obj
|
|
|
|
# RUN: yaml2obj %p/Inputs/static-data2.obj.yaml > %t3.obj
|
|
|
|
#
|
2013-09-12 13:09:01 +08:00
|
|
|
# RUN: lld -flavor link /out:%t1 /subsystem:console /entry:main /opt:noref \
|
2013-08-27 11:18:11 +08:00
|
|
|
# RUN: -- %t1.obj %t2.obj %t3.obj && llvm-objdump -d %t1 | FileCheck %s
|
2013-06-15 13:04:07 +08:00
|
|
|
|
|
|
|
CHECK: Disassembly of section .text:
|
|
|
|
CHECK: .text:
|
2013-11-27 08:25:17 +08:00
|
|
|
CHECK: 1000: a1 04 20 40 00 movl 4202500, %eax
|
|
|
|
CHECK: 1005: 03 05 00 20 40 00 addl 4202496, %eax
|
|
|
|
CHECK: 100b: c3 ret
|