1# RUN: not ld64.lld -arch x86_64 -macosx_version_min 10.8 -dylib \ 2# RUN: %s %p/Inputs/x86_64/libSystem.yaml -o %t -exported_symbol _foobar 2> %t2 3# 4# Test -exported_symbol fails if exported symbol not found. 5# 6 7--- !mach-o 8arch: x86_64 9file-type: MH_OBJECT 10flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ] 11sections: 12 - segment: __TEXT 13 section: __text 14 type: S_REGULAR 15 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ] 16 address: 0x0000000000000000 17 content: [ 0x55, 0x48, 0x89, 0xE5, 0x5D, 0xC3, 0x55, 0x48, 18 0x89, 0xE5, 0x5D, 0xC3 ] 19 - segment: __DATA 20 section: __data 21 type: S_REGULAR 22 attributes: [ ] 23 alignment: 2 24 address: 0x000000000000000C 25 content: [ 0x0A, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00 ] 26 27global-symbols: 28 - name: _a 29 type: N_SECT 30 scope: [ N_EXT ] 31 sect: 2 32 value: 0x000000000000000C 33 - name: _b 34 type: N_SECT 35 scope: [ N_EXT ] 36 sect: 2 37 value: 0x0000000000000010 38 - name: _bar 39 type: N_SECT 40 scope: [ N_EXT ] 41 sect: 1 42 value: 0x0000000000000006 43 - name: _foo 44 type: N_SECT 45 scope: [ N_EXT ] 46 sect: 1 47 value: 0x0000000000000000 48 49 50... 51 52# CHECK: (__DATA,__data) private external _a 53# CHECK: (__DATA,__data) external _b 54# CHECK: (__TEXT,__text) private external _bar 55# CHECK: (__TEXT,__text) external _foo 56