110 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: not llvm-jitlink -noexec -entry _anchor %t 2>&1 | FileCheck %s3 4# Test that we generate an error (rather than crashing) if we encounter a5# symbol with a string index of zero (no name) with the N_EXT bit set.6 7# CHECK: Symbol at index 1 has no name (string table index 0), but N_EXT bit8 9--- !mach-o10FileHeader:11 magic: 0xFEEDFACF12 cputype: 0x100000713 cpusubtype: 0x314 filetype: 0x115 ncmds: 416 sizeofcmds: 36017 flags: 0x200018 reserved: 0x019LoadCommands:20 - cmd: LC_SEGMENT_6421 cmdsize: 23222 segname: ''23 vmaddr: 024 vmsize: 825 fileoff: 39226 filesize: 027 maxprot: 728 initprot: 729 nsects: 230 flags: 031 Sections:32 - sectname: __text33 segname: __TEXT34 addr: 0x035 size: 036 offset: 0x18837 align: 038 reloff: 0x039 nreloc: 040 flags: 0x8000000041 reserved1: 0x042 reserved2: 0x043 reserved3: 0x044 content: ''45 - sectname: __common46 segname: __DATA47 addr: 0x048 size: 849 offset: 0x050 align: 251 reloff: 0x052 nreloc: 053 flags: 0x154 reserved1: 0x055 reserved2: 0x056 reserved3: 0x057 - cmd: LC_BUILD_VERSION58 cmdsize: 2459 platform: 160 minos: 85196861 sdk: 062 ntools: 063 - cmd: LC_SYMTAB64 cmdsize: 2465 symoff: 39266 nsyms: 267 stroff: 42468 strsize: 1669 - cmd: LC_DYSYMTAB70 cmdsize: 8071 ilocalsym: 072 nlocalsym: 073 iextdefsym: 074 nextdefsym: 275 iundefsym: 276 nundefsym: 077 tocoff: 078 ntoc: 079 modtaboff: 080 nmodtab: 081 extrefsymoff: 082 nextrefsyms: 083 indirectsymoff: 084 nindirectsyms: 085 extreloff: 086 nextrel: 087 locreloff: 088 nlocrel: 089LinkEditData:90 NameList:91 - n_strx: 192 n_type: 0xF93 n_sect: 294 n_desc: 095 n_value: 096 - n_strx: 097 n_type: 0xF98 n_sect: 299 n_desc: 0100 n_value: 4101 StringTable:102 - ''103 - _anchor104 - _b105 - ''106 - ''107 - ''108 - ''109...110