207 lines · yaml
1# RUN: yaml2obj %s -o %t.out2# RUN: lldb-test symbols %t.out | FileCheck %s3# Test that the deployment target is parsed from the load commands.4# CHECK: x86_64-apple-macosx10.14.05--- !mach-o6FileHeader: 7 magic: 0xFEEDFACF8 cputype: 0x010000079 cpusubtype: 0x8000000310 filetype: 0x0000000211 ncmds: 1412 sizeofcmds: 73813 flags: 0x0020008514 reserved: 0x0000000015LoadCommands: 16 - cmd: LC_SEGMENT_6417 cmdsize: 7218 segname: __PAGEZERO19 vmaddr: 020 vmsize: 429496729621 fileoff: 022 filesize: 023 maxprot: 024 initprot: 025 nsects: 026 flags: 027 - cmd: LC_SEGMENT_6428 cmdsize: 23229 segname: __TEXT30 vmaddr: 429496729631 vmsize: 409632 fileoff: 033 filesize: 409634 maxprot: 735 initprot: 536 nsects: 237 flags: 038 Sections: 39 - sectname: __text40 segname: __TEXT41 addr: 0x0000000100000FB042 size: 843 offset: 0x00000FB044 align: 445 reloff: 0x0000000046 nreloc: 047 flags: 0x8000040048 reserved1: 0x0000000049 reserved2: 0x0000000050 reserved3: 0x0000000051 - sectname: __unwind_info52 segname: __TEXT53 addr: 0x0000000100000FB854 size: 7255 offset: 0x00000FB856 align: 257 reloff: 0x0000000058 nreloc: 059 flags: 0x0000000060 reserved1: 0x0000000061 reserved2: 0x0000000062 reserved3: 0x0000000063 - cmd: LC_SEGMENT_6464 cmdsize: 7265 segname: __LINKEDIT66 vmaddr: 429497139267 vmsize: 409668 fileoff: 409669 filesize: 15270 maxprot: 771 initprot: 172 nsects: 073 flags: 074 - cmd: LC_DYLD_INFO_ONLY75 cmdsize: 4876 rebase_off: 077 rebase_size: 078 bind_off: 079 bind_size: 080 weak_bind_off: 081 weak_bind_size: 082 lazy_bind_off: 083 lazy_bind_size: 084 export_off: 409685 export_size: 4886 - cmd: LC_SYMTAB87 cmdsize: 2488 symoff: 415289 nsyms: 390 stroff: 420091 strsize: 4892 - cmd: LC_DYSYMTAB93 cmdsize: 8094 ilocalsym: 095 nlocalsym: 096 iextdefsym: 097 nextdefsym: 298 iundefsym: 299 nundefsym: 1100 tocoff: 0101 ntoc: 0102 modtaboff: 0103 nmodtab: 0104 extrefsymoff: 0105 nextrefsyms: 0106 indirectsymoff: 0107 nindirectsyms: 0108 extreloff: 0109 nextrel: 0110 locreloff: 0111 nlocrel: 0112 - cmd: LC_LOAD_DYLINKER113 cmdsize: 32114 name: 12115 Content: /usr/lib/dyld116 ZeroPadBytes: 7117 - cmd: LC_UUID118 cmdsize: 24119 uuid: 8F41E140-23B9-3720-AC28-4E7AF9D159BA120 - cmd: LC_BUILD_VERSION121 cmdsize: 24122 platform: 1123 minos: 658944124 sdk: 658944125 ntools: 0126 - cmd: LC_SOURCE_VERSION127 cmdsize: 16128 version: 0129 - cmd: LC_MAIN130 cmdsize: 24131 entryoff: 4016132 stacksize: 0133 - cmd: LC_LOAD_DYLIB134 cmdsize: 56135 dylib: 136 name: 24137 timestamp: 2138 current_version: 82102276139 compatibility_version: 65536140 Content: /usr/lib/libSystem.B.dylib141 ZeroPadBytes: 6142 - cmd: LC_FUNCTION_STARTS143 cmdsize: 16144 dataoff: 4144145 datasize: 8146 - cmd: LC_DATA_IN_CODE147 cmdsize: 16148 dataoff: 4152149 datasize: 0150LinkEditData: 151 ExportTrie: 152 TerminalSize: 0153 NodeOffset: 0154 Name: ''155 Flags: 0x0000000000000000156 Address: 0x0000000000000000157 Other: 0x0000000000000000158 ImportName: ''159 Children: 160 - TerminalSize: 0161 NodeOffset: 5162 Name: _163 Flags: 0x0000000000000000164 Address: 0x0000000000000000165 Other: 0x0000000000000000166 ImportName: ''167 Children: 168 - TerminalSize: 2169 NodeOffset: 33170 Name: _mh_execute_header171 Flags: 0x0000000000000000172 Address: 0x0000000000000000173 Other: 0x0000000000000000174 ImportName: ''175 - TerminalSize: 3176 NodeOffset: 37177 Name: main178 Flags: 0x0000000000000000179 Address: 0x0000000000000FB0180 Other: 0x0000000000000000181 ImportName: ''182 NameList: 183 - n_strx: 2184 n_type: 0x0F185 n_sect: 1186 n_desc: 16187 n_value: 4294967296188 - n_strx: 22189 n_type: 0x0F190 n_sect: 1191 n_desc: 0192 n_value: 4294971312193 - n_strx: 28194 n_type: 0x01195 n_sect: 0196 n_desc: 256197 n_value: 0198 StringTable: 199 - ' '200 - __mh_execute_header201 - _main202 - dyld_stub_binder203 - ''204 - ''205 - ''206...207