1# REQUIRES: arm 2 3# RUN: yaml2obj < %s > %t.obj 4# RUN: llvm-objdump -s %t.obj | FileCheck %s --check-prefix BEFORE 5# RUN: lld-link /entry:function /subsystem:console /out:%t.exe %t.obj 6# RUN: llvm-objdump -s %t.exe | FileCheck %s --check-prefix AFTER 7 8# BEFORE: Contents of section .text: 9# BEFORE: 0000 704700bf 01000000 01000000 10 11# AFTER: Contents of section .text: 12# AFTER: 401000 704700bf faffffff f50f0000 13 14--- !COFF 15header: 16 Machine: IMAGE_FILE_MACHINE_ARMNT 17 Characteristics: [] 18sections: 19 - Name: .text 20 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_PURGEABLE, IMAGE_SCN_MEM_16BIT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 21 Alignment: 4 22 SectionData: 704700BF0100000001000000 23 Relocations: 24 - VirtualAddress: 4 25 SymbolName: function 26 Type: IMAGE_REL_ARM_REL32 27 - VirtualAddress: 8 28 SymbolName: data 29 Type: IMAGE_REL_ARM_REL32 30 - Name: .rdata 31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ] 32 Alignment: 1 33 SectionData: 00 34symbols: 35 - Name: function 36 Value: 0 37 SectionNumber: 1 38 SimpleType: IMAGE_SYM_TYPE_NULL 39 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 40 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 41 - Name: data 42 Value: 0 43 SectionNumber: 2 44 SimpleType: IMAGE_SYM_TYPE_NULL 45 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 46 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 47... 48