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