222 lines · plain
1# clang++ -O0 -g2 -S -ffunction-sections -o2# extern int Foo;3# int main(int argc, char *argv[]) {4# return 0;5# }6 7 .text8 .file "main.cpp"9 .section .text.main,"ax",@progbits10 .globl main # -- Begin function main11 .p2align 4, 0x9012 .type main,@function13main: # @main14.Lfunc_begin0:15 .file 0 "/repro2" "main.cpp" md5 0x44051a7da6269c029bfea564d92d1db416 .loc 0 2 0 # main.cpp:2:017 .cfi_startproc18# %bb.0: # %entry19 pushq %rbp20 .cfi_def_cfa_offset 1621 .cfi_offset %rbp, -1622 movq %rsp, %rbp23 .cfi_def_cfa_register %rbp24 movl $0, -4(%rbp)25 movl %edi, -8(%rbp)26 movq %rsi, -16(%rbp)27.Ltmp0:28 .loc 0 3 3 prologue_end # main.cpp:3:329 xorl %eax, %eax30 .loc 0 3 3 epilogue_begin is_stmt 0 # main.cpp:3:331 popq %rbp32 .cfi_def_cfa %rsp, 833 retq34.Ltmp1:35.Lfunc_end0:36 .size main, .Lfunc_end0-main37 .cfi_endproc38 # -- End function39 .section .debug_abbrev,"",@progbits40 .byte 1 # Abbreviation Code41 .byte 17 # DW_TAG_compile_unit42 .byte 1 # DW_CHILDREN_yes43 .byte 37 # DW_AT_producer44 .byte 37 # DW_FORM_strx145 .byte 19 # DW_AT_language46 .byte 5 # DW_FORM_data247 .byte 3 # DW_AT_name48 .byte 37 # DW_FORM_strx149 .byte 114 # DW_AT_str_offsets_base50 .byte 23 # DW_FORM_sec_offset51 .byte 16 # DW_AT_stmt_list52 .byte 23 # DW_FORM_sec_offset53 .byte 27 # DW_AT_comp_dir54 .byte 37 # DW_FORM_strx155 .byte 17 # DW_AT_low_pc56 .byte 27 # DW_FORM_addrx57 .byte 18 # DW_AT_high_pc58 .byte 6 # DW_FORM_data459 .byte 115 # DW_AT_addr_base60 .byte 23 # DW_FORM_sec_offset61 .byte 0 # EOM(1)62 .byte 0 # EOM(2)63 .byte 2 # Abbreviation Code64 .byte 46 # DW_TAG_subprogram65 .byte 1 # DW_CHILDREN_yes66 .byte 17 # DW_AT_low_pc67 .byte 27 # DW_FORM_addrx68 .byte 18 # DW_AT_high_pc69 .byte 6 # DW_FORM_data470 .byte 64 # DW_AT_frame_base71 .byte 24 # DW_FORM_exprloc72 .byte 3 # DW_AT_name73 .byte 37 # DW_FORM_strx174 .byte 58 # DW_AT_decl_file75 .byte 11 # DW_FORM_data176 .byte 59 # DW_AT_decl_line77 .byte 11 # DW_FORM_data178 .byte 73 # DW_AT_type79 .byte 19 # DW_FORM_ref480 .byte 63 # DW_AT_external81 .byte 25 # DW_FORM_flag_present82 .byte 0 # EOM(1)83 .byte 0 # EOM(2)84 .byte 3 # Abbreviation Code85 .byte 5 # DW_TAG_formal_parameter86 .byte 0 # DW_CHILDREN_no87 .byte 2 # DW_AT_location88 .byte 24 # DW_FORM_exprloc89 .byte 3 # DW_AT_name90 .byte 37 # DW_FORM_strx191 .byte 58 # DW_AT_decl_file92 .byte 11 # DW_FORM_data193 .byte 59 # DW_AT_decl_line94 .byte 11 # DW_FORM_data195 .byte 73 # DW_AT_type96 .byte 19 # DW_FORM_ref497 .byte 0 # EOM(1)98 .byte 0 # EOM(2)99 .byte 4 # Abbreviation Code100 .byte 36 # DW_TAG_base_type101 .byte 0 # DW_CHILDREN_no102 .byte 3 # DW_AT_name103 .byte 37 # DW_FORM_strx1104 .byte 62 # DW_AT_encoding105 .byte 11 # DW_FORM_data1106 .byte 11 # DW_AT_byte_size107 .byte 11 # DW_FORM_data1108 .byte 0 # EOM(1)109 .byte 0 # EOM(2)110 .byte 5 # Abbreviation Code111 .byte 15 # DW_TAG_pointer_type112 .byte 0 # DW_CHILDREN_no113 .byte 73 # DW_AT_type114 .byte 19 # DW_FORM_ref4115 .byte 0 # EOM(1)116 .byte 0 # EOM(2)117 .byte 0 # EOM(3)118 .section .debug_info,"",@progbits119.Lcu_begin0:120 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit121.Ldebug_info_start0:122 .short 5 # DWARF version number123 .byte 1 # DWARF Unit Type124 .byte 8 # Address Size (in bytes)125 .long .debug_abbrev # Offset Into Abbrev. Section126 .byte 1 # Abbrev [1] 0xc:0x50 DW_TAG_compile_unit127 .byte 0 # DW_AT_producer128 .short 33 # DW_AT_language129 .byte 1 # DW_AT_name130 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base131 .long .Lline_table_start0 # DW_AT_stmt_list132 .byte 2 # DW_AT_comp_dir133 .byte 0 # DW_AT_low_pc134 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc135 .long .Laddr_table_base0 # DW_AT_addr_base136 .byte 2 # Abbrev [2] 0x23:0x26 DW_TAG_subprogram137 .byte 0 # DW_AT_low_pc138 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc139 .byte 1 # DW_AT_frame_base140 .byte 86141 .byte 3 # DW_AT_name142 .byte 0 # DW_AT_decl_file143 .byte 2 # DW_AT_decl_line144 .long 73 # DW_AT_type145 # DW_AT_external146 .byte 3 # Abbrev [3] 0x32:0xb DW_TAG_formal_parameter147 .byte 2 # DW_AT_location148 .byte 145149 .byte 120150 .byte 5 # DW_AT_name151 .byte 0 # DW_AT_decl_file152 .byte 2 # DW_AT_decl_line153 .long 73 # DW_AT_type154 .byte 3 # Abbrev [3] 0x3d:0xb DW_TAG_formal_parameter155 .byte 2 # DW_AT_location156 .byte 145157 .byte 112158 .byte 6 # DW_AT_name159 .byte 0 # DW_AT_decl_file160 .byte 2 # DW_AT_decl_line161 .long 77 # DW_AT_type162 .byte 0 # End Of Children Mark163 .byte 4 # Abbrev [4] 0x49:0x4 DW_TAG_base_type164 .byte 4 # DW_AT_name165 .byte 5 # DW_AT_encoding166 .byte 4 # DW_AT_byte_size167 .byte 5 # Abbrev [5] 0x4d:0x5 DW_TAG_pointer_type168 .long 82 # DW_AT_type169 .byte 5 # Abbrev [5] 0x52:0x5 DW_TAG_pointer_type170 .long 87 # DW_AT_type171 .byte 4 # Abbrev [4] 0x57:0x4 DW_TAG_base_type172 .byte 7 # DW_AT_name173 .byte 6 # DW_AT_encoding174 .byte 1 # DW_AT_byte_size175 .byte 0 # End Of Children Mark176.Ldebug_info_end0:177 .section .debug_str_offsets,"",@progbits178 .long 36 # Length of String Offsets Set179 .short 5180 .short 0181.Lstr_offsets_base0:182 .section .debug_str,"MS",@progbits,1183.Linfo_string0:184 .asciz "clang version 19.0.0git (git@github.com:ayermolo/llvm-project.git 6c884ef47e88e5ff18353819e806fe1b84e3c5b5)" # string offset=0185.Linfo_string1:186 .asciz "main.cpp" # string offset=108187.Linfo_string2:188 .asciz "/repro2" # string offset=117189.Linfo_string3:190 .asciz "main" # string offset=162191.Linfo_string4:192 .asciz "int" # string offset=167193.Linfo_string5:194 .asciz "argc" # string offset=171195.Linfo_string6:196 .asciz "argv" # string offset=176197.Linfo_string7:198 .asciz "char" # string offset=181199 .section .debug_str_offsets,"",@progbits200 .long .Linfo_string0201 .long .Linfo_string1202 .long .Linfo_string2203 .long .Linfo_string3204 .long .Linfo_string4205 .long .Linfo_string5206 .long .Linfo_string6207 .long .Linfo_string7208 .section .debug_addr,"",@progbits209 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution210.Ldebug_addr_start0:211 .short 5 # DWARF version number212 .byte 8 # Address size213 .byte 0 # Segment selector size214.Laddr_table_base0:215 .quad .Lfunc_begin0216.Ldebug_addr_end0:217 .ident "clang version 19.0.0git (git@github.com:ayermolo/llvm-project.git 6c884ef47e88e5ff18353819e806fe1b84e3c5b5)"218 .section ".note.GNU-stack","",@progbits219 .addrsig220 .section .debug_line,"",@progbits221.Lline_table_start0:222