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: e92d 4800 push.w {r11, lr}
13 # BEFORE: 8: 46eb mov r11, sp
14 # BEFORE: a: 2020 movs r0, #32
15 # BEFORE: c: f000 f800 bl {{.+}} @ imm = #0
16 # BEFORE: 10: 3001 adds r0, #1
17 # BEFORE: 12: e8bd 8800 pop.w {r11, pc}
19 # AFTER: Disassembly of section .text:
21 # AFTER: 401000: 4770 bx lr
22 # AFTER: 401002: bf00 nop
23 # AFTER: 401004: e92d 4800 push.w {r11, lr}
24 # AFTER: 401008: 46eb mov r11, sp
25 # AFTER: 40100a: 2020 movs r0, #32
26 # AFTER: 40100c: f7ff fff8 bl 0x401000 <.text>
27 # AFTER: 401010: 3001 adds r0, #1
28 # AFTER: 401012: e8bd 8800 pop.w {r11, pc}
32 Machine: IMAGE_FILE_MACHINE_ARMNT
36 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
38 SectionData: 704700BF2DE90048EB46202000F000F80130BDE80088
42 Type: IMAGE_REL_ARM_BLX23T
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_NULL
49 StorageClass: IMAGE_SYM_CLASS_STATIC
52 NumberOfRelocations: 1
53 NumberOfLinenumbers: 0
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
65 SimpleType: IMAGE_SYM_TYPE_NULL
66 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
67 StorageClass: IMAGE_SYM_CLASS_EXTERNAL