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