53 lines · plain
1# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | \2# RUN: not llvm-dwarfdump -verify - | FileCheck %s3 4# CHECK: Section too small: cannot read abbreviations.5 6 .section .debug_str,"MS",@progbits,17.Lstring_producer:8 .asciz "Hand-written dwarf"9 10 .section .debug_abbrev,"",@progbits11.Lsection_abbrev:12 .byte 1 # Abbreviation Code13 .byte 17 # DW_TAG_compile_unit14 .byte 1 # DW_CHILDREN_yes15 .byte 37 # DW_AT_producer16 .byte 14 # DW_FORM_strp17 .byte 19 # DW_AT_language18 .byte 5 # DW_FORM_data219 .byte 0 # EOM(1)20 .byte 0 # EOM(2)21 .byte 0 # EOM(3)22 23 .section .debug_info,"",@progbits24.Lcu_begin0:25 .long .Lcu_end0-.Lcu_start0 # Length of Unit26.Lcu_start0:27 .short 4 # DWARF version number28 .long .Lsection_abbrev # Offset Into Abbrev. Section29 .byte 8 # Address Size (in bytes)30 .byte 1 # Abbrev [1] DW_TAG_compile_unit31 .long .Lstring_producer # DW_AT_producer32 .short 12 # DW_AT_language33 .byte 0 # End Of Children Mark34.Lcu_end0:35 36 .section .debug_names,"",@progbits37 .long .Lnames_end0-.Lnames_start0 # Header: contribution length38.Lnames_start0:39 .short 5 # Header: version40 .short 0 # Header: padding41 .long 1 # Header: compilation unit count42 .long 0 # Header: local type unit count43 .long 0 # Header: foreign type unit count44 .long 0 # Header: bucket count45 .long 0 # Header: name count46 .long 47 # Header: abbreviation table size47 .long 0 # Header: augmentation length48 .long .Lcu_begin0 # Compilation unit 049.Lnames_abbrev_start0:50 .byte 46 # Abbrev code51 .byte 46 # DW_TAG_subprogram52.Lnames_end0:53