1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
25 - cmd: LC_DYLD_INFO_ONLY
65 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
69 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
71 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
73 Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE
74 - Opcode: BIND_OPCODE_DO_BIND
76 - Opcode: BIND_OPCODE_DONE
78 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
82 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
84 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
86 Symbol: __ZNKSt3__18ios_base6getlocEv
87 - Opcode: BIND_OPCODE_DO_BIND
89 - Opcode: BIND_OPCODE_DONE
91 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
95 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
97 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
99 Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
100 - Opcode: BIND_OPCODE_DO_BIND
102 - Opcode: BIND_OPCODE_DONE
104 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
108 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
110 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
112 Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
113 - Opcode: BIND_OPCODE_DO_BIND
115 - Opcode: BIND_OPCODE_DONE
117 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
121 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
123 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
125 Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
126 - Opcode: BIND_OPCODE_DO_BIND
128 - Opcode: BIND_OPCODE_DONE
130 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
134 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
136 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
138 Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
139 - Opcode: BIND_OPCODE_DO_BIND
141 - Opcode: BIND_OPCODE_DONE
143 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
147 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
149 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
151 Symbol: __ZNSt3__16localeD1Ev
152 - Opcode: BIND_OPCODE_DO_BIND
154 - Opcode: BIND_OPCODE_DONE
156 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
160 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
162 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
164 Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
165 - Opcode: BIND_OPCODE_DO_BIND
167 - Opcode: BIND_OPCODE_DONE
169 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
173 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
175 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
177 Symbol: __ZNSt3__18ios_base5clearEj
178 - Opcode: BIND_OPCODE_DO_BIND
180 - Opcode: BIND_OPCODE_DONE
182 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
186 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
188 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
190 Symbol: __ZSt9terminatev
191 - Opcode: BIND_OPCODE_DO_BIND
193 - Opcode: BIND_OPCODE_DONE
195 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
199 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
201 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
203 Symbol: ___cxa_begin_catch
204 - Opcode: BIND_OPCODE_DO_BIND
206 - Opcode: BIND_OPCODE_DONE
208 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
212 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
214 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
216 Symbol: ___cxa_end_catch
217 - Opcode: BIND_OPCODE_DO_BIND
219 - Opcode: BIND_OPCODE_DONE
221 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
225 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
227 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
229 Symbol: __Unwind_Resume
230 - Opcode: BIND_OPCODE_DO_BIND
232 - Opcode: BIND_OPCODE_DONE
234 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
238 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
240 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
243 - Opcode: BIND_OPCODE_DO_BIND
245 - Opcode: BIND_OPCODE_DONE
247 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
251 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
253 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
256 - Opcode: BIND_OPCODE_DO_BIND
258 - Opcode: BIND_OPCODE_DONE
260 - Opcode: BIND_OPCODE_DONE
262 - Opcode: BIND_OPCODE_DONE
266 #CHECK: LinkEditData:
267 #CHECK: LazyBindOpcodes:
268 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
270 #CHECK: ULEBExtraData:
271 #CHECK: - 0x0000000000000028
272 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
274 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
276 #CHECK: Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE
277 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
279 #CHECK: - Opcode: BIND_OPCODE_DONE
281 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
283 #CHECK: ULEBExtraData:
284 #CHECK: - 0x0000000000000030
285 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
287 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
289 #CHECK: Symbol: __ZNKSt3__18ios_base6getlocEv
290 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
292 #CHECK: - Opcode: BIND_OPCODE_DONE
294 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
296 #CHECK: ULEBExtraData:
297 #CHECK: - 0x0000000000000038
298 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
300 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
302 #CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
303 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
305 #CHECK: - Opcode: BIND_OPCODE_DONE
307 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
309 #CHECK: ULEBExtraData:
310 #CHECK: - 0x0000000000000040
311 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
313 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
315 #CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
316 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
318 #CHECK: - Opcode: BIND_OPCODE_DONE
320 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
322 #CHECK: ULEBExtraData:
323 #CHECK: - 0x0000000000000048
324 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
326 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
328 #CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
329 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
331 #CHECK: - Opcode: BIND_OPCODE_DONE
333 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
335 #CHECK: ULEBExtraData:
336 #CHECK: - 0x0000000000000050
337 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
339 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
341 #CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
342 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
344 #CHECK: - Opcode: BIND_OPCODE_DONE
346 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
348 #CHECK: ULEBExtraData:
349 #CHECK: - 0x0000000000000058
350 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
352 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
354 #CHECK: Symbol: __ZNSt3__16localeD1Ev
355 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
357 #CHECK: - Opcode: BIND_OPCODE_DONE
359 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
361 #CHECK: ULEBExtraData:
362 #CHECK: - 0x0000000000000060
363 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
365 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
367 #CHECK: Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
368 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
370 #CHECK: - Opcode: BIND_OPCODE_DONE
372 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
374 #CHECK: ULEBExtraData:
375 #CHECK: - 0x0000000000000068
376 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
378 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
380 #CHECK: Symbol: __ZNSt3__18ios_base5clearEj
381 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
383 #CHECK: - Opcode: BIND_OPCODE_DONE
385 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
387 #CHECK: ULEBExtraData:
388 #CHECK: - 0x0000000000000070
389 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
391 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
393 #CHECK: Symbol: __ZSt9terminatev
394 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
396 #CHECK: - Opcode: BIND_OPCODE_DONE
398 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
400 #CHECK: ULEBExtraData:
401 #CHECK: - 0x0000000000000078
402 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
404 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
406 #CHECK: Symbol: ___cxa_begin_catch
407 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
409 #CHECK: - Opcode: BIND_OPCODE_DONE
411 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
413 #CHECK: ULEBExtraData:
414 #CHECK: - 0x0000000000000080
415 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
417 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
419 #CHECK: Symbol: ___cxa_end_catch
420 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
422 #CHECK: - Opcode: BIND_OPCODE_DONE
424 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
426 #CHECK: ULEBExtraData:
427 #CHECK: - 0x0000000000000088
428 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
430 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
432 #CHECK: Symbol: __Unwind_Resume
433 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
435 #CHECK: - Opcode: BIND_OPCODE_DONE
437 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
439 #CHECK: ULEBExtraData:
440 #CHECK: - 0x0000000000000090
441 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
443 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
445 #CHECK: Symbol: _memset
446 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
448 #CHECK: - Opcode: BIND_OPCODE_DONE
450 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
452 #CHECK: ULEBExtraData:
453 #CHECK: - 0x0000000000000098
454 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
456 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
458 #CHECK: Symbol: _strlen
459 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
461 #CHECK: - Opcode: BIND_OPCODE_DONE
463 #CHECK: - Opcode: BIND_OPCODE_DONE
465 #CHECK: - Opcode: BIND_OPCODE_DONE