1b136c393SPavel Labath# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | \ 2b136c393SPavel Labath# RUN: not llvm-dwarfdump -verify - | FileCheck %s 3b136c393SPavel Labath 4*dba683ccSPavel Labath# CHECK: parsing .debug_names header at 0x0: cannot read header augmentation 5b136c393SPavel Labath 6b136c393SPavel Labath .section .debug_str,"MS",@progbits,1 7b136c393SPavel Labath.Lstring_producer: 8b136c393SPavel Labath .asciz "Hand-written dwarf" 9b136c393SPavel Labath 10b136c393SPavel Labath .section .debug_abbrev,"",@progbits 11b136c393SPavel Labath.Lsection_abbrev: 12b136c393SPavel Labath .byte 1 # Abbreviation Code 13b136c393SPavel Labath .byte 17 # DW_TAG_compile_unit 14b136c393SPavel Labath .byte 1 # DW_CHILDREN_yes 15b136c393SPavel Labath .byte 37 # DW_AT_producer 16b136c393SPavel Labath .byte 14 # DW_FORM_strp 17b136c393SPavel Labath .byte 19 # DW_AT_language 18b136c393SPavel Labath .byte 5 # DW_FORM_data2 19b136c393SPavel Labath .byte 0 # EOM(1) 20b136c393SPavel Labath .byte 0 # EOM(2) 21b136c393SPavel Labath .byte 0 # EOM(3) 22b136c393SPavel Labath 23b136c393SPavel Labath .section .debug_info,"",@progbits 24b136c393SPavel Labath.Lcu_begin0: 25b136c393SPavel Labath .long .Lcu_end0-.Lcu_start0 # Length of Unit 26b136c393SPavel Labath.Lcu_start0: 27b136c393SPavel Labath .short 4 # DWARF version number 28b136c393SPavel Labath .long .Lsection_abbrev # Offset Into Abbrev. Section 29b136c393SPavel Labath .byte 8 # Address Size (in bytes) 30b136c393SPavel Labath .byte 1 # Abbrev [1] DW_TAG_compile_unit 31b136c393SPavel Labath .long .Lstring_producer # DW_AT_producer 32b136c393SPavel Labath .short 12 # DW_AT_language 33b136c393SPavel Labath .byte 0 # End Of Children Mark 34b136c393SPavel Labath.Lcu_end0: 35b136c393SPavel Labath 36b136c393SPavel Labath .section .debug_names,"",@progbits 37b136c393SPavel Labath .long .Lnames_end0-.Lnames_start0 # Header: contribution length 38b136c393SPavel Labath.Lnames_start0: 39b136c393SPavel Labath .short 5 # Header: version 40b136c393SPavel Labath .short 0 # Header: padding 41b136c393SPavel Labath .long 1 # Header: compilation unit count 42b136c393SPavel Labath .long 0 # Header: local type unit count 43b136c393SPavel Labath .long 0 # Header: foreign type unit count 44b136c393SPavel Labath .long 2 # Header: bucket count 45b136c393SPavel Labath .long 3 # Header: name count 46b136c393SPavel Labath .long 47 # Header: abbreviation table size 47b136c393SPavel Labath .long 8 # Header: augmentation length 48b136c393SPavel Labath .asciz "short" # Header: augmentation 49b136c393SPavel Labath.Lnames_end0: 50