124 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-jitlink -noexec -show-graphs='.*' %t | FileCheck %s3 4# The below describes an object with two local symbols named _foo, each5# referenced by _main to keep it live. Ensure we can link it.6 7# CHECK: scope: local, live - _foo8# CHECK: scope: local, live - _foo9# CHECK: scope: default, live - _main10# CHECK-NEXT: edges:11# CHECK-NEXT: target = _foo12# CHECK-NEXT: target = _foo13 14--- !mach-o15IsLittleEndian: true16FileHeader:17 magic: 0xFEEDFACF18 cputype: 0x100000719 cpusubtype: 0x320 filetype: 0x121 ncmds: 422 sizeofcmds: 28023 flags: 0x200024 reserved: 0x025LoadCommands:26 - cmd: LC_SEGMENT_6427 cmdsize: 15228 segname: ''29 vmaddr: 030 vmsize: 1331 fileoff: 31232 filesize: 1333 maxprot: 734 initprot: 735 nsects: 136 flags: 037 Sections:38 - sectname: __text39 segname: __TEXT40 addr: 0x041 size: 1342 offset: 0x13843 align: 044 reloff: 0x14545 nreloc: 246 flags: 0x8000040047 reserved1: 0x048 reserved2: 0x049 reserved3: 0x050 content: 9090E800000000E8000000009051 relocations:52 - address: 0x853 symbolnum: 154 pcrel: true55 length: 256 extern: true57 type: 258 scattered: false59 value: 060 - address: 0x361 symbolnum: 062 pcrel: true63 length: 264 extern: true65 type: 266 scattered: false67 value: 068 - cmd: LC_BUILD_VERSION69 cmdsize: 2470 platform: 171 minos: 78643272 sdk: 073 ntools: 074 - cmd: LC_SYMTAB75 cmdsize: 2476 symoff: 34177 nsyms: 378 stroff: 38979 strsize: 1680 - cmd: LC_DYSYMTAB81 cmdsize: 8082 ilocalsym: 083 nlocalsym: 284 iextdefsym: 285 nextdefsym: 186 iundefsym: 387 nundefsym: 088 tocoff: 089 ntoc: 090 modtaboff: 091 nmodtab: 092 extrefsymoff: 093 nextrefsyms: 094 indirectsymoff: 095 nindirectsyms: 096 extreloff: 097 nextrel: 098 locreloff: 099 nlocrel: 0100LinkEditData:101 NameList:102 - n_strx: 1103 n_type: 0xE104 n_sect: 1105 n_desc: 0106 n_value: 0107 - n_strx: 1108 n_type: 0xE109 n_sect: 1110 n_desc: 0111 n_value: 1112 - n_strx: 6113 n_type: 0xF114 n_sect: 1115 n_desc: 0116 n_value: 2117 StringTable:118 - ''119 - _foo120 - _main121 - ''122 - ''123 - ''124 - ''