1# RUN: ld64.lld -arch i386 -macosx_version_min 10.8 %s -r -o %t \ 2# RUN: && ld64.lld -r %t -o %t2 -print_atoms | FileCheck %s 3# 4# Test linker can detect architecture without -arch option. 5# 6 7--- !mach-o 8arch: x86 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: [ 0xC3 ] 18global-symbols: 19 - name: _foo 20 type: N_SECT 21 scope: [ N_EXT ] 22 sect: 1 23 value: 0x0000000000000000 24 25... 26 27 28# CHECK: defined-atoms: 29# CHECK: - name: _foo 30