3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: llvm-objdump -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 -d %t.exe | FileCheck %s --check-prefix AFTER
8 # BEFORE: Disassembly of section .text:
10 # BEFORE: 0: 70 47 bx lr
11 # BEFORE: 2: 00 bf nop
12 # BEFORE: 4: 2d e9 00 48 push.w {r11, lr}
13 # BEFORE: 8: eb 46 mov r11, sp
14 # BEFORE: a: 20 20 movs r0, #32
15 # BEFORE: c: 00 f0 00 f8 bl #0
16 # BEFORE: 10: 01 30 adds r0, #1
17 # BEFORE: 12: bd e8 00 88 pop.w {r11, pc}
19 # AFTER: Disassembly of section .text:
21 # AFTER: 1000: 70 47 bx lr
22 # AFTER: 1002: 00 bf nop
23 # AFTER: 1004: 2d e9 00 48 push.w {r11, lr}
24 # AFTER: 1008: eb 46 mov r11, sp
25 # AFTER: 100a: 20 20 movs r0, #32
26 # AFTER: 100c: ff f7 f8 ff bl #-16
27 # AFTER: 1010: 01 30 adds r0, #1
28 # AFTER: 1012: bd e8 00 88 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