2013-06-18 02:43:13 +08:00
|
|
|
# Verify that lld can handle .lib files. "main.obj" refers _val1 and
|
|
|
|
# _val2 that are defined in "dynamic.lib".
|
|
|
|
#
|
|
|
|
# RUN: lld -flavor link -out %t1 -subsystem console \
|
|
|
|
# RUN: -- %p/Inputs/main.obj %p/Inputs/dynamic.lib \
|
|
|
|
# RUN: && llvm-objdump -d %t1 | FileCheck %s
|
|
|
|
|
|
|
|
CHECK: Disassembly of section .text:
|
|
|
|
CHECK: .text:
|
2013-06-30 21:33:36 +08:00
|
|
|
CHECK: 1000: a1 0c 10 40 00 movl 4198412, %eax
|
|
|
|
CHECK: 1005: 03 05 14 10 40 00 addl 4198420, %eax
|
|
|
|
CHECK: 100b: c3 ret
|
|
|
|
CHECK: 100c: ff 25 00 00 40 00 jmpl *4194304
|
|
|
|
CHECK: 1012: 90 nop
|
|
|
|
CHECK: 1013: 90 nop
|
|
|
|
CHECK: 1014: ff 25 00 00 40 00 jmpl *4194304
|
|
|
|
CHECK: 101a: 90 nop
|
|
|
|
CHECK: 101b: 90 nop
|