1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2 3--- !mach-o 4FileHeader: 5 magic: 0xFEEDFACF 6 cputype: 0x01000007 7 cpusubtype: 0x80000003 8 filetype: 0x00000002 9 ncmds: 4 10 sizeofcmds: 224 11 flags: 0x00218085 12 reserved: 0x00000000 13LoadCommands: 14 - cmd: LC_SEGMENT_64 15 cmdsize: 72 16 segname: __LINKEDIT 17 vmaddr: 4294979584 18 vmsize: 4096 19 fileoff: 1024 20 filesize: 2508 21 maxprot: 7 22 initprot: 1 23 nsects: 0 24 flags: 0 25 - cmd: LC_DYLD_INFO_ONLY 26 cmdsize: 48 27 rebase_off: 1024 28 rebase_size: 8 29 bind_off: 0 30 bind_size: 0 31 weak_bind_off: 1032 32 weak_bind_size: 96 33 lazy_bind_off: 1128 34 lazy_bind_size: 624 35 export_off: 1752 36 export_size: 48 37 - cmd: LC_SYMTAB 38 cmdsize: 24 39 symoff: 1816 40 nsyms: 30 41 stroff: 2436 42 strsize: 1096 43 - cmd: LC_DYSYMTAB 44 cmdsize: 80 45 ilocalsym: 0 46 nlocalsym: 9 47 iextdefsym: 9 48 nextdefsym: 2 49 iundefsym: 11 50 nundefsym: 19 51 tocoff: 0 52 ntoc: 0 53 modtaboff: 0 54 nmodtab: 0 55 extrefsymoff: 0 56 nextrefsyms: 0 57 indirectsymoff: 2296 58 nindirectsyms: 35 59 extreloff: 0 60 nextrel: 0 61 locreloff: 0 62 nlocrel: 0 63LinkEditData: 64 LazyBindOpcodes: 65 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 66 Imm: 2 67 ULEBExtraData: 68 - 0x0000000000000028 69 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 70 Imm: 1 71 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 72 Imm: 0 73 Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE 74 - Opcode: BIND_OPCODE_DO_BIND 75 Imm: 0 76 - Opcode: BIND_OPCODE_DONE 77 Imm: 0 78 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 79 Imm: 2 80 ULEBExtraData: 81 - 0x0000000000000030 82 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 83 Imm: 1 84 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 85 Imm: 0 86 Symbol: __ZNKSt3__18ios_base6getlocEv 87 - Opcode: BIND_OPCODE_DO_BIND 88 Imm: 0 89 - Opcode: BIND_OPCODE_DONE 90 Imm: 0 91 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 92 Imm: 2 93 ULEBExtraData: 94 - 0x0000000000000038 95 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 96 Imm: 1 97 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 98 Imm: 0 99 Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc 100 - Opcode: BIND_OPCODE_DO_BIND 101 Imm: 0 102 - Opcode: BIND_OPCODE_DONE 103 Imm: 0 104 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 105 Imm: 2 106 ULEBExtraData: 107 - 0x0000000000000040 108 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 109 Imm: 1 110 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 111 Imm: 0 112 Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev 113 - Opcode: BIND_OPCODE_DO_BIND 114 Imm: 0 115 - Opcode: BIND_OPCODE_DONE 116 Imm: 0 117 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 118 Imm: 2 119 ULEBExtraData: 120 - 0x0000000000000048 121 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 122 Imm: 1 123 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 124 Imm: 0 125 Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ 126 - Opcode: BIND_OPCODE_DO_BIND 127 Imm: 0 128 - Opcode: BIND_OPCODE_DONE 129 Imm: 0 130 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 131 Imm: 2 132 ULEBExtraData: 133 - 0x0000000000000050 134 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 135 Imm: 1 136 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 137 Imm: 0 138 Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev 139 - Opcode: BIND_OPCODE_DO_BIND 140 Imm: 0 141 - Opcode: BIND_OPCODE_DONE 142 Imm: 0 143 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 144 Imm: 2 145 ULEBExtraData: 146 - 0x0000000000000058 147 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 148 Imm: 1 149 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 150 Imm: 0 151 Symbol: __ZNSt3__16localeD1Ev 152 - Opcode: BIND_OPCODE_DO_BIND 153 Imm: 0 154 - Opcode: BIND_OPCODE_DONE 155 Imm: 0 156 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 157 Imm: 2 158 ULEBExtraData: 159 - 0x0000000000000060 160 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 161 Imm: 1 162 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 163 Imm: 0 164 Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv 165 - Opcode: BIND_OPCODE_DO_BIND 166 Imm: 0 167 - Opcode: BIND_OPCODE_DONE 168 Imm: 0 169 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 170 Imm: 2 171 ULEBExtraData: 172 - 0x0000000000000068 173 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 174 Imm: 1 175 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 176 Imm: 0 177 Symbol: __ZNSt3__18ios_base5clearEj 178 - Opcode: BIND_OPCODE_DO_BIND 179 Imm: 0 180 - Opcode: BIND_OPCODE_DONE 181 Imm: 0 182 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 183 Imm: 2 184 ULEBExtraData: 185 - 0x0000000000000070 186 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 187 Imm: 1 188 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 189 Imm: 0 190 Symbol: __ZSt9terminatev 191 - Opcode: BIND_OPCODE_DO_BIND 192 Imm: 0 193 - Opcode: BIND_OPCODE_DONE 194 Imm: 0 195 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 196 Imm: 2 197 ULEBExtraData: 198 - 0x0000000000000078 199 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 200 Imm: 1 201 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 202 Imm: 0 203 Symbol: ___cxa_begin_catch 204 - Opcode: BIND_OPCODE_DO_BIND 205 Imm: 0 206 - Opcode: BIND_OPCODE_DONE 207 Imm: 0 208 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 209 Imm: 2 210 ULEBExtraData: 211 - 0x0000000000000080 212 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 213 Imm: 1 214 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 215 Imm: 0 216 Symbol: ___cxa_end_catch 217 - Opcode: BIND_OPCODE_DO_BIND 218 Imm: 0 219 - Opcode: BIND_OPCODE_DONE 220 Imm: 0 221 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 222 Imm: 2 223 ULEBExtraData: 224 - 0x0000000000000088 225 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 226 Imm: 2 227 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 228 Imm: 0 229 Symbol: __Unwind_Resume 230 - Opcode: BIND_OPCODE_DO_BIND 231 Imm: 0 232 - Opcode: BIND_OPCODE_DONE 233 Imm: 0 234 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 235 Imm: 2 236 ULEBExtraData: 237 - 0x0000000000000090 238 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 239 Imm: 2 240 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 241 Imm: 0 242 Symbol: _memset 243 - Opcode: BIND_OPCODE_DO_BIND 244 Imm: 0 245 - Opcode: BIND_OPCODE_DONE 246 Imm: 0 247 - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 248 Imm: 2 249 ULEBExtraData: 250 - 0x0000000000000098 251 - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 252 Imm: 2 253 - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 254 Imm: 0 255 Symbol: _strlen 256 - Opcode: BIND_OPCODE_DO_BIND 257 Imm: 0 258 - Opcode: BIND_OPCODE_DONE 259 Imm: 0 260 - Opcode: BIND_OPCODE_DONE 261 Imm: 0 262 - Opcode: BIND_OPCODE_DONE 263 Imm: 0 264... 265 266#CHECK: LinkEditData: 267#CHECK: LazyBindOpcodes: 268#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 269#CHECK: Imm: 2 270#CHECK: ULEBExtraData: [ 0x28 ] 271#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 272#CHECK: Imm: 1 273#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 274#CHECK: Imm: 0 275#CHECK: Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE 276#CHECK: - Opcode: BIND_OPCODE_DO_BIND 277#CHECK: Imm: 0 278#CHECK: - Opcode: BIND_OPCODE_DONE 279#CHECK: Imm: 0 280#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 281#CHECK: Imm: 2 282#CHECK: ULEBExtraData: [ 0x30 ] 283#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 284#CHECK: Imm: 1 285#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 286#CHECK: Imm: 0 287#CHECK: Symbol: __ZNKSt3__18ios_base6getlocEv 288#CHECK: - Opcode: BIND_OPCODE_DO_BIND 289#CHECK: Imm: 0 290#CHECK: - Opcode: BIND_OPCODE_DONE 291#CHECK: Imm: 0 292#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 293#CHECK: Imm: 2 294#CHECK: ULEBExtraData: [ 0x38 ] 295#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 296#CHECK: Imm: 1 297#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 298#CHECK: Imm: 0 299#CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc 300#CHECK: - Opcode: BIND_OPCODE_DO_BIND 301#CHECK: Imm: 0 302#CHECK: - Opcode: BIND_OPCODE_DONE 303#CHECK: Imm: 0 304#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 305#CHECK: Imm: 2 306#CHECK: ULEBExtraData: [ 0x40 ] 307#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 308#CHECK: Imm: 1 309#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 310#CHECK: Imm: 0 311#CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev 312#CHECK: - Opcode: BIND_OPCODE_DO_BIND 313#CHECK: Imm: 0 314#CHECK: - Opcode: BIND_OPCODE_DONE 315#CHECK: Imm: 0 316#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 317#CHECK: Imm: 2 318#CHECK: ULEBExtraData: [ 0x48 ] 319#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 320#CHECK: Imm: 1 321#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 322#CHECK: Imm: 0 323#CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ 324#CHECK: - Opcode: BIND_OPCODE_DO_BIND 325#CHECK: Imm: 0 326#CHECK: - Opcode: BIND_OPCODE_DONE 327#CHECK: Imm: 0 328#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 329#CHECK: Imm: 2 330#CHECK: ULEBExtraData: [ 0x50 ] 331#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 332#CHECK: Imm: 1 333#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 334#CHECK: Imm: 0 335#CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev 336#CHECK: - Opcode: BIND_OPCODE_DO_BIND 337#CHECK: Imm: 0 338#CHECK: - Opcode: BIND_OPCODE_DONE 339#CHECK: Imm: 0 340#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 341#CHECK: Imm: 2 342#CHECK: ULEBExtraData: [ 0x58 ] 343#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 344#CHECK: Imm: 1 345#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 346#CHECK: Imm: 0 347#CHECK: Symbol: __ZNSt3__16localeD1Ev 348#CHECK: - Opcode: BIND_OPCODE_DO_BIND 349#CHECK: Imm: 0 350#CHECK: - Opcode: BIND_OPCODE_DONE 351#CHECK: Imm: 0 352#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 353#CHECK: Imm: 2 354#CHECK: ULEBExtraData: [ 0x60 ] 355#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 356#CHECK: Imm: 1 357#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 358#CHECK: Imm: 0 359#CHECK: Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv 360#CHECK: - Opcode: BIND_OPCODE_DO_BIND 361#CHECK: Imm: 0 362#CHECK: - Opcode: BIND_OPCODE_DONE 363#CHECK: Imm: 0 364#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 365#CHECK: Imm: 2 366#CHECK: ULEBExtraData: [ 0x68 ] 367#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 368#CHECK: Imm: 1 369#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 370#CHECK: Imm: 0 371#CHECK: Symbol: __ZNSt3__18ios_base5clearEj 372#CHECK: - Opcode: BIND_OPCODE_DO_BIND 373#CHECK: Imm: 0 374#CHECK: - Opcode: BIND_OPCODE_DONE 375#CHECK: Imm: 0 376#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 377#CHECK: Imm: 2 378#CHECK: ULEBExtraData: [ 0x70 ] 379#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 380#CHECK: Imm: 1 381#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 382#CHECK: Imm: 0 383#CHECK: Symbol: __ZSt9terminatev 384#CHECK: - Opcode: BIND_OPCODE_DO_BIND 385#CHECK: Imm: 0 386#CHECK: - Opcode: BIND_OPCODE_DONE 387#CHECK: Imm: 0 388#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 389#CHECK: Imm: 2 390#CHECK: ULEBExtraData: [ 0x78 ] 391#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 392#CHECK: Imm: 1 393#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 394#CHECK: Imm: 0 395#CHECK: Symbol: ___cxa_begin_catch 396#CHECK: - Opcode: BIND_OPCODE_DO_BIND 397#CHECK: Imm: 0 398#CHECK: - Opcode: BIND_OPCODE_DONE 399#CHECK: Imm: 0 400#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 401#CHECK: Imm: 2 402#CHECK: ULEBExtraData: [ 0x80 ] 403#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 404#CHECK: Imm: 1 405#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 406#CHECK: Imm: 0 407#CHECK: Symbol: ___cxa_end_catch 408#CHECK: - Opcode: BIND_OPCODE_DO_BIND 409#CHECK: Imm: 0 410#CHECK: - Opcode: BIND_OPCODE_DONE 411#CHECK: Imm: 0 412#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 413#CHECK: Imm: 2 414#CHECK: ULEBExtraData: [ 0x88 ] 415#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 416#CHECK: Imm: 2 417#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 418#CHECK: Imm: 0 419#CHECK: Symbol: __Unwind_Resume 420#CHECK: - Opcode: BIND_OPCODE_DO_BIND 421#CHECK: Imm: 0 422#CHECK: - Opcode: BIND_OPCODE_DONE 423#CHECK: Imm: 0 424#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 425#CHECK: Imm: 2 426#CHECK: ULEBExtraData: [ 0x90 ] 427#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 428#CHECK: Imm: 2 429#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 430#CHECK: Imm: 0 431#CHECK: Symbol: _memset 432#CHECK: - Opcode: BIND_OPCODE_DO_BIND 433#CHECK: Imm: 0 434#CHECK: - Opcode: BIND_OPCODE_DONE 435#CHECK: Imm: 0 436#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 437#CHECK: Imm: 2 438#CHECK: ULEBExtraData: [ 0x98 ] 439#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 440#CHECK: Imm: 2 441#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 442#CHECK: Imm: 0 443#CHECK: Symbol: _strlen 444#CHECK: - Opcode: BIND_OPCODE_DO_BIND 445#CHECK: Imm: 0 446#CHECK: - Opcode: BIND_OPCODE_DONE 447#CHECK: Imm: 0 448#CHECK: - Opcode: BIND_OPCODE_DONE 449#CHECK: Imm: 0 450#CHECK: - Opcode: BIND_OPCODE_DONE 451#CHECK: Imm: 0 452