]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/mach-o/objc-image-info-pass-output.yaml
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / mach-o / objc-image-info-pass-output.yaml
1 # RUN: ld64.lld -ios_simulator_version_min 5.0 -arch x86_64 -r %s -o %t -print_atoms | FileCheck %s
2
3 # Make sure that we have an objc image info in the output.  It should have
4 # been generated by the objc pass.
5
6 --- !mach-o
7 arch:            x86_64
8 file-type:       MH_OBJECT
9 flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
10 compat-version:  0.0
11 current-version: 0.0
12 has-UUID:        false
13 OS:              unknown
14 sections:
15   - segment:         __DATA
16     section:         __objc_imageinfo
17     type:            S_REGULAR
18     attributes:      [ S_ATTR_NO_DEAD_STRIP ]
19     address:         0x0000000000000100
20     content:         [ 0x00, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00 ]
21 ...
22
23 # CHECK: --- !native
24 # CHECK: path:            '<linker-internal>'
25 # CHECK: defined-atoms:
26 # CHECK:   - scope:           hidden
27 # CHECK:     type:            objc-image-info
28 # CHECK:     content:         [ 00, 00, 00, 00, 20, 02, 00, 00 ]
29 # CHECK:     alignment:       4
30 # CHECK: ...