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: [ 0x28 ]
271 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
273 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
275 #CHECK: Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE
276 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
278 #CHECK: - Opcode: BIND_OPCODE_DONE
280 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
282 #CHECK: ULEBExtraData: [ 0x30 ]
283 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
285 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
287 #CHECK: Symbol: __ZNKSt3__18ios_base6getlocEv
288 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
290 #CHECK: - Opcode: BIND_OPCODE_DONE
292 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
294 #CHECK: ULEBExtraData: [ 0x38 ]
295 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
297 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
299 #CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
300 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
302 #CHECK: - Opcode: BIND_OPCODE_DONE
304 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
306 #CHECK: ULEBExtraData: [ 0x40 ]
307 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
309 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
311 #CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
312 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
314 #CHECK: - Opcode: BIND_OPCODE_DONE
316 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
318 #CHECK: ULEBExtraData: [ 0x48 ]
319 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
321 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
323 #CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
324 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
326 #CHECK: - Opcode: BIND_OPCODE_DONE
328 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
330 #CHECK: ULEBExtraData: [ 0x50 ]
331 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
333 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
335 #CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
336 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
338 #CHECK: - Opcode: BIND_OPCODE_DONE
340 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
342 #CHECK: ULEBExtraData: [ 0x58 ]
343 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
345 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
347 #CHECK: Symbol: __ZNSt3__16localeD1Ev
348 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
350 #CHECK: - Opcode: BIND_OPCODE_DONE
352 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
354 #CHECK: ULEBExtraData: [ 0x60 ]
355 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
357 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
359 #CHECK: Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
360 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
362 #CHECK: - Opcode: BIND_OPCODE_DONE
364 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
366 #CHECK: ULEBExtraData: [ 0x68 ]
367 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
369 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
371 #CHECK: Symbol: __ZNSt3__18ios_base5clearEj
372 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
374 #CHECK: - Opcode: BIND_OPCODE_DONE
376 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
378 #CHECK: ULEBExtraData: [ 0x70 ]
379 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
381 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
383 #CHECK: Symbol: __ZSt9terminatev
384 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
386 #CHECK: - Opcode: BIND_OPCODE_DONE
388 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
390 #CHECK: ULEBExtraData: [ 0x78 ]
391 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
393 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
395 #CHECK: Symbol: ___cxa_begin_catch
396 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
398 #CHECK: - Opcode: BIND_OPCODE_DONE
400 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
402 #CHECK: ULEBExtraData: [ 0x80 ]
403 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
405 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
407 #CHECK: Symbol: ___cxa_end_catch
408 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
410 #CHECK: - Opcode: BIND_OPCODE_DONE
412 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
414 #CHECK: ULEBExtraData: [ 0x88 ]
415 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
417 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
419 #CHECK: Symbol: __Unwind_Resume
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: [ 0x90 ]
427 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
429 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
431 #CHECK: Symbol: _memset
432 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
434 #CHECK: - Opcode: BIND_OPCODE_DONE
436 #CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
438 #CHECK: ULEBExtraData: [ 0x98 ]
439 #CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
441 #CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
443 #CHECK: Symbol: _strlen
444 #CHECK: - Opcode: BIND_OPCODE_DO_BIND
446 #CHECK: - Opcode: BIND_OPCODE_DONE
448 #CHECK: - Opcode: BIND_OPCODE_DONE
450 #CHECK: - Opcode: BIND_OPCODE_DONE