]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/mach-o/infer-arch.yaml
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / mach-o / infer-arch.yaml
1 # RUN: lld -flavor darwin -arch i386 -macosx_version_min 10.8 %s -r -o %t \
2 # RUN: && lld -flavor darwin -r %t -o %t2 -print_atoms | FileCheck %s
3 #
4 # Test linker can detect architecture without -arch option.
5 #
6
7 --- !mach-o
8 arch:            x86
9 file-type:       MH_OBJECT
10 flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
11 sections:
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 ]
18 global-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