forked from OSchip/llvm-project
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# RUN: yaml2obj %p/Inputs/reloc.obj.yaml > %t.obj
|
|
#
|
|
# RUN: llvm-objdump -d %t.obj | FileCheck -check-prefix=BEFORE %s
|
|
#
|
|
# RUN: lld -flavor link /out:%t1 /subsystem:console /force /opt:noref \
|
|
# RUN: -- %t.obj && llvm-objdump -d %t1 | FileCheck -check-prefix=AFTER %s
|
|
|
|
BEFORE: Disassembly of section .text:
|
|
BEFORE: _main:
|
|
BEFORE: 0: 55
|
|
BEFORE: 1: 89 e5
|
|
BEFORE: 3: 83 ec 14
|
|
BEFORE: 6: c7 45 fc 00 00 00 00
|
|
BEFORE: d: c7 44 24 0c 00 00 00 00
|
|
BEFORE: 15: c7 44 24 08 07 00 00 00
|
|
BEFORE: 1d: c7 44 24 04 00 00 00 00
|
|
BEFORE: 25: c7 04 24 00 00 00 00
|
|
BEFORE: 2c: ff 15 00 00 00 00
|
|
BEFORE: 32: 83 ec 10
|
|
BEFORE: 35: 31 c0
|
|
BEFORE: 37: 83 c4 14
|
|
BEFORE: 3a: 5d
|
|
BEFORE: 3b: c3
|
|
|
|
AFTER: Disassembly of section .text:
|
|
AFTER: .text:
|
|
AFTER: 1000: 55
|
|
AFTER: 1001: 89 e5
|
|
AFTER: 1003: 83 ec 14
|
|
AFTER: 1006: c7 45 fc 00 00 00 00
|
|
AFTER: 100d: c7 44 24 0c 00 00 00 00
|
|
AFTER: 1015: c7 44 24 08 07 20 40 00
|
|
AFTER: 101d: c7 44 24 04 00 20 40 00
|
|
AFTER: 1025: c7 04 24 00 00 00 00
|
|
AFTER: 102c: ff 15 00 00 40 00
|
|
AFTER: 1032: 83 ec 10
|
|
AFTER: 1035: 31 c0
|
|
AFTER: 1037: 83 c4 14
|
|
AFTER: 103a: 5d
|
|
AFTER: 103b: c3
|