1# struct Foo2a { 2# char *c1; 3# char *c2; 4# char *c3; 5# }; 6# int foo() { 7# Foo2a f; 8# return 0; 9# } 10 .text 11 .file "helper.cpp" 12 .globl _Z3foov # -- Begin function _Z3foov 13 .p2align 4, 0x90 14 .type _Z3foov,@function 15_Z3foov: # @_Z3foov 16.Lfunc_begin0: 17 .file 1 "dwarf4-duplicate-types-test" "helper.cpp" 18 .loc 1 6 0 # helper.cpp:6:0 19 .cfi_startproc 20# %bb.0: 21 pushq %rbp 22 .cfi_def_cfa_offset 16 23 .cfi_offset %rbp, -16 24 movq %rsp, %rbp 25 .cfi_def_cfa_register %rbp 26.Ltmp0: 27 .loc 1 8 3 prologue_end # helper.cpp:8:3 28 xorl %eax, %eax 29 .loc 1 8 3 epilogue_begin is_stmt 0 # helper.cpp:8:3 30 popq %rbp 31 .cfi_def_cfa %rsp, 8 32 retq 33.Ltmp1: 34.Lfunc_end0: 35 .size _Z3foov, .Lfunc_end0-_Z3foov 36 .cfi_endproc 37 # -- End function 38 .section .debug_types,"G",@progbits,1175092228111723119,comdat 39 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit 40.Ldebug_info_start0: 41 .short 4 # DWARF version number 42 .long .debug_abbrev # Offset Into Abbrev. Section 43 .byte 8 # Address Size (in bytes) 44 .quad 7448148824980338162 # Type Signature <--- Manually modified to have same signature as TU in main 45 .long 30 # Type DIE Offset 46 .byte 1 # Abbrev [1] 0x17:0x42 DW_TAG_type_unit 47 .short 33 # DW_AT_language 48 .long .Lline_table_start0 # DW_AT_stmt_list 49 .byte 2 # Abbrev [2] 0x1e:0x2e DW_TAG_structure_type 50 .byte 5 # DW_AT_calling_convention 51 .long .Linfo_string11 # DW_AT_name 52 .byte 24 # DW_AT_byte_size 53 .byte 1 # DW_AT_decl_file 54 .byte 1 # DW_AT_decl_line 55 .byte 3 # Abbrev [3] 0x27:0xc DW_TAG_member 56 .long .Linfo_string7 # DW_AT_name 57 .long 76 # DW_AT_type 58 .byte 1 # DW_AT_decl_file 59 .byte 2 # DW_AT_decl_line 60 .byte 0 # DW_AT_data_member_location 61 .byte 3 # Abbrev [3] 0x33:0xc DW_TAG_member 62 .long .Linfo_string9 # DW_AT_name 63 .long 76 # DW_AT_type 64 .byte 1 # DW_AT_decl_file 65 .byte 3 # DW_AT_decl_line 66 .byte 8 # DW_AT_data_member_location 67 .byte 3 # Abbrev [3] 0x3f:0xc DW_TAG_member 68 .long .Linfo_string10 # DW_AT_name 69 .long 76 # DW_AT_type 70 .byte 1 # DW_AT_decl_file 71 .byte 4 # DW_AT_decl_line 72 .byte 16 # DW_AT_data_member_location 73 .byte 0 # End Of Children Mark 74 .byte 4 # Abbrev [4] 0x4c:0x5 DW_TAG_pointer_type 75 .long 81 # DW_AT_type 76 .byte 5 # Abbrev [5] 0x51:0x7 DW_TAG_base_type 77 .long .Linfo_string8 # DW_AT_name 78 .byte 6 # DW_AT_encoding 79 .byte 1 # DW_AT_byte_size 80 .byte 0 # End Of Children Mark 81.Ldebug_info_end0: 82 .section .debug_abbrev,"",@progbits 83 .byte 1 # Abbreviation Code 84 .byte 65 # DW_TAG_type_unit 85 .byte 1 # DW_CHILDREN_yes 86 .byte 19 # DW_AT_language 87 .byte 5 # DW_FORM_data2 88 .byte 16 # DW_AT_stmt_list 89 .byte 23 # DW_FORM_sec_offset 90 .byte 0 # EOM(1) 91 .byte 0 # EOM(2) 92 .byte 2 # Abbreviation Code 93 .byte 19 # DW_TAG_structure_type 94 .byte 1 # DW_CHILDREN_yes 95 .byte 54 # DW_AT_calling_convention 96 .byte 11 # DW_FORM_data1 97 .byte 3 # DW_AT_name 98 .byte 14 # DW_FORM_strp 99 .byte 11 # DW_AT_byte_size 100 .byte 11 # DW_FORM_data1 101 .byte 58 # DW_AT_decl_file 102 .byte 11 # DW_FORM_data1 103 .byte 59 # DW_AT_decl_line 104 .byte 11 # DW_FORM_data1 105 .byte 0 # EOM(1) 106 .byte 0 # EOM(2) 107 .byte 3 # Abbreviation Code 108 .byte 13 # DW_TAG_member 109 .byte 0 # DW_CHILDREN_no 110 .byte 3 # DW_AT_name 111 .byte 14 # DW_FORM_strp 112 .byte 73 # DW_AT_type 113 .byte 19 # DW_FORM_ref4 114 .byte 58 # DW_AT_decl_file 115 .byte 11 # DW_FORM_data1 116 .byte 59 # DW_AT_decl_line 117 .byte 11 # DW_FORM_data1 118 .byte 56 # DW_AT_data_member_location 119 .byte 11 # DW_FORM_data1 120 .byte 0 # EOM(1) 121 .byte 0 # EOM(2) 122 .byte 4 # Abbreviation Code 123 .byte 15 # DW_TAG_pointer_type 124 .byte 0 # DW_CHILDREN_no 125 .byte 73 # DW_AT_type 126 .byte 19 # DW_FORM_ref4 127 .byte 0 # EOM(1) 128 .byte 0 # EOM(2) 129 .byte 5 # Abbreviation Code 130 .byte 36 # DW_TAG_base_type 131 .byte 0 # DW_CHILDREN_no 132 .byte 3 # DW_AT_name 133 .byte 14 # DW_FORM_strp 134 .byte 62 # DW_AT_encoding 135 .byte 11 # DW_FORM_data1 136 .byte 11 # DW_AT_byte_size 137 .byte 11 # DW_FORM_data1 138 .byte 0 # EOM(1) 139 .byte 0 # EOM(2) 140 .byte 6 # Abbreviation Code 141 .byte 17 # DW_TAG_compile_unit 142 .byte 1 # DW_CHILDREN_yes 143 .byte 37 # DW_AT_producer 144 .byte 14 # DW_FORM_strp 145 .byte 19 # DW_AT_language 146 .byte 5 # DW_FORM_data2 147 .byte 3 # DW_AT_name 148 .byte 14 # DW_FORM_strp 149 .byte 16 # DW_AT_stmt_list 150 .byte 23 # DW_FORM_sec_offset 151 .byte 27 # DW_AT_comp_dir 152 .byte 14 # DW_FORM_strp 153 .byte 17 # DW_AT_low_pc 154 .byte 1 # DW_FORM_addr 155 .byte 18 # DW_AT_high_pc 156 .byte 6 # DW_FORM_data4 157 .byte 0 # EOM(1) 158 .byte 0 # EOM(2) 159 .byte 7 # Abbreviation Code 160 .byte 46 # DW_TAG_subprogram 161 .byte 1 # DW_CHILDREN_yes 162 .byte 17 # DW_AT_low_pc 163 .byte 1 # DW_FORM_addr 164 .byte 18 # DW_AT_high_pc 165 .byte 6 # DW_FORM_data4 166 .byte 64 # DW_AT_frame_base 167 .byte 24 # DW_FORM_exprloc 168 .byte 110 # DW_AT_linkage_name 169 .byte 14 # DW_FORM_strp 170 .byte 3 # DW_AT_name 171 .byte 14 # DW_FORM_strp 172 .byte 58 # DW_AT_decl_file 173 .byte 11 # DW_FORM_data1 174 .byte 59 # DW_AT_decl_line 175 .byte 11 # DW_FORM_data1 176 .byte 73 # DW_AT_type 177 .byte 19 # DW_FORM_ref4 178 .byte 63 # DW_AT_external 179 .byte 25 # DW_FORM_flag_present 180 .byte 0 # EOM(1) 181 .byte 0 # EOM(2) 182 .byte 8 # Abbreviation Code 183 .byte 52 # DW_TAG_variable 184 .byte 0 # DW_CHILDREN_no 185 .byte 2 # DW_AT_location 186 .byte 24 # DW_FORM_exprloc 187 .byte 3 # DW_AT_name 188 .byte 14 # DW_FORM_strp 189 .byte 58 # DW_AT_decl_file 190 .byte 11 # DW_FORM_data1 191 .byte 59 # DW_AT_decl_line 192 .byte 11 # DW_FORM_data1 193 .byte 73 # DW_AT_type 194 .byte 19 # DW_FORM_ref4 195 .byte 0 # EOM(1) 196 .byte 0 # EOM(2) 197 .byte 9 # Abbreviation Code 198 .byte 19 # DW_TAG_structure_type 199 .byte 0 # DW_CHILDREN_no 200 .byte 60 # DW_AT_declaration 201 .byte 25 # DW_FORM_flag_present 202 .byte 105 # DW_AT_signature 203 .byte 32 # DW_FORM_ref_sig8 204 .byte 0 # EOM(1) 205 .byte 0 # EOM(2) 206 .byte 0 # EOM(3) 207 .section .debug_info,"",@progbits 208.Lcu_begin0: 209 .long .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit 210.Ldebug_info_start1: 211 .short 4 # DWARF version number 212 .long .debug_abbrev # Offset Into Abbrev. Section 213 .byte 8 # Address Size (in bytes) 214 .byte 6 # Abbrev [6] 0xb:0x5c DW_TAG_compile_unit 215 .long .Linfo_string0 # DW_AT_producer 216 .short 33 # DW_AT_language 217 .long .Linfo_string1 # DW_AT_name 218 .long .Lline_table_start0 # DW_AT_stmt_list 219 .long .Linfo_string2 # DW_AT_comp_dir 220 .quad .Lfunc_begin0 # DW_AT_low_pc 221 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc 222 .byte 7 # Abbrev [7] 0x2a:0x2c DW_TAG_subprogram 223 .quad .Lfunc_begin0 # DW_AT_low_pc 224 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc 225 .byte 1 # DW_AT_frame_base 226 .byte 86 227 .long .Linfo_string3 # DW_AT_linkage_name 228 .long .Linfo_string4 # DW_AT_name 229 .byte 1 # DW_AT_decl_file 230 .byte 6 # DW_AT_decl_line 231 .long 86 # DW_AT_type 232 # DW_AT_external 233 .byte 8 # Abbrev [8] 0x47:0xe DW_TAG_variable 234 .byte 2 # DW_AT_location 235 .byte 145 236 .byte 104 237 .long .Linfo_string6 # DW_AT_name 238 .byte 1 # DW_AT_decl_file 239 .byte 7 # DW_AT_decl_line 240 .long 93 # DW_AT_type 241 .byte 0 # End Of Children Mark 242 .byte 5 # Abbrev [5] 0x56:0x7 DW_TAG_base_type 243 .long .Linfo_string5 # DW_AT_name 244 .byte 5 # DW_AT_encoding 245 .byte 4 # DW_AT_byte_size 246 .byte 9 # Abbrev [9] 0x5d:0x9 DW_TAG_structure_type 247 # DW_AT_declaration 248 .quad 1175092228111723119 # DW_AT_signature 249 .byte 0 # End Of Children Mark 250.Ldebug_info_end1: 251 .section .debug_str,"MS",@progbits,1 252.Linfo_string0: 253 .asciz "Facebook clang version 15.0.0 (ssh://git-ro.vip.facebook.com/data/gitrepos/osmeta/external/llvm-project e11a3497eb7c3f5a9d56030f25e27e0522994d62)" # string offset=0 254.Linfo_string1: 255 .asciz "helper.cpp" # string offset=146 256.Linfo_string2: 257 .asciz "dwarf4-duplicate-types-test" # string offset=157 258.Linfo_string3: 259 .asciz "_Z3foov" # string offset=223 260.Linfo_string4: 261 .asciz "foo" # string offset=231 262.Linfo_string5: 263 .asciz "int" # string offset=235 264.Linfo_string6: 265 .asciz "f" # string offset=239 266.Linfo_string7: 267 .asciz "c1" # string offset=241 268.Linfo_string8: 269 .asciz "char" # string offset=244 270.Linfo_string9: 271 .asciz "c2" # string offset=249 272.Linfo_string10: 273 .asciz "c3" # string offset=252 274.Linfo_string11: 275 .asciz "Foo2a" # string offset=255 276 .ident "Facebook clang version 15.0.0 (ssh://git-ro.vip.facebook.com/data/gitrepos/osmeta/external/llvm-project e11a3497eb7c3f5a9d56030f25e27e0522994d62)" 277 .section ".note.GNU-stack","",@progbits 278 .addrsig 279 .section .debug_line,"",@progbits 280.Lline_table_start0: 281