2013-08-09 12:44:15 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj
|
|
|
|
#
|
2013-09-12 13:09:01 +08:00
|
|
|
# RUN: lld -flavor link /out:%t1 /subsystem:console /entry:_start /opt:noref \
|
2013-08-27 11:38:18 +08:00
|
|
|
# RUN: -- %t.obj \
|
2013-10-29 08:33:34 +08:00
|
|
|
# RUN: && llvm-objdump -disassemble %t1 | FileCheck -check-prefix=DEFAULT %s
|
2013-08-09 12:44:15 +08:00
|
|
|
#
|
2013-09-12 13:09:01 +08:00
|
|
|
# RUN: lld -flavor link /out:%t1 /subsystem:console /entry:_start /base:65536 \
|
2013-08-27 11:38:18 +08:00
|
|
|
# RUN: /opt:noref -- %t.obj \
|
2013-10-29 08:33:34 +08:00
|
|
|
# RUN: && llvm-objdump -disassemble %t1 | FileCheck -check-prefix=BASE %s
|
2013-08-09 12:44:15 +08:00
|
|
|
|
2013-10-29 08:33:34 +08:00
|
|
|
DEFAULT: a1 00 00 40 00 movl 4194304, %eax
|
|
|
|
|
|
|
|
BASE: a1 00 00 01 00 movl 65536, %eax
|