aboutsummaryrefslogtreecommitdiff
path: root/lld/test/mach-o/lc_segment_filesize.yaml
blob: fb9703c7ffbeeb2f43d1e26e2976dbfe2f2869a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# RUN: ld64.lld -arch x86_64 -r -o %t %s && llvm-objdump --private-headers %t | FileCheck %s

# CHECK: filesize 19

--- !mach-o
arch:            x86_64
file-type:       MH_OBJECT
flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
sections:
  - segment:         __TEXT
    section:         __text
    type:            S_REGULAR
    attributes:      [ S_ATTR_PURE_INSTRUCTIONS ]
    alignment:       16
    address:         0x0000000000000000
    content:         [ 0x00, 0x00, 0x00 ]
  - segment:         __TEXT
    section:         __alt
    type:            S_REGULAR
    attributes:      [ S_ATTR_PURE_INSTRUCTIONS ]
    alignment:       16
    address:         0x0000000000000010
    content:         [ 0x00, 0x00, 0x00 ]
global-symbols:
  - name:            _main
    type:            N_SECT
    scope:           [ N_EXT ]
    sect:            1
    value:           0x0000000000000000
page-size:       0x00000000
...