brintos

brintos / llvm-project-archived public Read only

0
0
Text · 8.2 KiB · 0d669e6 Raw
178 lines · plain
1# clang++ -g2 -gdwarf-5 helper.cpp -S2# __attribute__ ((used))3# static struct {4#       int i;5# } Foo;6 7# Manually modified to remove DW_AT_addr_base and DW_AT_location.8 9	.text10	.file	"helper.cpp"11	.file	0 "." "helper.cpp" md5 0x18c63f39ce5af555b264ad09798e35d512	.type	_ZL3Foo,@object                 # @_ZL3Foo13	.local	_ZL3Foo14	.comm	_ZL3Foo,4,415	.section	.debug_abbrev,"",@progbits16	.byte	1                               # Abbreviation Code17	.byte	17                              # DW_TAG_compile_unit18	.byte	1                               # DW_CHILDREN_yes19	.byte	37                              # DW_AT_producer20	.byte	37                              # DW_FORM_strx121	.byte	19                              # DW_AT_language22	.byte	5                               # DW_FORM_data223	.byte	3                               # DW_AT_name24	.byte	37                              # DW_FORM_strx125	.byte	114                             # DW_AT_str_offsets_base26	.byte	23                              # DW_FORM_sec_offset27	.byte	16                              # DW_AT_stmt_list28	.byte	23                              # DW_FORM_sec_offset29	.byte	27                              # DW_AT_comp_dir30	.byte	37                              # DW_FORM_strx131	#.byte	115                             # DW_AT_addr_base manually removed32	#.byte	23                              # DW_FORM_sec_offset33	.byte	0                               # EOM(1)34	.byte	0                               # EOM(2)35	.byte	2                               # Abbreviation Code36	.byte	52                              # DW_TAG_variable37	.byte	0                               # DW_CHILDREN_no38	.byte	3                               # DW_AT_name39	.byte	37                              # DW_FORM_strx140	.byte	73                              # DW_AT_type41	.byte	19                              # DW_FORM_ref442	.byte	58                              # DW_AT_decl_file43	.byte	11                              # DW_FORM_data144	.byte	59                              # DW_AT_decl_line45	.byte	11                              # DW_FORM_data146	#.byte	2                               # DW_AT_location manually removed47	#.byte	24                              # DW_FORM_exprloc48	.byte	110                             # DW_AT_linkage_name49	.byte	37                              # DW_FORM_strx150	.byte	0                               # EOM(1)51	.byte	0                               # EOM(2)52	.byte	3                               # Abbreviation Code53	.byte	19                              # DW_TAG_structure_type54	.byte	1                               # DW_CHILDREN_yes55	.byte	54                              # DW_AT_calling_convention56	.byte	11                              # DW_FORM_data157	.byte	11                              # DW_AT_byte_size58	.byte	11                              # DW_FORM_data159	.byte	58                              # DW_AT_decl_file60	.byte	11                              # DW_FORM_data161	.byte	59                              # DW_AT_decl_line62	.byte	11                              # DW_FORM_data163	.byte	0                               # EOM(1)64	.byte	0                               # EOM(2)65	.byte	4                               # Abbreviation Code66	.byte	13                              # DW_TAG_member67	.byte	0                               # DW_CHILDREN_no68	.byte	3                               # DW_AT_name69	.byte	37                              # DW_FORM_strx170	.byte	73                              # DW_AT_type71	.byte	19                              # DW_FORM_ref472	.byte	58                              # DW_AT_decl_file73	.byte	11                              # DW_FORM_data174	.byte	59                              # DW_AT_decl_line75	.byte	11                              # DW_FORM_data176	.byte	56                              # DW_AT_data_member_location77	.byte	11                              # DW_FORM_data178	.byte	0                               # EOM(1)79	.byte	0                               # EOM(2)80	.byte	5                               # Abbreviation Code81	.byte	36                              # DW_TAG_base_type82	.byte	0                               # DW_CHILDREN_no83	.byte	3                               # DW_AT_name84	.byte	37                              # DW_FORM_strx185	.byte	62                              # DW_AT_encoding86	.byte	11                              # DW_FORM_data187	.byte	11                              # DW_AT_byte_size88	.byte	11                              # DW_FORM_data189	.byte	0                               # EOM(1)90	.byte	0                               # EOM(2)91	.byte	0                               # EOM(3)92	.section	.debug_info,"",@progbits93.Lcu_begin0:94	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit95.Ldebug_info_start0:96	.short	5                               # DWARF version number97	.byte	1                               # DWARF Unit Type98	.byte	8                               # Address Size (in bytes)99	.long	.debug_abbrev                   # Offset Into Abbrev. Section100	.byte	1                               # Abbrev [1] 0xc:0x32 DW_TAG_compile_unit101	.byte	0                               # DW_AT_producer102	.short	33                              # DW_AT_language103	.byte	1                               # DW_AT_name104	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base105	.long	.Lline_table_start0             # DW_AT_stmt_list106	.byte	2                               # DW_AT_comp_dir107	#.long	.Laddr_table_base0              # DW_AT_addr_base manually removed108	.byte	2                               # Abbrev [2] 0x1e:0xc DW_TAG_variable109	.byte	3                               # DW_AT_name110	.long	35                              # DW_AT_type111	.byte	0                               # DW_AT_decl_file112	.byte	4                               # DW_AT_decl_line113	#.byte	2                               # DW_AT_location manually removed114	#.byte	161115	#.byte	0116	.byte	6                               # DW_AT_linkage_name117	.byte	3                               # Abbrev [3] 0x2a:0xf DW_TAG_structure_type118	.byte	5                               # DW_AT_calling_convention119	.byte	4                               # DW_AT_byte_size120	.byte	0                               # DW_AT_decl_file121	.byte	2                               # DW_AT_decl_line122	.byte	4                               # Abbrev [4] 0x2f:0x9 DW_TAG_member123	.byte	4                               # DW_AT_name124	.long	50                              # DW_AT_type125	.byte	0                               # DW_AT_decl_file126	.byte	3                               # DW_AT_decl_line127	.byte	0                               # DW_AT_data_member_location128	.byte	0                               # End Of Children Mark129	.byte	5                               # Abbrev [5] 0x39:0x4 DW_TAG_base_type130	.byte	5                               # DW_AT_name131	.byte	5                               # DW_AT_encoding132	.byte	4                               # DW_AT_byte_size133	.byte	0                               # End Of Children Mark134.Ldebug_info_end0:135	.section	.debug_str_offsets,"",@progbits136	.long	32                              # Length of String Offsets Set137	.short	5138	.short	0139.Lstr_offsets_base0:140	.section	.debug_str,"MS",@progbits,1141.Linfo_string0:142	.asciz	"clang version 16.0.0" # string offset=0143.Linfo_string1:144	.asciz	"helper.cpp"                    # string offset=134145.Linfo_string2:146	.asciz	"." # string offset=145147.Linfo_string3:148	.asciz	"Foo"                           # string offset=183149.Linfo_string4:150	.asciz	"i"                             # string offset=187151.Linfo_string5:152	.asciz	"int"                           # string offset=189153.Linfo_string6:154	.asciz	"_ZL3Foo"                       # string offset=193155	.section	.debug_str_offsets,"",@progbits156	.long	.Linfo_string0157	.long	.Linfo_string1158	.long	.Linfo_string2159	.long	.Linfo_string3160	.long	.Linfo_string4161	.long	.Linfo_string5162	.long	.Linfo_string6163	.section	.debug_addr,"",@progbits164	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution165.Ldebug_addr_start0:166	.short	5                               # DWARF version number167	.byte	8                               # Address size168	.byte	0                               # Segment selector size169.Laddr_table_base0:170	.quad	_ZL3Foo171.Ldebug_addr_end0:172	.ident	"clang version 16.0.0"173	.section	".note.GNU-stack","",@progbits174	.addrsig175	.addrsig_sym _ZL3Foo176	.section	.debug_line,"",@progbits177.Lline_table_start0:178