1 # This file was generated by:
2 # clang++ -g -O0 -S -fdebug-compilation-dir='/proc/self/cwd' -gpubnames a.cpp
4 # Then manually changing the first .debug_names abbrev, so that the
5 # DW_IDX_die_offset uses DW_FORM_flag_present (invalid) & the DW_IDX_parent
6 # uses DW_FORM_ref4. Also updated the sizes of the values in the entry
7 # that uses the abbrev, to match the sizes of the forms.
10 # int main (int argc, char **argv) { }
13 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t1.o
14 # RUN: not ld.lld --debug-names %t1.o -o /dev/null 2>&1 \
15 # RUN: | FileCheck -DFILE=%t1.o --implicit-check-not=error: %s
17 # CHECK: error: [[FILE]]:(.debug_names): unrecognized form encoding 25 in abbrev table
20 .globl main # -- Begin function main
28 .cfi_def_cfa_offset 16
31 .cfi_def_cfa_register %rbp
41 .size main, .Lfunc_end0-main
44 .section .debug_abbrev,"",@progbits
48 .section .debug_info,"",@progbits
50 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
52 .short 5 # DWARF version number
53 .byte 1 # DWARF Unit Type
54 .byte 8 # Address Size (in bytes)
55 .long .debug_abbrev # Offset Into Abbrev. Section
57 .section .debug_str_offsets,"",@progbits
58 .long 36 # Length of String Offsets Set
62 .section .debug_str,"MS",@progbits,1
64 .asciz "clang version 19.0.0git (git@github.com:llvm/llvm-project.git 53b14cd9ce2b57da73d173fc876d2e9e199f5640)" # string offset=0
66 .asciz "a.cpp" # string offset=104
68 .asciz "/proc/self/cwd" # string offset=110
70 .asciz "main" # string offset=125
72 .asciz "int" # string offset=130
74 .asciz "argc" # string offset=134
76 .asciz "argv" # string offset=139
78 .asciz "char" # string offset=144
82 .section .debug_names,"",@progbits
83 .long .Lnames_end0-.Lnames_start0 # Header: unit length
85 .short 5 # Header: version
86 .short 0 # Header: padding
87 .long 1 # Header: compilation unit count
88 .long 0 # Header: local type unit count
89 .long 0 # Header: foreign type unit count
90 .long 3 # Header: bucket count
91 .long 3 # Header: name count
92 .long .Lnames_abbrev_end0-.Lnames_abbrev_start0 # Header: abbreviation table size
93 .long 8 # Header: augmentation string size
94 .ascii "LLVM0700" # Header: augmentation string
95 .long .Lcu_begin0 # Compilation unit 0
99 .long 2090499946 # Hash in Bucket 1
100 .long 193495088 # Hash in Bucket 2
101 .long 2090147939 # Hash in Bucket 2
102 .long .Linfo_string3 # String in Bucket 1: main
103 .long .Linfo_string4 # String in Bucket 2: int
104 .long .Linfo_string7 # String in Bucket 2: char
105 .long .Lnames0-.Lnames_entries0 # Offset in Bucket 1
106 .long .Lnames1-.Lnames_entries0 # Offset in Bucket 2
107 .long .Lnames2-.Lnames_entries0 # Offset in Bucket 2
108 .Lnames_abbrev_start0:
109 .byte 1 # Abbrev code
110 .byte 46 # DW_TAG_subprogram
111 .byte 3 # DW_IDX_die_offset
112 .byte 25 # DW_FORM_flag_present
113 .byte 4 # DW_IDX_parent
114 .byte 19 # DW_FORM_ref4
115 .byte 0 # End of abbrev
116 .byte 0 # End of abbrev
117 .byte 2 # Abbrev code
118 .byte 36 # DW_TAG_base_type
119 .byte 3 # DW_IDX_die_offset
120 .byte 19 # DW_FORM_ref4
121 .byte 4 # DW_IDX_parent
122 .byte 25 # DW_FORM_flag_present
123 .byte 0 # End of abbrev
124 .byte 0 # End of abbrev
125 .byte 0 # End of abbrev list
130 .byte 1 # Abbreviation code
131 .byte 35 # DW_IDX_die_offset
132 .long 0 # DW_IDX_parent
136 .byte 2 # Abbreviation code
137 .long 73 # DW_IDX_die_offset
138 .byte 0 # DW_IDX_parent
142 .byte 2 # Abbreviation code
143 .long 87 # DW_IDX_die_offset
144 .byte 0 # DW_IDX_parent
148 .ident "clang version 19.0.0git (git@github.com:llvm/llvm-project.git 53b14cd9ce2b57da73d173fc876d2e9e199f5640)"
149 .section ".note.GNU-stack","",@progbits
151 .section .debug_line,"",@progbits