1 # RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
2 # CHECK: DW_TAG_compile_unit
3 # CHECK-NEXT: DW_AT_producer ("producer string")
4 # CHECK-NEXT: DW_AT_language (DW_LANG_C99)
5 # CHECK-NEXT: DW_AT_name ("test.c")
6 # CHECK-NEXT: DW_AT_comp_dir ("/path/to/src")
9 Machine: IMAGE_FILE_MACHINE_I386
13 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
17 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
21 Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
26 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
28 SectionData: 70726F647563657220737472696E6700746573742E63002F706174682F746F2F73726300
30 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
32 SectionData: 011101250E1305030E1B0E000000
34 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
36 SectionData: 170000000400000000000401000000000C00000000000000000000
39 SymbolName: .Lsection_abbrev
40 Type: IMAGE_REL_I386_SECREL
42 SymbolName: info_string0
43 Type: IMAGE_REL_I386_SECREL
45 SymbolName: info_string1
46 Type: IMAGE_REL_I386_SECREL
48 SymbolName: info_string2
49 Type: IMAGE_REL_I386_SECREL
54 SimpleType: IMAGE_SYM_TYPE_NULL
55 ComplexType: IMAGE_SYM_DTYPE_NULL
56 StorageClass: IMAGE_SYM_CLASS_STATIC
59 NumberOfRelocations: 0
60 NumberOfLinenumbers: 0
66 SimpleType: IMAGE_SYM_TYPE_NULL
67 ComplexType: IMAGE_SYM_DTYPE_NULL
68 StorageClass: IMAGE_SYM_CLASS_STATIC
71 NumberOfRelocations: 0
72 NumberOfLinenumbers: 0
78 SimpleType: IMAGE_SYM_TYPE_NULL
79 ComplexType: IMAGE_SYM_DTYPE_NULL
80 StorageClass: IMAGE_SYM_CLASS_STATIC
83 NumberOfRelocations: 0
84 NumberOfLinenumbers: 0
90 SimpleType: IMAGE_SYM_TYPE_NULL
91 ComplexType: IMAGE_SYM_DTYPE_NULL
92 StorageClass: IMAGE_SYM_CLASS_STATIC
95 NumberOfRelocations: 0
96 NumberOfLinenumbers: 0
102 SimpleType: IMAGE_SYM_TYPE_NULL
103 ComplexType: IMAGE_SYM_DTYPE_NULL
104 StorageClass: IMAGE_SYM_CLASS_STATIC
107 NumberOfRelocations: 0
108 NumberOfLinenumbers: 0
114 SimpleType: IMAGE_SYM_TYPE_NULL
115 ComplexType: IMAGE_SYM_DTYPE_NULL
116 StorageClass: IMAGE_SYM_CLASS_STATIC
119 NumberOfRelocations: 4
120 NumberOfLinenumbers: 0
126 SimpleType: IMAGE_SYM_TYPE_NULL
127 ComplexType: IMAGE_SYM_DTYPE_NULL
128 StorageClass: IMAGE_SYM_CLASS_STATIC
132 SimpleType: IMAGE_SYM_TYPE_NULL
133 ComplexType: IMAGE_SYM_DTYPE_NULL
134 StorageClass: IMAGE_SYM_CLASS_STATIC
138 SimpleType: IMAGE_SYM_TYPE_NULL
139 ComplexType: IMAGE_SYM_DTYPE_NULL
140 StorageClass: IMAGE_SYM_CLASS_STATIC
141 - Name: .Lsection_abbrev
144 SimpleType: IMAGE_SYM_TYPE_NULL
145 ComplexType: IMAGE_SYM_DTYPE_NULL
146 StorageClass: IMAGE_SYM_CLASS_STATIC
147 - Name: .Lsection_info
150 SimpleType: IMAGE_SYM_TYPE_NULL
151 ComplexType: IMAGE_SYM_DTYPE_NULL
152 StorageClass: IMAGE_SYM_CLASS_STATIC
156 SimpleType: IMAGE_SYM_TYPE_NULL
157 ComplexType: IMAGE_SYM_DTYPE_NULL
158 StorageClass: IMAGE_SYM_CLASS_STATIC
159 - Name: .Ldebug_info_end0
162 SimpleType: IMAGE_SYM_TYPE_NULL
163 ComplexType: IMAGE_SYM_DTYPE_NULL
164 StorageClass: IMAGE_SYM_CLASS_STATIC
165 - Name: .Ldebug_info_start0
168 SimpleType: IMAGE_SYM_TYPE_NULL
169 ComplexType: IMAGE_SYM_DTYPE_NULL
170 StorageClass: IMAGE_SYM_CLASS_STATIC