llvm-project/lld/test/pecoff/reloc.test

29 lines
908 B
Plaintext
Raw Normal View History

# RUN: yaml2obj %p/Inputs/hello.obj.yaml > %t.obj
#
# RUN: llvm-objdump -d %t.obj | FileCheck -check-prefix=BEFORE %s
#
# RUN: lld -flavor link -out %t1 -subsystem console -force -- %t.obj \
# RUN: && llvm-objdump -d %t1 | FileCheck -check-prefix=AFTER %s
BEFORE: Disassembly of section .text:
BEFORE: _main:
BEFORE: 0: b8 00 00 00 00
BEFORE: 5: 50
BEFORE: 6: 68 00 00 00 00
BEFORE: b: 68 00 00 00 00
BEFORE: 10: 50
BEFORE: 11: e8 00 00 00 00
BEFORE: 16: 50
BEFORE: 17: e8 00 00 00 00
AFTER: Disassembly of section .text:
AFTER: .text:
AFTER: 1000: b8 00 00 00 00
AFTER: 1005: 50
AFTER: 1006: 68 00 20 40 00
AFTER: 100b: 68 06 20 40 00
AFTER: 1010: 50
AFTER: 1011: e8 ea ef ff ff
AFTER: 1016: 50
AFTER: 1017: e8 e4 ef ff ff