3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: llvm-objdump -d %t.obj | FileCheck %s --check-prefix BEFORE
5 # RUN: lld-link /out:%t.exe /subsystem:console /entry:get_function %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: 40 f2 00 00 movw r0, #0
13 # BEFORE: 8: c0 f2 00 00 movt r0, #0
14 # BEFORE: c: 70 47 bx lr
16 # AFTER: Disassembly of section .text:
18 # AFTER: 1000: 70 47 bx lr
19 # AFTER: 1002: 00 bf nop
20 # AFTER: 1004: 41 f2 01 00 movw r0, #4097
21 # AFTER: 1008: c0 f2 40 00 movt r0, #64
22 # AFTER: 100c: 70 47 bx lr
26 Machine: IMAGE_FILE_MACHINE_ARMNT
30 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
32 SectionData: 704700BF40F20000C0F200007047
36 Type: IMAGE_REL_ARM_MOV32T
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_NULL
43 StorageClass: IMAGE_SYM_CLASS_STATIC
46 NumberOfRelocations: 1
47 NumberOfLinenumbers: 0
53 SimpleType: IMAGE_SYM_TYPE_NULL
54 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
55 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
59 SimpleType: IMAGE_SYM_TYPE_NULL
60 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL