1# REQUIRES: arm 2 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 7 8# BEFORE: Disassembly of section .text: 9# BEFORE-EMPTY: 10# BEFORE: 0: 4770 bx lr 11# BEFORE: 2: bf00 nop 12# BEFORE: 4: 2020 movs r0, #32 13# BEFORE: 6: f000 b800 b.w {{.+}} @ imm = #0 14 15# AFTER: Disassembly of section .text: 16# AFTER-EMPTY: 17# AFTER: <.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> 22 23--- !COFF 24header: 25 Machine: IMAGE_FILE_MACHINE_ARMNT 26 Characteristics: [] 27sections: 28 - Name: .text 29 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 30 Alignment: 4 31 SectionData: 704700BF202000F000B8 32 Relocations: 33 - VirtualAddress: 6 34 SymbolName: identity 35 Type: IMAGE_REL_ARM_BRANCH24T 36symbols: 37 - Name: .text 38 Value: 0 39 SectionNumber: 1 40 SimpleType: IMAGE_SYM_TYPE_NULL 41 ComplexType: IMAGE_SYM_DTYPE_NULL 42 StorageClass: IMAGE_SYM_CLASS_STATIC 43 SectionDefinition: 44 Length: 10 45 NumberOfRelocations: 1 46 NumberOfLinenumbers: 0 47 CheckSum: 0 48 Number: 1 49 - Name: identity 50 Value: 0 51 SectionNumber: 1 52 SimpleType: IMAGE_SYM_TYPE_NULL 53 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 54 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 55 - Name: function 56 Value: 4 57 SectionNumber: 1 58 SimpleType: IMAGE_SYM_TYPE_NULL 59 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 60 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 61... 62