369 lines · plain
1#--- main.s2# clang++ -g2 -gdwarf-5 -gsplit-dwarf=split -gno-pubnames -S main.cpp3# extern int getReturn();4# int main() {5# return getReturn();6# }7 .file "main.cpp"8 .globl main # -- Begin function main9 .type main,@function10main: # @main11.Lfunc_begin0:12 .file 0 "." "main.cpp" md5 0x9cdef858e26cf684ed9ef3b60e05bdad13 .loc 0 2 0 # main.cpp:2:014 .loc 0 3 10 prologue_end # main.cpp:3:1015 .loc 0 3 3 epilogue_begin is_stmt 0 # main.cpp:3:316 retq17.Lfunc_end0:18 .size main, .Lfunc_end0-main19 .section .debug_abbrev,"",@progbits20 .byte 1 # Abbreviation Code21 .byte 74 # DW_TAG_skeleton_unit22 .byte 0 # DW_CHILDREN_no23 .byte 16 # DW_AT_stmt_list24 .byte 23 # DW_FORM_sec_offset25 .byte 114 # DW_AT_str_offsets_base26 .byte 23 # DW_FORM_sec_offset27 .byte 27 # DW_AT_comp_dir28 .byte 37 # DW_FORM_strx129 .byte 118 # DW_AT_dwo_name30 .byte 37 # DW_FORM_strx131 .byte 17 # DW_AT_low_pc32 .byte 27 # DW_FORM_addrx33 .byte 18 # DW_AT_high_pc34 .byte 6 # DW_FORM_data435 .byte 115 # DW_AT_addr_base36 .byte 23 # DW_FORM_sec_offset37 .byte 0 # EOM(1)38 .byte 0 # EOM(2)39 .byte 0 # EOM(3)40 .section .debug_info,"",@progbits41.Lcu_begin0:42 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit43.Ldebug_info_start0:44 .short 5 # DWARF version number45 .byte 4 # DWARF Unit Type46 .byte 8 # Address Size (in bytes)47 .long .debug_abbrev # Offset Into Abbrev. Section48 .quad -909479169272744421349 .byte 1 # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit50 .long .Lline_table_start0 # DW_AT_stmt_list51 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base52 .byte 0 # DW_AT_comp_dir53 .byte 1 # DW_AT_dwo_name54 .byte 0 # DW_AT_low_pc55 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc56 .long .Laddr_table_base0 # DW_AT_addr_base57.Ldebug_info_end0:58 .section .debug_str_offsets,"",@progbits59 .long 12 # Length of String Offsets Set60 .short 561 .short 062.Lstr_offsets_base0:63 .section .debug_str,"MS",@progbits,164.Lskel_string0:65 .asciz "." # string offset=066.Lskel_string1:67 .asciz "main.dwo" # string offset=268 .section .debug_str_offsets,"",@progbits69 .long .Lskel_string070 .long .Lskel_string171 .section .debug_str_offsets.dwo,"e",@progbits72 .long 24 # Length of String Offsets Set73 .short 574 .short 075 .section .debug_str.dwo,"eMS",@progbits,176.Linfo_string0:77 .asciz "main" # string offset=078.Linfo_string1:79 .asciz "int" # string offset=580.Linfo_string2:81 .asciz "clang version 22.0.0" # string offset=982.Linfo_string3:83 .asciz "main.cpp" # string offset=3084.Linfo_string4:85 .asciz "main.dwo" # string offset=3986 .section .debug_str_offsets.dwo,"e",@progbits87 .long 088 .long 589 .long 990 .long 3091 .long 3992 .section .debug_info.dwo,"e",@progbits93 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit94.Ldebug_info_dwo_start0:95 .short 5 # DWARF version number96 .byte 5 # DWARF Unit Type97 .byte 8 # Address Size (in bytes)98 .long 0 # Offset Into Abbrev. Section99 .quad -9094791692727444213100 .byte 1 # Abbrev [1] 0x14:0x1a DW_TAG_compile_unit101 .byte 2 # DW_AT_producer102 .short 33 # DW_AT_language103 .byte 3 # DW_AT_name104 .byte 4 # DW_AT_dwo_name105 .byte 2 # Abbrev [2] 0x1a:0xf DW_TAG_subprogram106 .byte 0 # DW_AT_low_pc107 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc108 .byte 1 # DW_AT_frame_base109 .byte 86110 .byte 0 # DW_AT_name111 .byte 0 # DW_AT_decl_file112 .byte 2 # DW_AT_decl_line113 .long 41 # DW_AT_type114 # DW_AT_external115 .byte 3 # Abbrev [3] 0x29:0x4 DW_TAG_base_type116 .byte 1 # DW_AT_name117 .byte 5 # DW_AT_encoding118 .byte 4 # DW_AT_byte_size119 .byte 0 # End Of Children Mark120.Ldebug_info_dwo_end0:121 .section .debug_abbrev.dwo,"e",@progbits122 .byte 1 # Abbreviation Code123 .byte 17 # DW_TAG_compile_unit124 .byte 1 # DW_CHILDREN_yes125 .byte 37 # DW_AT_producer126 .byte 37 # DW_FORM_strx1127 .byte 19 # DW_AT_language128 .byte 5 # DW_FORM_data2129 .byte 3 # DW_AT_name130 .byte 37 # DW_FORM_strx1131 .byte 118 # DW_AT_dwo_name132 .byte 37 # DW_FORM_strx1133 .byte 0 # EOM(1)134 .byte 0 # EOM(2)135 .byte 2 # Abbreviation Code136 .byte 46 # DW_TAG_subprogram137 .byte 0 # DW_CHILDREN_no138 .byte 17 # DW_AT_low_pc139 .byte 27 # DW_FORM_addrx140 .byte 18 # DW_AT_high_pc141 .byte 6 # DW_FORM_data4142 .byte 64 # DW_AT_frame_base143 .byte 24 # DW_FORM_exprloc144 .byte 3 # DW_AT_name145 .byte 37 # DW_FORM_strx1146 .byte 58 # DW_AT_decl_file147 .byte 11 # DW_FORM_data1148 .byte 59 # DW_AT_decl_line149 .byte 11 # DW_FORM_data1150 .byte 73 # DW_AT_type151 .byte 19 # DW_FORM_ref4152 .byte 63 # DW_AT_external153 .byte 25 # DW_FORM_flag_present154 .byte 0 # EOM(1)155 .byte 0 # EOM(2)156 .byte 3 # Abbreviation Code157 .byte 36 # DW_TAG_base_type158 .byte 0 # DW_CHILDREN_no159 .byte 3 # DW_AT_name160 .byte 37 # DW_FORM_strx1161 .byte 62 # DW_AT_encoding162 .byte 11 # DW_FORM_data1163 .byte 11 # DW_AT_byte_size164 .byte 11 # DW_FORM_data1165 .byte 0 # EOM(1)166 .byte 0 # EOM(2)167 .byte 0 # EOM(3)168 .section .debug_addr,"",@progbits169 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution170.Ldebug_addr_start0:171 .short 5 # DWARF version number172 .byte 8 # Address size173 .byte 0 # Segment selector size174.Laddr_table_base0:175 .quad .Lfunc_begin0176.Ldebug_addr_end0:177 .ident "clang version 22.0.0"178 .section ".note.GNU-stack","",@progbits179 .addrsig180 .addrsig_sym _Z9getReturnv181 .section .debug_line,"",@progbits182.Lline_table_start0:183#--- helper.s184# clang++ -g2 -gdwarf-5 -gsplit-dwarf=split -gno-pubnames -S helper.cpp185# int getReturn() {186# return 0;187# }188 .file "helper.cpp"189 .globl _Z9getReturnv # -- Begin function _Z9getReturnv190 .type _Z9getReturnv,@function191_Z9getReturnv: # @_Z9getReturnv192.Lfunc_begin0:193 .file 0 "." "helper.cpp" md5 0xc7d7879297b54325c71b3e0cfbb65e2d194 .loc 0 1 0 # helper.cpp:1:0195 .loc 0 2 3 prologue_end # helper.cpp:2:3196 .loc 0 2 3 epilogue_begin is_stmt 0 # helper.cpp:2:3197 retq198.Lfunc_end0:199 .size _Z9getReturnv, .Lfunc_end0-_Z9getReturnv200 .section .debug_abbrev,"",@progbits201 .byte 1 # Abbreviation Code202 .byte 74 # DW_TAG_skeleton_unit203 .byte 0 # DW_CHILDREN_no204 .byte 16 # DW_AT_stmt_list205 .byte 23 # DW_FORM_sec_offset206 .byte 114 # DW_AT_str_offsets_base207 .byte 23 # DW_FORM_sec_offset208 .byte 27 # DW_AT_comp_dir209 .byte 37 # DW_FORM_strx1210 .byte 118 # DW_AT_dwo_name211 .byte 37 # DW_FORM_strx1212 .byte 17 # DW_AT_low_pc213 .byte 27 # DW_FORM_addrx214 .byte 18 # DW_AT_high_pc215 .byte 6 # DW_FORM_data4216 .byte 115 # DW_AT_addr_base217 .byte 23 # DW_FORM_sec_offset218 .byte 0 # EOM(1)219 .byte 0 # EOM(2)220 .byte 0 # EOM(3)221 .section .debug_info,"",@progbits222.Lcu_begin0:223 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit224.Ldebug_info_start0:225 .short 5 # DWARF version number226 .byte 4 # DWARF Unit Type227 .byte 8 # Address Size (in bytes)228 .long .debug_abbrev # Offset Into Abbrev. Section229 .quad 5976014880088676049230 .byte 1 # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit231 .long .Lline_table_start0 # DW_AT_stmt_list232 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base233 .byte 0 # DW_AT_comp_dir234 .byte 1 # DW_AT_dwo_name235 .byte 0 # DW_AT_low_pc236 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc237 .long .Laddr_table_base0 # DW_AT_addr_base238.Ldebug_info_end0:239 .section .debug_str_offsets,"",@progbits240 .long 12 # Length of String Offsets Set241 .short 5242 .short 0243.Lstr_offsets_base0:244 .section .debug_str,"MS",@progbits,1245.Lskel_string0:246 .asciz "." # string offset=0247.Lskel_string1:248 .asciz "helper.dwo" # string offset=2249 .section .debug_str_offsets,"",@progbits250 .long .Lskel_string0251 .long .Lskel_string1252 .section .debug_str_offsets.dwo,"e",@progbits253 .long 28 # Length of String Offsets Set254 .short 5255 .short 0256 .section .debug_str.dwo,"eMS",@progbits,1257.Linfo_string0:258 .asciz "_Z9getReturnv" # string offset=0259.Linfo_string1:260 .asciz "getReturn" # string offset=14261.Linfo_string2:262 .asciz "int" # string offset=24263.Linfo_string3:264 .asciz "clang version 22.0.0" # string offset=28265.Linfo_string4:266 .asciz "helper.cpp" # string offset=49267.Linfo_string5:268 .asciz "helper.dwo" # string offset=60269 .section .debug_str_offsets.dwo,"e",@progbits270 .long 0271 .long 14272 .long 24273 .long 28274 .long 49275 .long 60276 .section .debug_info.dwo,"e",@progbits277 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit278.Ldebug_info_dwo_start0:279 .short 5 # DWARF version number280 .byte 5 # DWARF Unit Type281 .byte 8 # Address Size (in bytes)282 .long 0 # Offset Into Abbrev. Section283 .quad 5976014880088676049284 .byte 1 # Abbrev [1] 0x14:0x1b DW_TAG_compile_unit285 .byte 3 # DW_AT_producer286 .short 33 # DW_AT_language287 .byte 4 # DW_AT_name288 .byte 5 # DW_AT_dwo_name289 .byte 2 # Abbrev [2] 0x1a:0x10 DW_TAG_subprogram290 .byte 0 # DW_AT_low_pc291 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc292 .byte 1 # DW_AT_frame_base293 .byte 86294 .byte 0 # DW_AT_linkage_name295 .byte 1 # DW_AT_name296 .byte 0 # DW_AT_decl_file297 .byte 1 # DW_AT_decl_line298 .long 42 # DW_AT_type299 # DW_AT_external300 .byte 3 # Abbrev [3] 0x2a:0x4 DW_TAG_base_type301 .byte 2 # DW_AT_name302 .byte 5 # DW_AT_encoding303 .byte 4 # DW_AT_byte_size304 .byte 0 # End Of Children Mark305.Ldebug_info_dwo_end0:306 .section .debug_abbrev.dwo,"e",@progbits307 .byte 1 # Abbreviation Code308 .byte 17 # DW_TAG_compile_unit309 .byte 1 # DW_CHILDREN_yes310 .byte 37 # DW_AT_producer311 .byte 37 # DW_FORM_strx1312 .byte 19 # DW_AT_language313 .byte 5 # DW_FORM_data2314 .byte 3 # DW_AT_name315 .byte 37 # DW_FORM_strx1316 .byte 118 # DW_AT_dwo_name317 .byte 37 # DW_FORM_strx1318 .byte 0 # EOM(1)319 .byte 0 # EOM(2)320 .byte 2 # Abbreviation Code321 .byte 46 # DW_TAG_subprogram322 .byte 0 # DW_CHILDREN_no323 .byte 17 # DW_AT_low_pc324 .byte 27 # DW_FORM_addrx325 .byte 18 # DW_AT_high_pc326 .byte 6 # DW_FORM_data4327 .byte 64 # DW_AT_frame_base328 .byte 24 # DW_FORM_exprloc329 .byte 110 # DW_AT_linkage_name330 .byte 37 # DW_FORM_strx1331 .byte 3 # DW_AT_name332 .byte 37 # DW_FORM_strx1333 .byte 58 # DW_AT_decl_file334 .byte 11 # DW_FORM_data1335 .byte 59 # DW_AT_decl_line336 .byte 11 # DW_FORM_data1337 .byte 73 # DW_AT_type338 .byte 19 # DW_FORM_ref4339 .byte 63 # DW_AT_external340 .byte 25 # DW_FORM_flag_present341 .byte 0 # EOM(1)342 .byte 0 # EOM(2)343 .byte 3 # Abbreviation Code344 .byte 36 # DW_TAG_base_type345 .byte 0 # DW_CHILDREN_no346 .byte 3 # DW_AT_name347 .byte 37 # DW_FORM_strx1348 .byte 62 # DW_AT_encoding349 .byte 11 # DW_FORM_data1350 .byte 11 # DW_AT_byte_size351 .byte 11 # DW_FORM_data1352 .byte 0 # EOM(1)353 .byte 0 # EOM(2)354 .byte 0 # EOM(3)355 .section .debug_addr,"",@progbits356 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution357.Ldebug_addr_start0:358 .short 5 # DWARF version number359 .byte 8 # Address size360 .byte 0 # Segment selector size361.Laddr_table_base0:362 .quad .Lfunc_begin0363.Ldebug_addr_end0:364 .ident "clang version 22.0.0"365 .section ".note.GNU-stack","",@progbits366 .addrsig367 .section .debug_line,"",@progbits368.Lline_table_start0:369