# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
# CHECK: DW_TAG_compile_unit
# CHECK-NEXT: DW_AT_producer ("producer string")
# CHECK-NEXT: DW_AT_language (DW_LANG_C99)
# CHECK-NEXT: DW_AT_name ("test.c")
# CHECK-NEXT: DW_AT_comp_dir ("/path/to/src")
---
header:
Machine: IMAGE_FILE_MACHINE_ARMNT
Characteristics:
sections:
- Name: .text
Characteristics:
Alignment: 4
SectionData: ''
- Name: .data
Characteristics:
Alignment: 4
SectionData: ''
- Name: .bss
Characteristics:
Alignment: 4
SectionData: ''
SizeOfRawData: 0
- Name: .debug_str
Characteristics:
Alignment: 1
SectionData: 70726F647563657220737472696E6700746573742E63002F706174682F746F2F73726300
- Name: .debug_abbrev
Characteristics:
Alignment: 1
SectionData: 011101250E1305030E1B0E000000
- Name: .debug_info
Characteristics:
Alignment: 1
SectionData: 170000000400000000000401000000000C00000000000000000000
Relocations:
- VirtualAddress: 6
SymbolName: .debug_abbrev
Type: IMAGE_REL_ARM_SECREL
- VirtualAddress: 12
SymbolName: info_string0
Type: IMAGE_REL_ARM_SECREL
- VirtualAddress: 18
SymbolName: info_string1
Type: IMAGE_REL_ARM_SECREL
- VirtualAddress: 22
SymbolName: info_string2
Type: IMAGE_REL_ARM_SECREL
symbols:
- Name: .text
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 1
- Name: .data
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 2
- Name: .bss
Value: 0
SectionNumber: 3
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 0
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 3
- Name: .debug_str
Value: 0
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 36
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 3440120581
Number: 4
- Name: .debug_abbrev
Value: 0
SectionNumber: 5
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 14
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 2811829245
Number: 5
- Name: .debug_info
Value: 0
SectionNumber: 6
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 27
NumberOfRelocations: 4
NumberOfLinenumbers: 0
CheckSum: 1535600857
Number: 6
- Name: info_string0
Value: 0
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
- Name: info_string1
Value: 16
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
- Name: info_string2
Value: 23
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
...