1 # clang++ -g2 -fdebug-types-section -gdwarf-4 -ffunction-sections
9 .section .text._Z3fooi,"ax",@progbits
10 .globl _Z3fooi # -- Begin function _Z3fooi
12 .type _Z3fooi,@function
15 .file 1 "/test" "main.cpp"
16 .loc 1 1 0 # main.cpp:1:0
20 .cfi_def_cfa_offset 16
23 .cfi_def_cfa_register %rbp
26 .loc 1 2 9 prologue_end # main.cpp:2:9
29 .loc 1 2 7 is_stmt 0 # main.cpp:2:7
33 .loc 1 3 5 is_stmt 1 # main.cpp:3:5
38 .loc 1 4 3 # main.cpp:4:3
41 .loc 1 5 1 # main.cpp:5:1
43 .loc 1 5 1 epilogue_begin is_stmt 0 # main.cpp:5:1
49 .size _Z3fooi, .Lfunc_end0-_Z3fooi
52 .section .text.main,"ax",@progbits
53 .globl main # -- Begin function main
58 .loc 1 6 0 is_stmt 1 # main.cpp:6:0
62 .cfi_def_cfa_offset 16
65 .cfi_def_cfa_register %rbp
71 .loc 1 7 11 prologue_end # main.cpp:7:11
73 .loc 1 7 7 is_stmt 0 # main.cpp:7:7
76 .loc 1 8 9 is_stmt 1 # main.cpp:8:9
79 .loc 1 8 7 is_stmt 0 # main.cpp:8:7
83 .loc 1 9 13 is_stmt 1 # main.cpp:9:13
85 .loc 1 9 9 is_stmt 0 # main.cpp:9:9
87 .loc 1 9 6 # main.cpp:9:6
92 .loc 1 10 10 is_stmt 1 # main.cpp:10:10
94 .loc 1 10 3 epilogue_begin is_stmt 0 # main.cpp:10:3
101 .size main, .Lfunc_end1-main
104 .section .debug_abbrev,"",@progbits
105 .byte 1 # Abbreviation Code
106 .byte 17 # DW_TAG_compile_unit
107 .byte 1 # DW_CHILDREN_yes
108 .byte 37 # DW_AT_producer
109 .byte 14 # DW_FORM_strp
110 .byte 19 # DW_AT_language
111 .byte 5 # DW_FORM_data2
113 .byte 14 # DW_FORM_strp
114 .byte 16 # DW_AT_stmt_list
115 .byte 23 # DW_FORM_sec_offset
116 .byte 27 # DW_AT_comp_dir
117 .byte 14 # DW_FORM_strp
118 .byte 17 # DW_AT_low_pc
119 .byte 1 # DW_FORM_addr
120 .byte 85 # DW_AT_ranges
121 .byte 23 # DW_FORM_sec_offset
124 .byte 2 # Abbreviation Code
125 .byte 46 # DW_TAG_subprogram
126 .byte 1 # DW_CHILDREN_yes
127 .byte 17 # DW_AT_low_pc
128 .byte 1 # DW_FORM_addr
129 .byte 18 # DW_AT_high_pc
130 .byte 6 # DW_FORM_data4
131 .byte 64 # DW_AT_frame_base
132 .byte 24 # DW_FORM_exprloc
133 .byte 110 # DW_AT_linkage_name
134 .byte 14 # DW_FORM_strp
136 .byte 14 # DW_FORM_strp
137 .byte 58 # DW_AT_decl_file
138 .byte 11 # DW_FORM_data1
139 .byte 59 # DW_AT_decl_line
140 .byte 11 # DW_FORM_data1
141 .byte 73 # DW_AT_type
142 .byte 19 # DW_FORM_ref4
143 .byte 63 # DW_AT_external
144 .byte 25 # DW_FORM_flag_present
147 .byte 3 # Abbreviation Code
148 .byte 5 # DW_TAG_formal_parameter
149 .byte 0 # DW_CHILDREN_no
150 .byte 2 # DW_AT_location
151 .byte 24 # DW_FORM_exprloc
153 .byte 14 # DW_FORM_strp
154 .byte 58 # DW_AT_decl_file
155 .byte 11 # DW_FORM_data1
156 .byte 59 # DW_AT_decl_line
157 .byte 11 # DW_FORM_data1
158 .byte 73 # DW_AT_type
159 .byte 19 # DW_FORM_ref4
162 .byte 4 # Abbreviation Code
163 .byte 46 # DW_TAG_subprogram
164 .byte 1 # DW_CHILDREN_yes
165 .byte 17 # DW_AT_low_pc
166 .byte 1 # DW_FORM_addr
167 .byte 18 # DW_AT_high_pc
168 .byte 6 # DW_FORM_data4
169 .byte 64 # DW_AT_frame_base
170 .byte 24 # DW_FORM_exprloc
172 .byte 14 # DW_FORM_strp
173 .byte 58 # DW_AT_decl_file
174 .byte 11 # DW_FORM_data1
175 .byte 59 # DW_AT_decl_line
176 .byte 11 # DW_FORM_data1
177 .byte 73 # DW_AT_type
178 .byte 19 # DW_FORM_ref4
179 .byte 63 # DW_AT_external
180 .byte 25 # DW_FORM_flag_present
183 .byte 5 # Abbreviation Code
184 .byte 52 # DW_TAG_variable
185 .byte 0 # DW_CHILDREN_no
186 .byte 2 # DW_AT_location
187 .byte 24 # DW_FORM_exprloc
189 .byte 14 # DW_FORM_strp
190 .byte 58 # DW_AT_decl_file
191 .byte 11 # DW_FORM_data1
192 .byte 59 # DW_AT_decl_line
193 .byte 11 # DW_FORM_data1
194 .byte 73 # DW_AT_type
195 .byte 19 # DW_FORM_ref4
198 .byte 6 # Abbreviation Code
199 .byte 36 # DW_TAG_base_type
200 .byte 0 # DW_CHILDREN_no
202 .byte 14 # DW_FORM_strp
203 .byte 62 # DW_AT_encoding
204 .byte 11 # DW_FORM_data1
205 .byte 11 # DW_AT_byte_size
206 .byte 11 # DW_FORM_data1
209 .byte 7 # Abbreviation Code
210 .byte 15 # DW_TAG_pointer_type
211 .byte 0 # DW_CHILDREN_no
212 .byte 73 # DW_AT_type
213 .byte 19 # DW_FORM_ref4
217 .section .debug_info,"",@progbits
219 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
221 .short 4 # DWARF version number
222 .long .debug_abbrev # Offset Into Abbrev. Section
223 .byte 8 # Address Size (in bytes)
224 .byte 1 # Abbrev [1] 0xb:0xa8 DW_TAG_compile_unit
225 .long .Linfo_string0 # DW_AT_producer
226 .short 33 # DW_AT_language
227 .long .Linfo_string1 # DW_AT_name
228 .long .Lline_table_start0 # DW_AT_stmt_list
229 .long .Linfo_string2 # DW_AT_comp_dir
230 .quad 0 # DW_AT_low_pc
231 .long .Ldebug_ranges0 # DW_AT_ranges
232 .byte 2 # Abbrev [2] 0x2a:0x2c DW_TAG_subprogram
233 .quad .Lfunc_begin0 # DW_AT_low_pc
234 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
235 .byte 1 # DW_AT_frame_base
237 .long .Linfo_string3 # DW_AT_linkage_name
238 .long .Linfo_string4 # DW_AT_name
239 .byte 1 # DW_AT_decl_file
240 .byte 1 # DW_AT_decl_line
241 .long 154 # DW_AT_type
243 .byte 3 # Abbrev [3] 0x47:0xe DW_TAG_formal_parameter
244 .byte 2 # DW_AT_location
247 .long .Linfo_string7 # DW_AT_name
248 .byte 1 # DW_AT_decl_file
249 .byte 1 # DW_AT_decl_line
250 .long 154 # DW_AT_type
251 .byte 0 # End Of Children Mark
252 .byte 4 # Abbrev [4] 0x56:0x44 DW_TAG_subprogram
253 .quad .Lfunc_begin1 # DW_AT_low_pc
254 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
255 .byte 1 # DW_AT_frame_base
257 .long .Linfo_string6 # DW_AT_name
258 .byte 1 # DW_AT_decl_file
259 .byte 6 # DW_AT_decl_line
260 .long 154 # DW_AT_type
262 .byte 3 # Abbrev [3] 0x6f:0xe DW_TAG_formal_parameter
263 .byte 2 # DW_AT_location
266 .long .Linfo_string8 # DW_AT_name
267 .byte 1 # DW_AT_decl_file
268 .byte 6 # DW_AT_decl_line
269 .long 154 # DW_AT_type
270 .byte 3 # Abbrev [3] 0x7d:0xe DW_TAG_formal_parameter
271 .byte 2 # DW_AT_location
274 .long .Linfo_string9 # DW_AT_name
275 .byte 1 # DW_AT_decl_file
276 .byte 6 # DW_AT_decl_line
277 .long 161 # DW_AT_type
278 .byte 5 # Abbrev [5] 0x8b:0xe DW_TAG_variable
279 .byte 2 # DW_AT_location
282 .long .Linfo_string11 # DW_AT_name
283 .byte 1 # DW_AT_decl_file
284 .byte 7 # DW_AT_decl_line
285 .long 154 # DW_AT_type
286 .byte 0 # End Of Children Mark
287 .byte 6 # Abbrev [6] 0x9a:0x7 DW_TAG_base_type
288 .long .Linfo_string5 # DW_AT_name
289 .byte 5 # DW_AT_encoding
290 .byte 4 # DW_AT_byte_size
291 .byte 7 # Abbrev [7] 0xa1:0x5 DW_TAG_pointer_type
292 .long 166 # DW_AT_type
293 .byte 7 # Abbrev [7] 0xa6:0x5 DW_TAG_pointer_type
294 .long 171 # DW_AT_type
295 .byte 6 # Abbrev [6] 0xab:0x7 DW_TAG_base_type
296 .long .Linfo_string10 # DW_AT_name
297 .byte 6 # DW_AT_encoding
298 .byte 1 # DW_AT_byte_size
299 .byte 0 # End Of Children Mark
301 .section .debug_ranges,"",@progbits
309 .section .debug_str,"MS",@progbits,1
311 .asciz "clang version 18.0.0git" # string offset=0
313 .asciz "main.cpp" # string offset=24
315 .asciz "/test" # string offset=33
317 .asciz "_Z3fooi" # string offset=71
319 .asciz "foo" # string offset=79
321 .asciz "int" # string offset=83
323 .asciz "main" # string offset=87
325 .asciz "i" # string offset=92
327 .asciz "argc" # string offset=94
329 .asciz "argv" # string offset=99
331 .asciz "char" # string offset=104
333 .asciz "j" # string offset=109
334 .ident "clang version 18.0.0git"
335 .section ".note.GNU-stack","",@progbits
338 .section .debug_line,"",@progbits