1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s 2 3 --- !mach-o 4 FileHeader: 5 magic: 0xFEEDFACF 6 cputype: 0x01000007 7 cpusubtype: 0x80000003 8 filetype: 0x00000002 9 ncmds: 16 10 sizeofcmds: 1408 11 flags: 0x00218085 12 reserved: 0x00000000 13 LoadCommands: 14 - cmd: LC_SEGMENT_64 15 cmdsize: 72 16 segname: __PAGEZERO 17 vmaddr: 0 18 vmsize: 4294967296 19 fileoff: 0 20 filesize: 0 21 maxprot: 0 22 initprot: 0 23 nsects: 0 24 flags: 0 25 - cmd: LC_SEGMENT_64 26 cmdsize: 552 27 segname: __TEXT 28 vmaddr: 4294967296 29 vmsize: 8192 30 fileoff: 0 31 filesize: 8192 32 maxprot: 7 33 initprot: 5 34 nsects: 6 35 flags: 0 36 Sections: 37 - cmd: LC_SEGMENT_64 38 cmdsize: 312 39 segname: __DATA 40 vmaddr: 4294975488 41 vmsize: 4096 42 fileoff: 8192 43 filesize: 4096 44 maxprot: 7 45 initprot: 3 46 nsects: 3 47 flags: 0 48 Sections: 49 - cmd: LC_SEGMENT_64 50 cmdsize: 72 51 segname: __LINKEDIT 52 vmaddr: 4294979584 53 vmsize: 4096 54 fileoff: 12288 55 filesize: 2508 56 maxprot: 7 57 initprot: 1 58 nsects: 0 59 flags: 0 60 - cmd: LC_DYLD_INFO_ONLY 61 cmdsize: 48 62 rebase_off: 12288 63 rebase_size: 8 64 bind_off: 12296 65 bind_size: 96 66 weak_bind_off: 0 67 weak_bind_size: 0 68 lazy_bind_off: 12392 69 lazy_bind_size: 624 70 export_off: 13016 71 export_size: 48 72 - cmd: LC_SYMTAB 73 cmdsize: 24 74 symoff: 13080 75 nsyms: 30 76 stroff: 13700 77 strsize: 1096 78 - cmd: LC_DYSYMTAB 79 cmdsize: 80 80 ilocalsym: 0 81 nlocalsym: 9 82 iextdefsym: 9 83 nextdefsym: 2 84 iundefsym: 11 85 nundefsym: 19 86 tocoff: 0 87 ntoc: 0 88 modtaboff: 0 89 nmodtab: 0 90 extrefsymoff: 0 91 nextrefsyms: 0 92 indirectsymoff: 13560 93 nindirectsyms: 35 94 extreloff: 0 95 nextrel: 0 96 locreloff: 0 97 nlocrel: 0 98 - cmd: LC_LOAD_DYLINKER 99 cmdsize: 32 100 name: 12 101 PayloadString: /usr/lib/dyld 102 ZeroPadBytes: 7 103 - cmd: LC_UUID 104 cmdsize: 24 105 uuid: 461A1B28-822F-3F38-B670-645419E636F5 106 - cmd: LC_VERSION_MIN_MACOSX 107 cmdsize: 16 108 version: 658176 109 sdk: 658176 110 - cmd: LC_SOURCE_VERSION 111 cmdsize: 16 112 version: 0 113 - cmd: LC_MAIN 114 cmdsize: 24 115 entryoff: 4448 116 stacksize: 0 117 - cmd: LC_LOAD_DYLIB 118 cmdsize: 48 119 dylib: 120 name: 24 121 timestamp: 2 122 current_version: 7864576 123 compatibility_version: 65536 124 PayloadString: '/usr/lib/libc++.1.dylib' 125 ZeroPadBytes: 1 126 - cmd: LC_LOAD_DYLIB 127 cmdsize: 56 128 dylib: 129 name: 24 130 timestamp: 2 131 current_version: 80349697 132 compatibility_version: 65536 133 PayloadString: /usr/lib/libSystem.B.dylib 134 ZeroPadBytes: 6 135 - cmd: LC_FUNCTION_STARTS 136 cmdsize: 16 137 dataoff: 13064 138 datasize: 16 139 - cmd: LC_DATA_IN_CODE 140 cmdsize: 16 141 dataoff: 13080 142 datasize: 0 143 LinkEditData: 144 NameList: 145 - n_strx: 2 146 n_type: 0x1E 147 n_sect: 1 148 n_desc: 128 149 n_value: 4294971808 150 - n_strx: 69 151 n_type: 0x1E 152 n_sect: 1 153 n_desc: 128 154 n_value: 4294971888 155 - n_strx: 166 156 n_type: 0x1E 157 n_sect: 1 158 n_desc: 128 159 n_value: 4294973024 160 - n_strx: 204 161 n_type: 0x1E 162 n_sect: 1 163 n_desc: 128 164 n_value: 4294973056 165 - n_strx: 320 166 n_type: 0x1E 167 n_sect: 1 168 n_desc: 128 169 n_value: 4294974784 170 - n_strx: 344 171 n_type: 0x1E 172 n_sect: 1 173 n_desc: 128 174 n_value: 4294974800 175 - n_strx: 387 176 n_type: 0x1E 177 n_sect: 1 178 n_desc: 128 179 n_value: 4294974832 180 - n_strx: 420 181 n_type: 0x0E 182 n_sect: 4 183 n_desc: 0 184 n_value: 4294975104 185 - n_strx: 438 186 n_type: 0x0E 187 n_sect: 4 188 n_desc: 0 189 n_value: 4294975280 190 - n_strx: 456 191 n_type: 0x0F 192 n_sect: 1 193 n_desc: 16 194 n_value: 4294967296 195 - n_strx: 476 196 n_type: 0x0F 197 n_sect: 1 198 n_desc: 0 199 n_value: 4294971744 200 - n_strx: 482 201 n_type: 0x01 202 n_sect: 0 203 n_desc: 512 204 n_value: 0 205 - n_strx: 498 206 n_type: 0x01 207 n_sect: 0 208 n_desc: 256 209 n_value: 0 210 - n_strx: 537 211 n_type: 0x01 212 n_sect: 0 213 n_desc: 256 214 n_value: 0 215 - n_strx: 567 216 n_type: 0x01 217 n_sect: 0 218 n_desc: 256 219 n_value: 0 220 - n_strx: 642 221 n_type: 0x01 222 n_sect: 0 223 n_desc: 256 224 n_value: 0 225 - n_strx: 711 226 n_type: 0x01 227 n_sect: 0 228 n_desc: 256 229 n_value: 0 230 - n_strx: 774 231 n_type: 0x01 232 n_sect: 0 233 n_desc: 256 234 n_value: 0 235 - n_strx: 834 236 n_type: 0x01 237 n_sect: 0 238 n_desc: 256 239 n_value: 0 240 - n_strx: 851 241 n_type: 0x01 242 n_sect: 0 243 n_desc: 256 244 n_value: 0 245 - n_strx: 875 246 n_type: 0x01 247 n_sect: 0 248 n_desc: 256 249 n_value: 0 250 - n_strx: 897 251 n_type: 0x01 252 n_sect: 0 253 n_desc: 256 254 n_value: 0 255 - n_strx: 954 256 n_type: 0x01 257 n_sect: 0 258 n_desc: 256 259 n_value: 0 260 - n_strx: 982 261 n_type: 0x01 262 n_sect: 0 263 n_desc: 256 264 n_value: 0 265 - n_strx: 999 266 n_type: 0x01 267 n_sect: 0 268 n_desc: 256 269 n_value: 0 270 - n_strx: 1018 271 n_type: 0x01 272 n_sect: 0 273 n_desc: 256 274 n_value: 0 275 - n_strx: 1035 276 n_type: 0x01 277 n_sect: 0 278 n_desc: 256 279 n_value: 0 280 - n_strx: 1057 281 n_type: 0x01 282 n_sect: 0 283 n_desc: 512 284 n_value: 0 285 - n_strx: 1065 286 n_type: 0x01 287 n_sect: 0 288 n_desc: 512 289 n_value: 0 290 - n_strx: 1073 291 n_type: 0x01 292 n_sect: 0 293 n_desc: 512 294 n_value: 0 295 StringTable: 296 - ' ' 297 - __ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc 298 - __ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m 299 - __ZNSt3__111char_traitsIcE6lengthEPKc 300 - __ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_ 301 - ___clang_call_terminate 302 - __ZNSt3__111char_traitsIcE11eq_int_typeEii 303 - __ZNSt3__111char_traitsIcE3eofEv 304 - GCC_except_table2 305 - GCC_except_table4 306 - __mh_execute_header 307 - _main 308 - __Unwind_Resume 309 - __ZNKSt3__16locale9use_facetERNS0_2idE 310 - __ZNKSt3__18ios_base6getlocEv 311 - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc 312 - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev 313 - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ 314 - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev 315 - __ZNSt3__14coutE 316 - __ZNSt3__15ctypeIcE2idE 317 - __ZNSt3__16localeD1Ev 318 - __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv 319 - __ZNSt3__18ios_base5clearEj 320 - __ZSt9terminatev 321 - ___cxa_begin_catch 322 - ___cxa_end_catch 323 - ___gxx_personality_v0 324 - _memset 325 - _strlen 326 - dyld_stub_binder 327 ... 328 329 #CHECK: NameList: 330 #CHECK: - n_strx: 2 331 #CHECK: n_type: 0x1E 332 #CHECK: n_sect: 1 333 #CHECK: n_desc: 128 334 #CHECK: n_value: 4294971808 335 #CHECK: - n_strx: 69 336 #CHECK: n_type: 0x1E 337 #CHECK: n_sect: 1 338 #CHECK: n_desc: 128 339 #CHECK: n_value: 4294971888 340 #CHECK: - n_strx: 166 341 #CHECK: n_type: 0x1E 342 #CHECK: n_sect: 1 343 #CHECK: n_desc: 128 344 #CHECK: n_value: 4294973024 345 #CHECK: - n_strx: 204 346 #CHECK: n_type: 0x1E 347 #CHECK: n_sect: 1 348 #CHECK: n_desc: 128 349 #CHECK: n_value: 4294973056 350 #CHECK: - n_strx: 320 351 #CHECK: n_type: 0x1E 352 #CHECK: n_sect: 1 353 #CHECK: n_desc: 128 354 #CHECK: n_value: 4294974784 355 #CHECK: - n_strx: 344 356 #CHECK: n_type: 0x1E 357 #CHECK: n_sect: 1 358 #CHECK: n_desc: 128 359 #CHECK: n_value: 4294974800 360 #CHECK: - n_strx: 387 361 #CHECK: n_type: 0x1E 362 #CHECK: n_sect: 1 363 #CHECK: n_desc: 128 364 #CHECK: n_value: 4294974832 365 #CHECK: - n_strx: 420 366 #CHECK: n_type: 0x0E 367 #CHECK: n_sect: 4 368 #CHECK: n_desc: 0 369 #CHECK: n_value: 4294975104 370 #CHECK: - n_strx: 438 371 #CHECK: n_type: 0x0E 372 #CHECK: n_sect: 4 373 #CHECK: n_desc: 0 374 #CHECK: n_value: 4294975280 375 #CHECK: - n_strx: 456 376 #CHECK: n_type: 0x0F 377 #CHECK: n_sect: 1 378 #CHECK: n_desc: 16 379 #CHECK: n_value: 4294967296 380 #CHECK: - n_strx: 476 381 #CHECK: n_type: 0x0F 382 #CHECK: n_sect: 1 383 #CHECK: n_desc: 0 384 #CHECK: n_value: 4294971744 385 #CHECK: - n_strx: 482 386 #CHECK: n_type: 0x01 387 #CHECK: n_sect: 0 388 #CHECK: n_desc: 512 389 #CHECK: n_value: 0 390 #CHECK: - n_strx: 498 391 #CHECK: n_type: 0x01 392 #CHECK: n_sect: 0 393 #CHECK: n_desc: 256 394 #CHECK: n_value: 0 395 #CHECK: - n_strx: 537 396 #CHECK: n_type: 0x01 397 #CHECK: n_sect: 0 398 #CHECK: n_desc: 256 399 #CHECK: n_value: 0 400 #CHECK: - n_strx: 567 401 #CHECK: n_type: 0x01 402 #CHECK: n_sect: 0 403 #CHECK: n_desc: 256 404 #CHECK: n_value: 0 405 #CHECK: - n_strx: 642 406 #CHECK: n_type: 0x01 407 #CHECK: n_sect: 0 408 #CHECK: n_desc: 256 409 #CHECK: n_value: 0 410 #CHECK: - n_strx: 711 411 #CHECK: n_type: 0x01 412 #CHECK: n_sect: 0 413 #CHECK: n_desc: 256 414 #CHECK: n_value: 0 415 #CHECK: - n_strx: 774 416 #CHECK: n_type: 0x01 417 #CHECK: n_sect: 0 418 #CHECK: n_desc: 256 419 #CHECK: n_value: 0 420 #CHECK: - n_strx: 834 421 #CHECK: n_type: 0x01 422 #CHECK: n_sect: 0 423 #CHECK: n_desc: 256 424 #CHECK: n_value: 0 425 #CHECK: - n_strx: 851 426 #CHECK: n_type: 0x01 427 #CHECK: n_sect: 0 428 #CHECK: n_desc: 256 429 #CHECK: n_value: 0 430 #CHECK: - n_strx: 875 431 #CHECK: n_type: 0x01 432 #CHECK: n_sect: 0 433 #CHECK: n_desc: 256 434 #CHECK: n_value: 0 435 #CHECK: - n_strx: 897 436 #CHECK: n_type: 0x01 437 #CHECK: n_sect: 0 438 #CHECK: n_desc: 256 439 #CHECK: n_value: 0 440 #CHECK: - n_strx: 954 441 #CHECK: n_type: 0x01 442 #CHECK: n_sect: 0 443 #CHECK: n_desc: 256 444 #CHECK: n_value: 0 445 #CHECK: - n_strx: 982 446 #CHECK: n_type: 0x01 447 #CHECK: n_sect: 0 448 #CHECK: n_desc: 256 449 #CHECK: n_value: 0 450 #CHECK: - n_strx: 999 451 #CHECK: n_type: 0x01 452 #CHECK: n_sect: 0 453 #CHECK: n_desc: 256 454 #CHECK: n_value: 0 455 #CHECK: - n_strx: 1018 456 #CHECK: n_type: 0x01 457 #CHECK: n_sect: 0 458 #CHECK: n_desc: 256 459 #CHECK: n_value: 0 460 #CHECK: - n_strx: 1035 461 #CHECK: n_type: 0x01 462 #CHECK: n_sect: 0 463 #CHECK: n_desc: 256 464 #CHECK: n_value: 0 465 #CHECK: - n_strx: 1057 466 #CHECK: n_type: 0x01 467 #CHECK: n_sect: 0 468 #CHECK: n_desc: 512 469 #CHECK: n_value: 0 470 #CHECK: - n_strx: 1065 471 #CHECK: n_type: 0x01 472 #CHECK: n_sect: 0 473 #CHECK: n_desc: 512 474 #CHECK: n_value: 0 475 #CHECK: - n_strx: 1073 476 #CHECK: n_type: 0x01 477 #CHECK: n_sect: 0 478 #CHECK: n_desc: 512 479 #CHECK: n_value: 0 480 #CHECK: StringTable: 481 #CHECK: - ' ' 482 #CHECK: - __ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc 483 #CHECK: - __ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m 484 #CHECK: - __ZNSt3__111char_traitsIcE6lengthEPKc 485 #CHECK: - __ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_ 486 #CHECK: - ___clang_call_terminate 487 #CHECK: - __ZNSt3__111char_traitsIcE11eq_int_typeEii 488 #CHECK: - __ZNSt3__111char_traitsIcE3eofEv 489 #CHECK: - GCC_except_table2 490 #CHECK: - GCC_except_table4 491 #CHECK: - __mh_execute_header 492 #CHECK: - _main 493 #CHECK: - __Unwind_Resume 494 #CHECK: - __ZNKSt3__16locale9use_facetERNS0_2idE 495 #CHECK: - __ZNKSt3__18ios_base6getlocEv 496 #CHECK: - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc 497 #CHECK: - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev 498 #CHECK: - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_ 499 #CHECK: - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev 500 #CHECK: - __ZNSt3__14coutE 501 #CHECK: - __ZNSt3__15ctypeIcE2idE 502 #CHECK: - __ZNSt3__16localeD1Ev 503 #CHECK: - __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv 504 #CHECK: - __ZNSt3__18ios_base5clearEj 505 #CHECK: - __ZSt9terminatev 506 #CHECK: - ___cxa_begin_catch 507 #CHECK: - ___cxa_end_catch 508 #CHECK: - ___gxx_personality_v0 509 #CHECK: - _memset 510 #CHECK: - _strlen 511 #CHECK: - dyld_stub_binder 512