aboutsummaryrefslogtreecommitdiff
path: root/lld/test/mach-o/sectattrs.yaml
blob: 467c2b7fca07c01d10f9d3446676debed5fe3f7c (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
# RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -dylib \
# RUN:    %p/Inputs/x86_64/libSystem.yaml -o %t \
# RUN: && llvm-objdump -private-headers %t | FileCheck %s
#

--- !mach-o
arch:            x86_64
file-type:       MH_OBJECT
flags:           [ MH_SUBSECTIONS_VIA_SYMBOLS ]
sections:
  - segment:         __TEXT
    section:         __text
    type:            S_REGULAR
    attributes:      [  ]
    address:         0x0000000000000000
    content:         [ 0x55, 0x48, 0x89, 0xE5, 0x8B, 0x05, 0x00, 0x00,
                       0x00, 0x00, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00,
                       0x5D, 0xC3 ]
global-symbols:
  - name:            _get
    type:            N_SECT
    scope:           [ N_EXT ]
    sect:            1
    value:           0x0000000000000000

...


# CHECK:  PURE_INSTRUCTIONS SOME_INSTRUCTIONS