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
7 Machine: IMAGE_FILE_MACHINE_AMD64
11 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
14 - Kind: LF_TYPESERVER2
16 Guid: '{1B19DF01-BF22-426B-96CE-5258B8329FE5}'
18 Name: 'C:\src\llvm-project\build\vc140.pdb'
20 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_STATIC
40 NumberOfRelocations: 0
41 NumberOfLinenumbers: 0
47 SimpleType: IMAGE_SYM_TYPE_NULL
48 ComplexType: IMAGE_SYM_DTYPE_NULL
49 StorageClass: IMAGE_SYM_CLASS_STATIC
52 NumberOfRelocations: 0
53 NumberOfLinenumbers: 0
60 # CHECK: Machine: IMAGE_FILE_MACHINE_AMD64
61 # CHECK: Characteristics: [ ]
63 # CHECK: - Name: '.debug$T'
64 # CHECK: Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
67 # CHECK: - Kind: LF_TYPESERVER2
69 # CHECK: Guid: '{1B19DF01-BF22-426B-96CE-5258B8329FE5}'
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 ]
75 # CHECK: GlobalHashes:
77 # CHECK: HashAlgorithm: 1
79 # CHECK: - AC2B89A424EC4805
80 # CHECK: - 70FA296AAA577E53
81 # CHECK: - E2C98293782A7EB4
82 # CHECK: - 159516AF20B79286
83 # CHECK: - F471B6BDECC99BC9
85 # CHECK: - Name: '.debug$T'
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:
93 # CHECK: NumberOfRelocations: 0
94 # CHECK: NumberOfLinenumbers: 0
97 # CHECK: - Name: '.debug$H'
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:
105 # CHECK: NumberOfRelocations: 0
106 # CHECK: NumberOfLinenumbers: 0
107 # CHECK: CheckSum: 2189213922
111 # HEADERS: 0 .debug$T 00000040 0000000000000000 DATA
112 # HEADERS: 1 .debug$H 00000030 0000000000000000 DATA