hanchenye-llvm-project/lld/test/pecoff/imagebase.test

14 lines
523 B
Plaintext

# 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