1# RUN: yaml2obj %s -o %t.obj 2# RUN: obj2yaml %t.obj | FileCheck --check-prefix=CHECK %s 3# RUN: llvm-objdump --section-headers %t.obj | FileCheck --check-prefix=HEADERS %s 4 5--- !COFF 6header: 7 Machine: IMAGE_FILE_MACHINE_AMD64 8 Characteristics: [ ] 9sections: 10 - Name: '.debug$T' 11 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ] 12 Alignment: 1 13 Types: 14 - Kind: LF_TYPESERVER2 15 TypeServer2: 16 Guid: '{01DF191B-22BF-6B42-96CE-5258B8329FE5}' 17 Age: 24 18 Name: 'C:\src\llvm-project\build\vc140.pdb' 19 - Name: '.debug$H' 20 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ] 21 Alignment: 4 22 GlobalHashes: 23 Version: 0 24 HashAlgorithm: 1 25 HashValues: 26 - AC2B89A424EC4805 27 - 70FA296AAA577E53 28 - E2C98293782A7EB4 29 - 159516AF20B79286 30 - F471B6BDECC99BC9 31symbols: 32 - Name: '.debug$T' 33 Value: 0 34 SectionNumber: 1 35 SimpleType: IMAGE_SYM_TYPE_NULL 36 ComplexType: IMAGE_SYM_DTYPE_NULL 37 StorageClass: IMAGE_SYM_CLASS_STATIC 38 SectionDefinition: 39 Length: 64 40 NumberOfRelocations: 0 41 NumberOfLinenumbers: 0 42 CheckSum: 0 43 Number: 0 44 - Name: '.debug$H' 45 Value: 0 46 SectionNumber: 2 47 SimpleType: IMAGE_SYM_TYPE_NULL 48 ComplexType: IMAGE_SYM_DTYPE_NULL 49 StorageClass: IMAGE_SYM_CLASS_STATIC 50 SectionDefinition: 51 Length: 108 52 NumberOfRelocations: 0 53 NumberOfLinenumbers: 0 54 CheckSum: 2189213922 55 Number: 1 56... 57 58# CHECK: --- !COFF 59# CHECK: header: 60# CHECK: Machine: IMAGE_FILE_MACHINE_AMD64 61# CHECK: Characteristics: [ ] 62# CHECK: sections: 63# CHECK: - Name: '.debug$T' 64# CHECK: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ] 65# CHECK: Alignment: 1 66# CHECK: Types: 67# CHECK: - Kind: LF_TYPESERVER2 68# CHECK: TypeServer2: 69# CHECK: Guid: '{01DF191B-22BF-6B42-96CE-5258B8329FE5}' 70# CHECK: Age: 24 71# CHECK: Name: 'C:\src\llvm-project\build\vc140.pdb' 72# CHECK: - Name: '.debug$H' 73# CHECK: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ] 74# CHECK: Alignment: 4 75# CHECK: GlobalHashes: 76# CHECK: Version: 0 77# CHECK: HashAlgorithm: 1 78# CHECK: HashValues: 79# CHECK: - AC2B89A424EC4805 80# CHECK: - 70FA296AAA577E53 81# CHECK: - E2C98293782A7EB4 82# CHECK: - 159516AF20B79286 83# CHECK: - F471B6BDECC99BC9 84# CHECK: symbols: 85# CHECK: - Name: '.debug$T' 86# CHECK: Value: 0 87# CHECK: SectionNumber: 1 88# CHECK: SimpleType: IMAGE_SYM_TYPE_NULL 89# CHECK: ComplexType: IMAGE_SYM_DTYPE_NULL 90# CHECK: StorageClass: IMAGE_SYM_CLASS_STATIC 91# CHECK: SectionDefinition: 92# CHECK: Length: 64 93# CHECK: NumberOfRelocations: 0 94# CHECK: NumberOfLinenumbers: 0 95# CHECK: CheckSum: 0 96# CHECK: Number: 0 97# CHECK: - Name: '.debug$H' 98# CHECK: Value: 0 99# CHECK: SectionNumber: 2 100# CHECK: SimpleType: IMAGE_SYM_TYPE_NULL 101# CHECK: ComplexType: IMAGE_SYM_DTYPE_NULL 102# CHECK: StorageClass: IMAGE_SYM_CLASS_STATIC 103# CHECK: SectionDefinition: 104# CHECK: Length: 108 105# CHECK: NumberOfRelocations: 0 106# CHECK: NumberOfLinenumbers: 0 107# CHECK: CheckSum: 2189213922 108# CHECK: Number: 1 109# CHECK: ... 110 111# HEADERS: 0 .debug$T 00000040 0000000000000000 DATA 112# HEADERS: 1 .debug$H 00000030 0000000000000000 DATA 113