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:get_buffer /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: f240 0000 movw r0, #0
11 # BEFORE: 4: f2c0 0000 movt r0, #0
12 # BEFORE: 8: 4770 bx lr
14 # AFTER: Disassembly of section .text:
16 # AFTER: 0: f242 0000 movw r0, #8192
17 # AFTER: 4: f2c0 0040 movt r0, #64
18 # AFTER: 8: 4770 bx lr
22 Machine: IMAGE_FILE_MACHINE_ARMNT
26 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
28 SectionData: 40F20000C0F200007047
32 Type: IMAGE_REL_ARM_MOV32T
34 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
36 SectionData: '62756666657200'
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_NULL
55 StorageClass: IMAGE_SYM_CLASS_STATIC
58 NumberOfRelocations: 0
59 NumberOfLinenumbers: 0
65 SimpleType: IMAGE_SYM_TYPE_NULL
66 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
67 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
71 SimpleType: IMAGE_SYM_TYPE_NULL
72 ComplexType: IMAGE_SYM_DTYPE_NULL
73 StorageClass: IMAGE_SYM_CLASS_STATIC