forked from OSchip/llvm-project
16 lines
540 B
Plaintext
16 lines
540 B
Plaintext
# REQUIRES: x86
|
|
|
|
# RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj
|
|
|
|
# RUN: lld -flavor link /out:%t1.exe /subsystem:console /entry:_start \
|
|
# RUN: /opt:noref -- %t.obj
|
|
# RUN: llvm-objdump -disassemble %t1.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
DEFAULT: a1 00 00 40 00 movl 4194304, %eax
|
|
|
|
# RUN: lld -flavor link /out:%t2.exe /subsystem:console /entry:_start \
|
|
# RUN: /base:65536 /opt:noref -- %t.obj
|
|
# RUN: llvm-objdump -disassemble %t2.exe | FileCheck -check-prefix=BASE %s
|
|
|
|
BASE: a1 00 00 01 00 movl 65536, %eax
|