brintos

brintos / llvm-project-archived public Read only

0
0
Text · 11.4 KiB · 8261e9e Raw
251 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3# RUN: not ld.lld --debug-names %t.o -o /dev/null 2>&1 | \4# RUN:   FileCheck -DFILE=%t.o --implicit-check-not=error: %s5 6# CHECK: error: [[FILE]]:(.debug_names): found DWARF64, which is currently unsupported7 8.ifdef GEN9//--- a.cc10struct t1 {};11extern "C" void _start(t1) {}12//--- gen13clang --target=x86_64-linux -S -g -gpubnames -gdwarf64 a.cc -o -14.endif15	.text16	.file	"a.cc"17	.globl	_start                          # -- Begin function _start18	.p2align	4, 0x9019	.type	_start,@function20_start:                                 # @_start21.Lfunc_begin0:22	.file	0 "/proc/self/cwd" "a.cc" md5 0x6835f89a7d36054002b51e54e47d852e23	.loc	0 2 0                           # a.cc:2:024	.cfi_startproc25# %bb.0:                                # %entry26	pushq	%rbp27	.cfi_def_cfa_offset 1628	.cfi_offset %rbp, -1629	movq	%rsp, %rbp30	.cfi_def_cfa_register %rbp31.Ltmp0:32	.loc	0 2 29 prologue_end epilogue_begin # a.cc:2:2933	popq	%rbp34	.cfi_def_cfa %rsp, 835	retq36.Ltmp1:37.Lfunc_end0:38	.size	_start, .Lfunc_end0-_start39	.cfi_endproc40                                        # -- End function41	.section	.debug_abbrev,"",@progbits42	.byte	1                               # Abbreviation Code43	.byte	17                              # DW_TAG_compile_unit44	.byte	1                               # DW_CHILDREN_yes45	.byte	37                              # DW_AT_producer46	.byte	37                              # DW_FORM_strx147	.byte	19                              # DW_AT_language48	.byte	5                               # DW_FORM_data249	.byte	3                               # DW_AT_name50	.byte	37                              # DW_FORM_strx151	.byte	114                             # DW_AT_str_offsets_base52	.byte	23                              # DW_FORM_sec_offset53	.byte	16                              # DW_AT_stmt_list54	.byte	23                              # DW_FORM_sec_offset55	.byte	27                              # DW_AT_comp_dir56	.byte	37                              # DW_FORM_strx157	.byte	17                              # DW_AT_low_pc58	.byte	27                              # DW_FORM_addrx59	.byte	18                              # DW_AT_high_pc60	.byte	6                               # DW_FORM_data461	.byte	115                             # DW_AT_addr_base62	.byte	23                              # DW_FORM_sec_offset63	.byte	0                               # EOM(1)64	.byte	0                               # EOM(2)65	.byte	2                               # Abbreviation Code66	.byte	46                              # DW_TAG_subprogram67	.byte	1                               # DW_CHILDREN_yes68	.byte	17                              # DW_AT_low_pc69	.byte	27                              # DW_FORM_addrx70	.byte	18                              # DW_AT_high_pc71	.byte	6                               # DW_FORM_data472	.byte	64                              # DW_AT_frame_base73	.byte	24                              # DW_FORM_exprloc74	.byte	3                               # DW_AT_name75	.byte	37                              # DW_FORM_strx176	.byte	58                              # DW_AT_decl_file77	.byte	11                              # DW_FORM_data178	.byte	59                              # DW_AT_decl_line79	.byte	11                              # DW_FORM_data180	.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	58                              # DW_AT_decl_file90	.byte	11                              # DW_FORM_data191	.byte	59                              # DW_AT_decl_line92	.byte	11                              # DW_FORM_data193	.byte	73                              # DW_AT_type94	.byte	19                              # DW_FORM_ref495	.byte	0                               # EOM(1)96	.byte	0                               # EOM(2)97	.byte	4                               # Abbreviation Code98	.byte	19                              # DW_TAG_structure_type99	.byte	0                               # DW_CHILDREN_no100	.byte	54                              # DW_AT_calling_convention101	.byte	11                              # DW_FORM_data1102	.byte	3                               # DW_AT_name103	.byte	37                              # DW_FORM_strx1104	.byte	11                              # DW_AT_byte_size105	.byte	11                              # DW_FORM_data1106	.byte	58                              # DW_AT_decl_file107	.byte	11                              # DW_FORM_data1108	.byte	59                              # DW_AT_decl_line109	.byte	11                              # DW_FORM_data1110	.byte	0                               # EOM(1)111	.byte	0                               # EOM(2)112	.byte	0                               # EOM(3)113	.section	.debug_info,"",@progbits114.Lcu_begin0:115	.long	4294967295                      # DWARF64 Mark116	.quad	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit117.Ldebug_info_start0:118	.short	5                               # DWARF version number119	.byte	1                               # DWARF Unit Type120	.byte	8                               # Address Size (in bytes)121	.quad	.debug_abbrev                   # Offset Into Abbrev. Section122	.byte	1                               # Abbrev [1] 0x18:0x40 DW_TAG_compile_unit123	.byte	0                               # DW_AT_producer124	.short	33                              # DW_AT_language125	.byte	1                               # DW_AT_name126	.quad	.Lstr_offsets_base0             # DW_AT_str_offsets_base127	.quad	.Lline_table_start0             # DW_AT_stmt_list128	.byte	2                               # DW_AT_comp_dir129	.byte	0                               # DW_AT_low_pc130	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc131	.quad	.Laddr_table_base0              # DW_AT_addr_base132	.byte	2                               # Abbrev [2] 0x3b:0x16 DW_TAG_subprogram133	.byte	0                               # DW_AT_low_pc134	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc135	.byte	1                               # DW_AT_frame_base136	.byte	86137	.byte	3                               # DW_AT_name138	.byte	0                               # DW_AT_decl_file139	.byte	2                               # DW_AT_decl_line140                                        # DW_AT_external141	.byte	3                               # Abbrev [3] 0x46:0xa DW_TAG_formal_parameter142	.byte	2                               # DW_AT_location143	.byte	145144	.byte	127145	.byte	0                               # DW_AT_decl_file146	.byte	2                               # DW_AT_decl_line147	.long	81                              # DW_AT_type148	.byte	0                               # End Of Children Mark149	.byte	4                               # Abbrev [4] 0x51:0x6 DW_TAG_structure_type150	.byte	5                               # DW_AT_calling_convention151	.byte	4                               # DW_AT_name152	.byte	1                               # DW_AT_byte_size153	.byte	0                               # DW_AT_decl_file154	.byte	1                               # DW_AT_decl_line155	.byte	0                               # End Of Children Mark156.Ldebug_info_end0:157	.section	.debug_str_offsets,"",@progbits158	.long	4294967295                      # DWARF64 Mark159	.quad	44                              # Length of String Offsets Set160	.short	5161	.short	0162.Lstr_offsets_base0:163	.section	.debug_str,"MS",@progbits,1164.Linfo_string0:165	.byte	0                               # string offset=0166.Linfo_string1:167	.asciz	"a.cc"                          # string offset=1168.Linfo_string2:169	.asciz	"/proc/self/cwd"                # string offset=6170.Linfo_string3:171	.asciz	"_start"                        # string offset=21172.Linfo_string4:173	.asciz	"t1"                            # string offset=28174	.section	.debug_str_offsets,"",@progbits175	.quad	.Linfo_string0176	.quad	.Linfo_string1177	.quad	.Linfo_string2178	.quad	.Linfo_string3179	.quad	.Linfo_string4180	.section	.debug_addr,"",@progbits181	.long	4294967295                      # DWARF64 Mark182	.quad	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution183.Ldebug_addr_start0:184	.short	5                               # DWARF version number185	.byte	8                               # Address size186	.byte	0                               # Segment selector size187.Laddr_table_base0:188	.quad	.Lfunc_begin0189.Ldebug_addr_end0:190	.section	.debug_names,"",@progbits191	.long	4294967295                      # DWARF64 Mark192	.quad	.Lnames_end0-.Lnames_start0     # Header: unit length193.Lnames_start0:194	.short	5                               # Header: version195	.short	0                               # Header: padding196	.long	1                               # Header: compilation unit count197	.long	0                               # Header: local type unit count198	.long	0                               # Header: foreign type unit count199	.long	2                               # Header: bucket count200	.long	2                               # Header: name count201	.long	.Lnames_abbrev_end0-.Lnames_abbrev_start0 # Header: abbreviation table size202	.long	8                               # Header: augmentation string size203	.ascii	"LLVM0700"                      # Header: augmentation string204	.quad	.Lcu_begin0                     # Compilation unit 0205	.long	1                               # Bucket 0206	.long	0                               # Bucket 1207	.long	5863786                         # Hash in Bucket 0208	.long	-304389582                      # Hash in Bucket 0209	.quad	.Linfo_string4                  # String in Bucket 0: t1210	.quad	.Linfo_string3                  # String in Bucket 0: _start211	.quad	.Lnames1-.Lnames_entries0       # Offset in Bucket 0212	.quad	.Lnames0-.Lnames_entries0       # Offset in Bucket 0213.Lnames_abbrev_start0:214	.byte	1                               # Abbrev code215	.byte	19                              # DW_TAG_structure_type216	.byte	3                               # DW_IDX_die_offset217	.byte	19                              # DW_FORM_ref4218	.byte	4                               # DW_IDX_parent219	.byte	25                              # DW_FORM_flag_present220	.byte	0                               # End of abbrev221	.byte	0                               # End of abbrev222	.byte	2                               # Abbrev code223	.byte	46                              # DW_TAG_subprogram224	.byte	3                               # DW_IDX_die_offset225	.byte	19                              # DW_FORM_ref4226	.byte	4                               # DW_IDX_parent227	.byte	25                              # DW_FORM_flag_present228	.byte	0                               # End of abbrev229	.byte	0                               # End of abbrev230	.byte	0                               # End of abbrev list231.Lnames_abbrev_end0:232.Lnames_entries0:233.Lnames1:234.L1:235	.byte	1                               # Abbreviation code236	.long	81                              # DW_IDX_die_offset237	.byte	0                               # DW_IDX_parent238                                        # End of list: t1239.Lnames0:240.L0:241	.byte	2                               # Abbreviation code242	.long	59                              # DW_IDX_die_offset243	.byte	0                               # DW_IDX_parent244                                        # End of list: _start245	.p2align	2, 0x0246.Lnames_end0:247	.section	".note.GNU-stack","",@progbits248	.addrsig249	.section	.debug_line,"",@progbits250.Lline_table_start0:251