1## Verify that we see dissassembler output even when there are no 2## symbols in __TEXT,__text. 3 4# RUN: yaml2obj %s -o %t.o 5# RUN: llvm-objdump -d %t.o | FileCheck %s 6 7--- !mach-o 8FileHeader: 9 magic: 0xFEEDFACF 10 cputype: 0x01000007 11 cpusubtype: 0x00000003 12 filetype: 0x00000002 13 ncmds: 4 14 sizeofcmds: 544 15 flags: 0x00000001 16 reserved: 0x00000000 17LoadCommands: 18 - cmd: LC_SEGMENT_64 19 cmdsize: 72 20 segname: __PAGEZERO 21 vmaddr: 0 22 vmsize: 4294967296 23 fileoff: 0 24 filesize: 0 25 maxprot: 0 26 initprot: 0 27 nsects: 0 28 flags: 0 29 - cmd: LC_SEGMENT_64 30 cmdsize: 152 31 segname: __TEXT 32 vmaddr: 4294967296 33 vmsize: 4096 34 fileoff: 0 35 filesize: 4096 36 maxprot: 5 37 initprot: 5 38 nsects: 1 39 flags: 0 40 Sections: 41 - sectname: __text 42 segname: __TEXT 43 addr: 0x0000000100000FF7 44 size: 9 45 offset: 0x00000FF7 46 align: 0 47 reloff: 0x00000000 48 nreloc: 0 49 flags: 0x80000400 50 reserved1: 0x00000000 51 reserved2: 0x00000000 52 reserved3: 0x00000000 53 - cmd: LC_SEGMENT_64 54 cmdsize: 72 55 segname: __LINKEDIT 56 vmaddr: 4294971392 57 vmsize: 4096 58 fileoff: 4096 59 filesize: 64 60 maxprot: 1 61 initprot: 1 62 nsects: 0 63 flags: 0 64 - cmd: LC_SYMTAB 65 cmdsize: 24 66 symoff: 4096 67 nsyms: 2 68 stroff: 4128 69 strsize: 32 70LinkEditData: 71 NameList: 72 - n_strx: 2 73 n_type: 0x03 74 n_sect: 1 75 n_desc: 16 76 n_value: 4294967296 77 - n_strx: 22 78 n_type: 0x01 79 n_sect: 0 80 n_desc: 0 81 n_value: 0 82 StringTable: 83 - ' ' 84 - __mh_execute_header 85 - start 86 - '' 87 - '' 88 - '' 89 - '' 90... 91 92CHECK: Disassembly of section __TEXT,__text: 93