aboutsummaryrefslogtreecommitdiff
path: root/lld/test/mach-o/executable-exports.yaml
blob: cd5c1f83bad97c3d9a0f5202fba952e7bfc9d993 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 \
# RUN:      %s %p/Inputs/x86_64/libSystem.yaml -o %t  && \
# RUN: llvm-objdump --macho --exports-trie %t | FileCheck %s
#
#
# Tests that exports trie builds properly.
#

--- !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, S_ATTR_SOME_INSTRUCTIONS ]
    address:         0x0000000000000000
    content:         [ 0xC3, 0xC3, 0xC3, 0xC3 ]
global-symbols:
  - name:            _myHidden
    type:            N_SECT
    scope:           [ N_EXT, N_PEXT ]
    sect:            1
    value:           0x0000000000000000
  - name:            _myRegular
    type:            N_SECT
    scope:           [ N_EXT ]
    sect:            1
    value:           0x0000000000000001
  - name:            _myWeak
    type:            N_SECT
    scope:           [ N_EXT ]
    sect:            1
    desc:            [ N_WEAK_DEF ]
    value:           0x0000000000000002
  - name:            _main
    type:            N_SECT
    scope:           [ N_EXT ]
    sect:            1
    value:           0x0000000000000003
...

# CHECK-NOT:  _myHidden
# CHECK:      0x100000FFD  _myRegular
# CHECK:      0x100000FFE  _myWeak [weak_def]