1# RUN: ld64.lld -arch x86_64 -r -o %t %s && llvm-objdump --private-headers %t | FileCheck %s
2
3# CHECK: filesize 19
4
5--- !mach-o
6arch:            x86_64
7file-type:       MH_OBJECT
8flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
9sections:
10  - segment:         __TEXT
11    section:         __text
12    type:            S_REGULAR
13    attributes:      [ S_ATTR_PURE_INSTRUCTIONS ]
14    alignment:       16
15    address:         0x0000000000000000
16    content:         [ 0x00, 0x00, 0x00 ]
17  - segment:         __TEXT
18    section:         __alt
19    type:            S_REGULAR
20    attributes:      [ S_ATTR_PURE_INSTRUCTIONS ]
21    alignment:       16
22    address:         0x0000000000000010
23    content:         [ 0x00, 0x00, 0x00 ]
24global-symbols:
25  - name:            _main
26    type:            N_SECT
27    scope:           [ N_EXT ]
28    sect:            1
29    value:           0x0000000000000000
30page-size:       0x00000000
31...
32