1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2 3--- !mach-o 4FileHeader: 5 magic: 0xFEEDFACF 6 cputype: 0x1000007 7 cpusubtype: 0x3 8 filetype: 0x2 9 ncmds: 16 10 sizeofcmds: 1368 11 flags: 0x200085 12 reserved: 0x0 13LoadCommands: 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: 472 27 segname: __TEXT 28 vmaddr: 4294967296 29 vmsize: 16384 30 fileoff: 0 31 filesize: 16384 32 maxprot: 5 33 initprot: 5 34 nsects: 5 35 flags: 0 36 Sections: 37 - sectname: __text 38 segname: __TEXT 39 addr: 0x100003F60 40 size: 37 41 offset: 0x3F60 42 align: 4 43 reloff: 0x0 44 nreloc: 0 45 flags: 0x80000400 46 reserved1: 0x0 47 reserved2: 0x0 48 reserved3: 0x0 49 content: 554889E54883EC10C745FC00000000488D3D30000000B000E80900000031C04883C4105DC3 50 - sectname: __stubs 51 segname: __TEXT 52 addr: 0x100003F86 53 size: 6 54 offset: 0x3F86 55 align: 1 56 reloff: 0x0 57 nreloc: 0 58 flags: 0x80000408 59 reserved1: 0x0 60 reserved2: 0x6 61 reserved3: 0x0 62 content: FF2574400000 63 - sectname: __stub_helper 64 segname: __TEXT 65 addr: 0x100003F8C 66 size: 26 67 offset: 0x3F8C 68 align: 2 69 reloff: 0x0 70 nreloc: 0 71 flags: 0x80000400 72 reserved1: 0x0 73 reserved2: 0x0 74 reserved3: 0x0 75 content: 4C8D1D754000004153FF2565000000906800000000E9E6FFFFFF 76 - sectname: __cstring 77 segname: __TEXT 78 addr: 0x100003FA6 79 size: 13 80 offset: 0x3FA6 81 align: 0 82 reloff: 0x0 83 nreloc: 0 84 flags: 0x2 85 reserved1: 0x0 86 reserved2: 0x0 87 reserved3: 0x0 88 content: 68656C6C6F20776F726C640A00 89 - sectname: __unwind_info 90 segname: __TEXT 91 addr: 0x100003FB4 92 size: 72 93 offset: 0x3FB4 94 align: 2 95 reloff: 0x0 96 nreloc: 0 97 flags: 0x0 98 reserved1: 0x0 99 reserved2: 0x0 100 reserved3: 0x0 101 content: 010000001C000000000000001C000000000000001C00000002000000603F00003400000034000000863F00000000000034000000030000000C000100100001000000000000000001 102 - cmd: LC_SEGMENT_64 103 cmdsize: 152 104 segname: __DATA_CONST 105 vmaddr: 4294983680 106 vmsize: 16384 107 fileoff: 16384 108 filesize: 16384 109 maxprot: 3 110 initprot: 3 111 nsects: 1 112 flags: 16 113 Sections: 114 - sectname: __got 115 segname: __DATA_CONST 116 addr: 0x100004000 117 size: 8 118 offset: 0x4000 119 align: 3 120 reloff: 0x0 121 nreloc: 0 122 flags: 0x6 123 reserved1: 0x1 124 reserved2: 0x0 125 reserved3: 0x0 126 content: '0000000000000000' 127 - cmd: LC_SEGMENT_64 128 cmdsize: 232 129 segname: __DATA 130 vmaddr: 4295000064 131 vmsize: 16384 132 fileoff: 32768 133 filesize: 16384 134 maxprot: 3 135 initprot: 3 136 nsects: 2 137 flags: 0 138 Sections: 139 - sectname: __la_symbol_ptr 140 segname: __DATA 141 addr: 0x100008000 142 size: 8 143 offset: 0x8000 144 align: 3 145 reloff: 0x0 146 nreloc: 0 147 flags: 0x7 148 reserved1: 0x2 149 reserved2: 0x0 150 reserved3: 0x0 151 content: 9C3F000001000000 152 - sectname: __data 153 segname: __DATA 154 addr: 0x100008008 155 size: 8 156 offset: 0x8008 157 align: 3 158 reloff: 0x0 159 nreloc: 0 160 flags: 0x0 161 reserved1: 0x0 162 reserved2: 0x0 163 reserved3: 0x0 164 content: '0000000000000000' 165 - cmd: LC_SEGMENT_64 166 cmdsize: 72 167 segname: __LINKEDIT 168 vmaddr: 4295016448 169 vmsize: 16384 170 fileoff: 49152 171 filesize: 272 172 maxprot: 1 173 initprot: 1 174 nsects: 0 175 flags: 0 176 - cmd: LC_DYLD_INFO_ONLY 177 cmdsize: 48 178 rebase_off: 49152 179 rebase_size: 8 180 bind_off: 49160 181 bind_size: 24 182 weak_bind_off: 0 183 weak_bind_size: 0 184 lazy_bind_off: 49184 185 lazy_bind_size: 16 186 export_off: 49200 187 export_size: 48 188 - cmd: LC_SYMTAB 189 cmdsize: 24 190 symoff: 49256 191 nsyms: 5 192 stroff: 49352 193 strsize: 72 194 - cmd: LC_DYSYMTAB 195 cmdsize: 80 196 ilocalsym: 0 197 nlocalsym: 1 198 iextdefsym: 1 199 nextdefsym: 2 200 iundefsym: 3 201 nundefsym: 2 202 tocoff: 0 203 ntoc: 0 204 modtaboff: 0 205 nmodtab: 0 206 extrefsymoff: 0 207 nextrefsyms: 0 208 indirectsymoff: 49336 209 nindirectsyms: 3 210 extreloff: 0 211 nextrel: 0 212 locreloff: 0 213 nlocrel: 0 214 - cmd: LC_LOAD_DYLINKER 215 cmdsize: 32 216 name: 12 217 Content: '/usr/lib/dyld' 218 ZeroPadBytes: 7 219 - cmd: LC_UUID 220 cmdsize: 24 221 uuid: FF5FAB50-C79A-3B66-AD3A-DE2F26398050 222 - cmd: LC_BUILD_VERSION 223 cmdsize: 32 224 platform: 1 225 minos: 720896 226 sdk: 721664 227 ntools: 1 228 Tools: 229 - tool: 3 230 version: 46596096 231 - cmd: LC_SOURCE_VERSION 232 cmdsize: 16 233 version: 0 234 - cmd: LC_MAIN 235 cmdsize: 24 236 entryoff: 16224 237 stacksize: 0 238 - cmd: LC_LOAD_DYLIB 239 cmdsize: 56 240 dylib: 241 name: 24 242 timestamp: 2 243 current_version: 84698117 244 compatibility_version: 65536 245 Content: '/usr/lib/libSystem.B.dylib' 246 ZeroPadBytes: 6 247 - cmd: LC_FUNCTION_STARTS 248 cmdsize: 16 249 dataoff: 49248 250 datasize: 8 251 - cmd: LC_DATA_IN_CODE 252 cmdsize: 16 253 dataoff: 49256 254 datasize: 0 255LinkEditData: 256 IndirectSymbols: [ 0x3, 0x4, 0x3 ] 257... 258 259#CHECK: IndirectSymbols: [ 0x3, 0x4, 0x3 ] 260