1# RUN: yaml2obj %s -o %t 2# RUN: llvm-objcopy %t %t2 3# RUN: cmp %t %t2 4 5--- !mach-o 6IsLittleEndian: true 7FileHeader: 8 magic: 0xFEEDFACF 9 cputype: 0x01000007 10 cpusubtype: 0x00000003 11 filetype: 0x00000001 12 ncmds: 4 13 sizeofcmds: 512 14 flags: 0x00002000 15 reserved: 0x00000000 16LoadCommands: 17 - cmd: LC_SEGMENT_64 18 cmdsize: 392 19 segname: '' 20 vmaddr: 0 21 vmsize: 240 22 fileoff: 544 23 filesize: 240 24 maxprot: 7 25 initprot: 7 26 nsects: 4 27 flags: 0 28 Sections: 29 - sectname: __text 30 segname: __TEXT 31 addr: 0x0000000000000000 32 size: 93 33 offset: 0x00000220 34 align: 4 35 reloff: 0x0 36 nreloc: 0 37 flags: 0x80000400 38 reserved1: 0x00000000 39 reserved2: 0x00000000 40 reserved3: 0x00000000 41 - sectname: __cstring 42 segname: __TEXT 43 addr: 0x000000000000005D 44 size: 48 45 offset: 0x0000027D 46 align: 0 47 reloff: 0x00000000 48 nreloc: 0 49 flags: 0x00000002 50 reserved1: 0x00000000 51 reserved2: 0x00000000 52 reserved3: 0x00000000 53 - sectname: __compact_unwind 54 segname: __LD 55 addr: 0x0000000000000090 56 size: 32 57 offset: 0x000002B0 58 align: 3 59 reloff: 0x0 60 nreloc: 0 61 flags: 0x02000000 62 reserved1: 0x00000000 63 reserved2: 0x00000000 64 reserved3: 0x00000000 65 - sectname: __eh_frame 66 segname: __TEXT 67 addr: 0x00000000000000B0 68 size: 64 69 offset: 0x000002D0 70 align: 3 71 reloff: 0x00000000 72 nreloc: 0 73 flags: 0x6800000B 74 reserved1: 0x00000000 75 reserved2: 0x00000000 76 reserved3: 0x00000000 77 - cmd: LC_VERSION_MIN_MACOSX 78 cmdsize: 16 79 version: 658432 80 sdk: 0 81 - cmd: LC_SYMTAB 82 cmdsize: 24 83 symoff: 784 84 nsyms: 2 85 stroff: 816 86 strsize: 40 87 - cmd: LC_DYSYMTAB 88 cmdsize: 80 89 ilocalsym: 0 90 nlocalsym: 0 91 iextdefsym: 0 92 nextdefsym: 1 93 iundefsym: 1 94 nundefsym: 1 95 tocoff: 0 96 ntoc: 0 97 modtaboff: 0 98 nmodtab: 0 99 extrefsymoff: 0 100 nextrefsyms: 0 101 indirectsymoff: 0 102 nindirectsyms: 0 103 extreloff: 0 104 nextrel: 0 105 locreloff: 0 106 nlocrel: 0 107LinkEditData: 108 NameList: 109 - n_strx: 24 110 n_type: 0x0F 111 n_sect: 1 112 n_desc: 0 113 n_value: 0 114 - n_strx: 1 115 n_type: 0x01 116 n_sect: 0 117 n_desc: 0 118 n_value: 0 119 StringTable: 120 - '' 121 - _compilerrt_abort_impl 122 - ___absvdi2 123 - '' 124 - '' 125 - '' 126 - '' 127 - '' 128... 129