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: 271#CHECK: - 0x0000000000000028 272#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 273#CHECK: Imm: 1 274#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 275#CHECK: Imm: 0 276#CHECK: Symbol: __ZNKSt3__16locale9use_facetERNS0_2idE 277#CHECK: - Opcode: BIND_OPCODE_DO_BIND 278#CHECK: Imm: 0 279#CHECK: - Opcode: BIND_OPCODE_DONE 280#CHECK: Imm: 0 281#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 282#CHECK: Imm: 2 283#CHECK: ULEBExtraData: 284#CHECK: - 0x0000000000000030 285#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 286#CHECK: Imm: 1 287#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 288#CHECK: Imm: 0 289#CHECK: Symbol: __ZNKSt3__18ios_base6getlocEv 290#CHECK: - Opcode: BIND_OPCODE_DO_BIND 291#CHECK: Imm: 0 292#CHECK: - Opcode: BIND_OPCODE_DONE 293#CHECK: Imm: 0 294#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 295#CHECK: Imm: 2 296#CHECK: ULEBExtraData: 297#CHECK: - 0x0000000000000038 298#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 299#CHECK: Imm: 1 300#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 301#CHECK: Imm: 0 302#CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc 303#CHECK: - Opcode: BIND_OPCODE_DO_BIND 304#CHECK: Imm: 0 305#CHECK: - Opcode: BIND_OPCODE_DONE 306#CHECK: Imm: 0 307#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 308#CHECK: Imm: 2 309#CHECK: ULEBExtraData: 310#CHECK: - 0x0000000000000040 311#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 312#CHECK: Imm: 1 313#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 314#CHECK: Imm: 0 315#CHECK: Symbol: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev 316#CHECK: - Opcode: BIND_OPCODE_DO_BIND 317#CHECK: Imm: 0 318#CHECK: - Opcode: BIND_OPCODE_DONE 319#CHECK: Imm: 0 320#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 321#CHECK: Imm: 2 322#CHECK: ULEBExtraData: 323#CHECK: - 0x0000000000000048 324#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 325#CHECK: Imm: 1 326#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 327#CHECK: Imm: 0 328#CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ 329#CHECK: - Opcode: BIND_OPCODE_DO_BIND 330#CHECK: Imm: 0 331#CHECK: - Opcode: BIND_OPCODE_DONE 332#CHECK: Imm: 0 333#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 334#CHECK: Imm: 2 335#CHECK: ULEBExtraData: 336#CHECK: - 0x0000000000000050 337#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 338#CHECK: Imm: 1 339#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 340#CHECK: Imm: 0 341#CHECK: Symbol: __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev 342#CHECK: - Opcode: BIND_OPCODE_DO_BIND 343#CHECK: Imm: 0 344#CHECK: - Opcode: BIND_OPCODE_DONE 345#CHECK: Imm: 0 346#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 347#CHECK: Imm: 2 348#CHECK: ULEBExtraData: 349#CHECK: - 0x0000000000000058 350#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 351#CHECK: Imm: 1 352#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 353#CHECK: Imm: 0 354#CHECK: Symbol: __ZNSt3__16localeD1Ev 355#CHECK: - Opcode: BIND_OPCODE_DO_BIND 356#CHECK: Imm: 0 357#CHECK: - Opcode: BIND_OPCODE_DONE 358#CHECK: Imm: 0 359#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 360#CHECK: Imm: 2 361#CHECK: ULEBExtraData: 362#CHECK: - 0x0000000000000060 363#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 364#CHECK: Imm: 1 365#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 366#CHECK: Imm: 0 367#CHECK: Symbol: __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv 368#CHECK: - Opcode: BIND_OPCODE_DO_BIND 369#CHECK: Imm: 0 370#CHECK: - Opcode: BIND_OPCODE_DONE 371#CHECK: Imm: 0 372#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 373#CHECK: Imm: 2 374#CHECK: ULEBExtraData: 375#CHECK: - 0x0000000000000068 376#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 377#CHECK: Imm: 1 378#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 379#CHECK: Imm: 0 380#CHECK: Symbol: __ZNSt3__18ios_base5clearEj 381#CHECK: - Opcode: BIND_OPCODE_DO_BIND 382#CHECK: Imm: 0 383#CHECK: - Opcode: BIND_OPCODE_DONE 384#CHECK: Imm: 0 385#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 386#CHECK: Imm: 2 387#CHECK: ULEBExtraData: 388#CHECK: - 0x0000000000000070 389#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 390#CHECK: Imm: 1 391#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 392#CHECK: Imm: 0 393#CHECK: Symbol: __ZSt9terminatev 394#CHECK: - Opcode: BIND_OPCODE_DO_BIND 395#CHECK: Imm: 0 396#CHECK: - Opcode: BIND_OPCODE_DONE 397#CHECK: Imm: 0 398#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 399#CHECK: Imm: 2 400#CHECK: ULEBExtraData: 401#CHECK: - 0x0000000000000078 402#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 403#CHECK: Imm: 1 404#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 405#CHECK: Imm: 0 406#CHECK: Symbol: ___cxa_begin_catch 407#CHECK: - Opcode: BIND_OPCODE_DO_BIND 408#CHECK: Imm: 0 409#CHECK: - Opcode: BIND_OPCODE_DONE 410#CHECK: Imm: 0 411#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 412#CHECK: Imm: 2 413#CHECK: ULEBExtraData: 414#CHECK: - 0x0000000000000080 415#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 416#CHECK: Imm: 1 417#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 418#CHECK: Imm: 0 419#CHECK: Symbol: ___cxa_end_catch 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: 427#CHECK: - 0x0000000000000088 428#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 429#CHECK: Imm: 2 430#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 431#CHECK: Imm: 0 432#CHECK: Symbol: __Unwind_Resume 433#CHECK: - Opcode: BIND_OPCODE_DO_BIND 434#CHECK: Imm: 0 435#CHECK: - Opcode: BIND_OPCODE_DONE 436#CHECK: Imm: 0 437#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 438#CHECK: Imm: 2 439#CHECK: ULEBExtraData: 440#CHECK: - 0x0000000000000090 441#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 442#CHECK: Imm: 2 443#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 444#CHECK: Imm: 0 445#CHECK: Symbol: _memset 446#CHECK: - Opcode: BIND_OPCODE_DO_BIND 447#CHECK: Imm: 0 448#CHECK: - Opcode: BIND_OPCODE_DONE 449#CHECK: Imm: 0 450#CHECK: - Opcode: BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB 451#CHECK: Imm: 2 452#CHECK: ULEBExtraData: 453#CHECK: - 0x0000000000000098 454#CHECK: - Opcode: BIND_OPCODE_SET_DYLIB_ORDINAL_IMM 455#CHECK: Imm: 2 456#CHECK: - Opcode: BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM 457#CHECK: Imm: 0 458#CHECK: Symbol: _strlen 459#CHECK: - Opcode: BIND_OPCODE_DO_BIND 460#CHECK: Imm: 0 461#CHECK: - Opcode: BIND_OPCODE_DONE 462#CHECK: Imm: 0 463#CHECK: - Opcode: BIND_OPCODE_DONE 464#CHECK: Imm: 0 465#CHECK: - Opcode: BIND_OPCODE_DONE 466#CHECK: Imm: 0 467