[llvm-readelf] - Report a warning when .hash section contains a chain with a cycle.
[llvm-complete.git] / test / tools / dsymutil / Inputs / invalid.s
blob2657841ca62931e57a8bb17fce36d3fc70b4fb47
1 # The DW_AT_low_pc was modified to be greater than the DW_AT_high_pc.
3 .section __TEXT,__text,regular,pure_instructions
4 .macosx_version_min 10, 13
5 .globl _g ## -- Begin function g
6 .p2align 4, 0x90
7 _g: ## @g
8 Lfunc_begin0:
9 .file 1 "inlined.c"
10 .loc 1 1 0 ## inlined.c:1:0
11 .cfi_startproc
12 ## %bb.0: ## %entry
13 pushq %rbp
14 .cfi_def_cfa_offset 16
15 .cfi_offset %rbp, -16
16 movq %rsp, %rbp
17 .cfi_def_cfa_register %rbp
18 Ltmp0:
19 .loc 1 2 1 prologue_end ## inlined.c:2:1
20 popq %rbp
21 retq
22 Ltmp1:
23 Lfunc_end0:
24 .cfi_endproc
25 ## -- End function
26 .globl _main ## -- Begin function main
27 .p2align 4, 0x90
28 _main: ## @main
29 Lfunc_begin1:
30 .loc 1 3 0 ## inlined.c:3:0
31 .cfi_startproc
32 ## %bb.0: ## %entry
33 pushq %rbp
34 .cfi_def_cfa_offset 16
35 .cfi_offset %rbp, -16
36 movq %rsp, %rbp
37 .cfi_def_cfa_register %rbp
38 xorl %eax, %eax
39 Ltmp2:
40 .loc 1 5 1 prologue_end ## inlined.c:5:1
41 popq %rbp
42 retq
43 Ltmp3:
44 Lfunc_end1:
45 .cfi_endproc
46 ## -- End function
47 .section __DWARF,__debug_str,regular,debug
48 Linfo_string:
49 .asciz "clang version 7.0.0 " ## string offset=0
50 .asciz "inlined.c" ## string offset=21
51 .asciz "/private/tmp" ## string offset=31
52 .asciz "g" ## string offset=44
53 .asciz "main" ## string offset=46
54 .asciz "int" ## string offset=51
55 .section __DWARF,__debug_abbrev,regular,debug
56 Lsection_abbrev:
57 .byte 1 ## Abbreviation Code
58 .byte 17 ## DW_TAG_compile_unit
59 .byte 1 ## DW_CHILDREN_yes
60 .byte 37 ## DW_AT_producer
61 .byte 14 ## DW_FORM_strp
62 .byte 19 ## DW_AT_language
63 .byte 5 ## DW_FORM_data2
64 .byte 3 ## DW_AT_name
65 .byte 14 ## DW_FORM_strp
66 .byte 16 ## DW_AT_stmt_list
67 .byte 23 ## DW_FORM_sec_offset
68 .byte 27 ## DW_AT_comp_dir
69 .byte 14 ## DW_FORM_strp
70 .byte 19 ## DW_AT_low_pc <- LOW PC > HIGH PC
71 .byte 1 ## DW_FORM_addr
72 .byte 18 ## DW_AT_high_pc
73 .byte 6 ## DW_FORM_data4
74 .byte 0 ## EOM(1)
75 .byte 0 ## EOM(2)
76 .byte 2 ## Abbreviation Code
77 .byte 46 ## DW_TAG_subprogram
78 .byte 0 ## DW_CHILDREN_no
79 .byte 17 ## DW_AT_low_pc
80 .byte 1 ## DW_FORM_addr
81 .byte 18 ## DW_AT_high_pc
82 .byte 6 ## DW_FORM_data4
83 .byte 64 ## DW_AT_frame_base
84 .byte 24 ## DW_FORM_exprloc
85 .byte 3 ## DW_AT_name
86 .byte 14 ## DW_FORM_strp
87 .byte 58 ## DW_AT_decl_file
88 .byte 11 ## DW_FORM_data1
89 .byte 59 ## DW_AT_decl_line
90 .byte 11 ## DW_FORM_data1
91 .byte 63 ## DW_AT_external
92 .byte 25 ## DW_FORM_flag_present
93 .byte 0 ## EOM(1)
94 .byte 0 ## EOM(2)
95 .byte 3 ## Abbreviation Code
96 .byte 46 ## DW_TAG_subprogram
97 .byte 0 ## DW_CHILDREN_no
98 .byte 17 ## DW_AT_low_pc
99 .byte 1 ## DW_FORM_addr
100 .byte 18 ## DW_AT_high_pc
101 .byte 6 ## DW_FORM_data4
102 .byte 64 ## DW_AT_frame_base
103 .byte 24 ## DW_FORM_exprloc
104 .byte 3 ## DW_AT_name
105 .byte 14 ## DW_FORM_strp
106 .byte 58 ## DW_AT_decl_file
107 .byte 11 ## DW_FORM_data1
108 .byte 59 ## DW_AT_decl_line
109 .byte 11 ## DW_FORM_data1
110 .byte 73 ## DW_AT_type
111 .byte 19 ## DW_FORM_ref4
112 .byte 63 ## DW_AT_external
113 .byte 25 ## DW_FORM_flag_present
114 .byte 0 ## EOM(1)
115 .byte 0 ## EOM(2)
116 .byte 4 ## Abbreviation Code
117 .byte 36 ## DW_TAG_base_type
118 .byte 0 ## DW_CHILDREN_no
119 .byte 3 ## DW_AT_name
120 .byte 14 ## DW_FORM_strp
121 .byte 62 ## DW_AT_encoding
122 .byte 11 ## DW_FORM_data1
123 .byte 11 ## DW_AT_byte_size
124 .byte 11 ## DW_FORM_data1
125 .byte 0 ## EOM(1)
126 .byte 0 ## EOM(2)
127 .byte 0 ## EOM(3)
128 .section __DWARF,__debug_info,regular,debug
129 Lsection_info:
130 Lcu_begin0:
131 .long 92 ## Length of Unit
132 .short 4 ## DWARF version number
133 Lset0 = Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section
134 .long Lset0
135 .byte 8 ## Address Size (in bytes)
136 .byte 1 ## Abbrev [1] 0xb:0x55 DW_TAG_compile_unit
137 .long 0 ## DW_AT_producer
138 .short 12 ## DW_AT_language
139 .long 21 ## DW_AT_name
140 Lset1 = Lline_table_start0-Lsection_line ## DW_AT_stmt_list
141 .long Lset1
142 .long 31 ## DW_AT_comp_dir
143 .quad Lfunc_begin0 ## DW_AT_low_pc
144 Lset2 = Lfunc_end1-Lfunc_begin0 ## DW_AT_high_pc
145 .long Lset2
146 .byte 2 ## Abbrev [2] 0x2a:0x15 DW_TAG_subprogram
147 .quad Lfunc_begin0 ## DW_AT_low_pc
148 Lset3 = Lfunc_end0-Lfunc_begin0 ## DW_AT_high_pc
149 .long Lset3
150 .byte 1 ## DW_AT_frame_base
151 .byte 86
152 .long 44 ## DW_AT_name
153 .byte 1 ## DW_AT_decl_file
154 .byte 1 ## DW_AT_decl_line
155 ## DW_AT_external
156 .byte 3 ## Abbrev [3] 0x3f:0x19 DW_TAG_subprogram
157 .quad Lfunc_begin1 ## DW_AT_low_pc
158 Lset4 = Lfunc_end1-Lfunc_begin1 ## DW_AT_high_pc
159 .long Lset4
160 .byte 1 ## DW_AT_frame_base
161 .byte 86
162 .long 46 ## DW_AT_name
163 .byte 1 ## DW_AT_decl_file
164 .byte 3 ## DW_AT_decl_line
165 .long 88 ## DW_AT_type
166 ## DW_AT_external
167 .byte 4 ## Abbrev [4] 0x58:0x7 DW_TAG_base_type
168 .long 51 ## DW_AT_name
169 .byte 5 ## DW_AT_encoding
170 .byte 4 ## DW_AT_byte_size
171 .byte 0 ## End Of Children Mark
172 .section __DWARF,__debug_ranges,regular,debug
173 Ldebug_range:
174 .section __DWARF,__debug_macinfo,regular,debug
175 Ldebug_macinfo:
176 Lcu_macro_begin0:
177 .byte 0 ## End Of Macro List Mark
178 .section __DWARF,__apple_names,regular,debug
179 Lnames_begin:
180 .long 1212240712 ## Header Magic
181 .short 1 ## Header Version
182 .short 0 ## Header Hash Function
183 .long 2 ## Header Bucket Count
184 .long 2 ## Header Hash Count
185 .long 12 ## Header Data Length
186 .long 0 ## HeaderData Die Offset Base
187 .long 1 ## HeaderData Atom Count
188 .short 1 ## DW_ATOM_die_offset
189 .short 6 ## DW_FORM_data4
190 .long 0 ## Bucket 0
191 .long -1 ## Bucket 1
192 .long 177676 ## Hash in Bucket 0
193 .long 2090499946 ## Hash in Bucket 0
194 .long LNames1-Lnames_begin ## Offset in Bucket 0
195 .long LNames0-Lnames_begin ## Offset in Bucket 0
196 LNames1:
197 .long 44 ## g
198 .long 1 ## Num DIEs
199 .long 42
200 .long 0
201 LNames0:
202 .long 46 ## main
203 .long 1 ## Num DIEs
204 .long 63
205 .long 0
206 .section __DWARF,__apple_objc,regular,debug
207 Lobjc_begin:
208 .long 1212240712 ## Header Magic
209 .short 1 ## Header Version
210 .short 0 ## Header Hash Function
211 .long 1 ## Header Bucket Count
212 .long 0 ## Header Hash Count
213 .long 12 ## Header Data Length
214 .long 0 ## HeaderData Die Offset Base
215 .long 1 ## HeaderData Atom Count
216 .short 1 ## DW_ATOM_die_offset
217 .short 6 ## DW_FORM_data4
218 .long -1 ## Bucket 0
219 .section __DWARF,__apple_namespac,regular,debug
220 Lnamespac_begin:
221 .long 1212240712 ## Header Magic
222 .short 1 ## Header Version
223 .short 0 ## Header Hash Function
224 .long 1 ## Header Bucket Count
225 .long 0 ## Header Hash Count
226 .long 12 ## Header Data Length
227 .long 0 ## HeaderData Die Offset Base
228 .long 1 ## HeaderData Atom Count
229 .short 1 ## DW_ATOM_die_offset
230 .short 6 ## DW_FORM_data4
231 .long -1 ## Bucket 0
232 .section __DWARF,__apple_types,regular,debug
233 Ltypes_begin:
234 .long 1212240712 ## Header Magic
235 .short 1 ## Header Version
236 .short 0 ## Header Hash Function
237 .long 1 ## Header Bucket Count
238 .long 1 ## Header Hash Count
239 .long 20 ## Header Data Length
240 .long 0 ## HeaderData Die Offset Base
241 .long 3 ## HeaderData Atom Count
242 .short 1 ## DW_ATOM_die_offset
243 .short 6 ## DW_FORM_data4
244 .short 3 ## DW_ATOM_die_tag
245 .short 5 ## DW_FORM_data2
246 .short 4 ## DW_ATOM_type_flags
247 .short 11 ## DW_FORM_data1
248 .long 0 ## Bucket 0
249 .long 193495088 ## Hash in Bucket 0
250 .long Ltypes0-Ltypes_begin ## Offset in Bucket 0
251 Ltypes0:
252 .long 51 ## int
253 .long 1 ## Num DIEs
254 .long 88
255 .short 36
256 .byte 0
257 .long 0
259 .subsections_via_symbols
260 .section __DWARF,__debug_line,regular,debug
261 Lsection_line:
262 Lline_table_start0: