1 # clang++ -ffunction-sections -g2 -gdwarf-5
2 # Manually modified to use ranges like what generates sometimes -fbasic-block-sections=all
3 # int doStuff(int val) {
9 # int main(int argc, const char** argv) {
10 # return doStuff(argc);
14 .section .text._Z7doStuffi,"ax",@progbits
15 .globl _Z7doStuffi # -- Begin function _Z7doStuffi
17 .type _Z7doStuffi,@function
18 _Z7doStuffi
: # @_Z7doStuffi
20 .file 0 "/subprogramRanges" "main.cpp" md5 0x45fd34ef778739dca24be206894f1d15
21 .loc 0 1 0 # main.cpp:1:0
25 .cfi_def_cfa_offset 16
28 .cfi_def_cfa_register %rbp
31 .loc 0 2 7 prologue_end # main.cpp:2:7
34 .loc 0 2 7 is_stmt 0 # main.cpp:2:7
38 .loc 0 3 5 is_stmt 1 # main.cpp:3:5
44 .loc 0 4 10 # main.cpp:4:10
46 .loc 0 4 3 epilogue_begin is_stmt 0 # main.cpp:4:3
52 .size _Z7doStuffi, .Lfunc_end0-_Z7doStuffi
55 .section .text.main,"ax",@progbits
56 .globl main # -- Begin function main
61 .loc 0 7 0 is_stmt 1 # main.cpp:7:0
65 .cfi_def_cfa_offset 16
68 .cfi_def_cfa_register %rbp
74 .loc 0 8 21 prologue_end # main.cpp:8:21
76 .loc 0 8 13 is_stmt 0 # main.cpp:8:13
78 .loc 0 8 5 epilogue_begin # main.cpp:8:5
85 .size main, .Lfunc_end1-main
88 .section .debug_abbrev,"",@progbits
89 .byte 1 # Abbreviation Code
90 .byte 17 # DW_TAG_compile_unit
91 .byte 1 # DW_CHILDREN_yes
92 .byte 37 # DW_AT_producer
93 .byte 37 # DW_FORM_strx1
94 .byte 19 # DW_AT_language
95 .byte 5 # DW_FORM_data2
97 .byte 37 # DW_FORM_strx1
98 .byte 114 # DW_AT_str_offsets_base
99 .byte 23 # DW_FORM_sec_offset
100 .byte 16 # DW_AT_stmt_list
101 .byte 23 # DW_FORM_sec_offset
102 .byte 27 # DW_AT_comp_dir
103 .byte 37 # DW_FORM_strx1
104 .byte 17 # DW_AT_low_pc
105 .byte 1 # DW_FORM_addr
106 .byte 85 # DW_AT_ranges
107 .byte 35 # DW_FORM_rnglistx
108 .byte 115 # DW_AT_addr_base
109 .byte 23 # DW_FORM_sec_offset
110 .byte 116 # DW_AT_rnglists_base
111 .byte 23 # DW_FORM_sec_offset
114 .byte 2 # Abbreviation Code
115 .byte 46 # DW_TAG_subprogram
116 .byte 1 # DW_CHILDREN_yes
117 .byte 85 # DW_AT_ranges
118 .byte 35 # DW_FORM_rnglistx
119 .byte 64 # DW_AT_frame_base
120 .byte 24 # DW_FORM_exprloc
121 .byte 110 # DW_AT_linkage_name
122 .byte 37 # DW_FORM_strx1
124 .byte 37 # DW_FORM_strx1
125 .byte 58 # DW_AT_decl_file
126 .byte 11 # DW_FORM_data1
127 .byte 59 # DW_AT_decl_line
128 .byte 11 # DW_FORM_data1
129 .byte 73 # DW_AT_type
130 .byte 19 # DW_FORM_ref4
131 .byte 63 # DW_AT_external
132 .byte 25 # DW_FORM_flag_present
135 .byte 3 # Abbreviation Code
136 .byte 5 # DW_TAG_formal_parameter
137 .byte 0 # DW_CHILDREN_no
138 .byte 2 # DW_AT_location
139 .byte 24 # DW_FORM_exprloc
141 .byte 37 # DW_FORM_strx1
142 .byte 58 # DW_AT_decl_file
143 .byte 11 # DW_FORM_data1
144 .byte 59 # DW_AT_decl_line
145 .byte 11 # DW_FORM_data1
146 .byte 73 # DW_AT_type
147 .byte 19 # DW_FORM_ref4
150 .byte 4 # Abbreviation Code
151 .byte 46 # DW_TAG_subprogram
152 .byte 1 # DW_CHILDREN_yes
153 .byte 17 # DW_AT_low_pc
154 .byte 27 # DW_FORM_addrx
155 .byte 18 # DW_AT_high_pc
156 .byte 6 # DW_FORM_data4
157 .byte 64 # DW_AT_frame_base
158 .byte 24 # DW_FORM_exprloc
160 .byte 37 # DW_FORM_strx1
161 .byte 58 # DW_AT_decl_file
162 .byte 11 # DW_FORM_data1
163 .byte 59 # DW_AT_decl_line
164 .byte 11 # DW_FORM_data1
165 .byte 73 # DW_AT_type
166 .byte 19 # DW_FORM_ref4
167 .byte 63 # DW_AT_external
168 .byte 25 # DW_FORM_flag_present
171 .byte 5 # Abbreviation Code
172 .byte 36 # DW_TAG_base_type
173 .byte 0 # DW_CHILDREN_no
175 .byte 37 # DW_FORM_strx1
176 .byte 62 # DW_AT_encoding
177 .byte 11 # DW_FORM_data1
178 .byte 11 # DW_AT_byte_size
179 .byte 11 # DW_FORM_data1
182 .byte 6 # Abbreviation Code
183 .byte 15 # DW_TAG_pointer_type
184 .byte 0 # DW_CHILDREN_no
185 .byte 73 # DW_AT_type
186 .byte 19 # DW_FORM_ref4
189 .byte 7 # Abbreviation Code
190 .byte 38 # DW_TAG_const_type
191 .byte 0 # DW_CHILDREN_no
192 .byte 73 # DW_AT_type
193 .byte 19 # DW_FORM_ref4
197 .section .debug_info,"",@progbits
199 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
201 .short 5 # DWARF version number
202 .byte 1 # DWARF Unit Type
203 .byte 8 # Address Size (in bytes)
204 .long .debug_abbrev # Offset Into Abbrev. Section
205 .byte 1 # Abbrev [1] 0xc:0x79 DW_TAG_compile_unit
206 .byte 0 # DW_AT_producer
207 .short 33 # DW_AT_language
209 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
210 .long .Lline_table_start0 # DW_AT_stmt_list
211 .byte 2 # DW_AT_comp_dir
212 .quad 0 # DW_AT_low_pc
213 .byte 0 # DW_AT_ranges
214 .long .Laddr_table_base0 # DW_AT_addr_base
215 .long .Lrnglists_table_base0 # DW_AT_rnglists_base
216 .byte 2 # Abbrev [2] 0x2b:0x1c DW_TAG_subprogram
217 .byte 1 # DW_AT_ranges
218 .byte 1 # DW_AT_frame_base
220 .byte 3 # DW_AT_linkage_name
222 .byte 0 # DW_AT_decl_file
223 .byte 1 # DW_AT_decl_line
224 .long 109 # DW_AT_type
226 .byte 3 # Abbrev [3] 0x3b:0xb DW_TAG_formal_parameter
227 .byte 2 # DW_AT_location
231 .byte 0 # DW_AT_decl_file
232 .byte 1 # DW_AT_decl_line
233 .long 109 # DW_AT_type
234 .byte 0 # End Of Children Mark
235 .byte 4 # Abbrev [4] 0x47:0x26 DW_TAG_subprogram
236 .byte 1 # DW_AT_low_pc
237 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
238 .byte 1 # DW_AT_frame_base
241 .byte 0 # DW_AT_decl_file
242 .byte 7 # DW_AT_decl_line
243 .long 109 # DW_AT_type
245 .byte 3 # Abbrev [3] 0x56:0xb DW_TAG_formal_parameter
246 .byte 2 # DW_AT_location
250 .byte 0 # DW_AT_decl_file
251 .byte 7 # DW_AT_decl_line
252 .long 109 # DW_AT_type
253 .byte 3 # Abbrev [3] 0x61:0xb DW_TAG_formal_parameter
254 .byte 2 # DW_AT_location
258 .byte 0 # DW_AT_decl_file
259 .byte 7 # DW_AT_decl_line
260 .long 105 # DW_AT_type
261 .byte 0 # End Of Children Mark
262 .byte 5 # Abbrev [5] 0x6d:0x4 DW_TAG_base_type
264 .byte 5 # DW_AT_encoding
265 .byte 4 # DW_AT_byte_size
266 .byte 6 # Abbrev [6] 0x71:0x5 DW_TAG_pointer_type
267 .long 114 # DW_AT_type
268 .byte 6 # Abbrev [6] 0x76:0x5 DW_TAG_pointer_type
269 .long 119 # DW_AT_type
270 .byte 7 # Abbrev [7] 0x7b:0x5 DW_TAG_const_type
271 .long 124 # DW_AT_type
272 .byte 5 # Abbrev [5] 0x80:0x4 DW_TAG_base_type
273 .byte 10 # DW_AT_name
274 .byte 6 # DW_AT_encoding
275 .byte 1 # DW_AT_byte_size
276 .byte 0 # End Of Children Mark
278 .section .debug_rnglists,"",@progbits
279 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
280 .Ldebug_list_header_start0:
282 .byte 8 # Address size
283 .byte 0 # Segment selector size
284 .long 1 # Offset entry count
285 .Lrnglists_table_base0:
286 .long .Ldebug_ranges0-.Lrnglists_table_base0
287 .long .Ldebug_ranges1-.Lrnglists_table_base0
289 .byte 3 # DW_RLE_startx_length
290 .byte 0 # start index
291 .uleb128 .Lfunc_end0-.Lfunc_begin0 # length
292 .byte 3 # DW_RLE_startx_length
293 .byte 1 # start index
294 .uleb128 .Lfunc_end1-.Lfunc_begin1 # length
295 .byte 0 # DW_RLE_end_of_list
297 .byte 3 # DW_RLE_startx_length
298 .byte 0 # start index
299 .uleb128 .Lfunc_end0-.Lfunc_begin0 # length
300 .byte 0 # DW_RLE_end_of_list
301 .Ldebug_list_header_end0:
302 .section .debug_str_offsets,"",@progbits
303 .long 48 # Length of String Offsets Set
307 .section .debug_str,"MS",@progbits,1
309 .asciz "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
311 .asciz "main.cpp" # string offset=105
313 .asciz "/subprogramRanges" # string offset=114
315 .asciz "_Z7doStuffi" # string offset=169
317 .asciz "doStuff" # string offset=181
319 .asciz "int" # string offset=189
321 .asciz "main" # string offset=193
323 .asciz "val" # string offset=198
325 .asciz "argc" # string offset=202
327 .asciz "argv" # string offset=207
329 .asciz "char" # string offset=212
330 .section .debug_str_offsets,"",@progbits
341 .long .Linfo_string10
342 .section .debug_addr,"",@progbits
343 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
345 .short 5 # DWARF version number
346 .byte 8 # Address size
347 .byte 0 # Segment selector size
352 .ident "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
353 .section ".note.GNU-stack","",@progbits
355 .addrsig_sym _Z7doStuffi
356 .section .debug_line,"",@progbits