3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: llvm-objdump --no-print-imm-hex -d %t.obj | FileCheck %s --check-prefix BEFORE
5 # RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj
6 # RUN: llvm-objdump --no-print-imm-hex -d %t.exe | FileCheck %s --check-prefix AFTER
8 # BEFORE: Disassembly of section .text:
10 # BEFORE: 0: 4770 bx lr
12 # BEFORE: 4: 2020 movs r0, #32
13 # BEFORE: 6: f000 b800 b.w {{.+}} @ imm = #0
15 # AFTER: Disassembly of section .text:
18 # AFTER: 401000: 4770 bx lr
19 # AFTER: 401002: bf00 nop
20 # AFTER: 401004: 2020 movs r0, #32
21 # AFTER: 401006: f7ff bffb b.w 0x401000 <.text>
25 Machine: IMAGE_FILE_MACHINE_ARMNT
29 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
31 SectionData: 704700BF202000F000B8
35 Type: IMAGE_REL_ARM_BRANCH24T
40 SimpleType: IMAGE_SYM_TYPE_NULL
41 ComplexType: IMAGE_SYM_DTYPE_NULL
42 StorageClass: IMAGE_SYM_CLASS_STATIC
45 NumberOfRelocations: 1
46 NumberOfLinenumbers: 0
52 SimpleType: IMAGE_SYM_TYPE_NULL
53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
58 SimpleType: IMAGE_SYM_TYPE_NULL
59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL