summaryrefslogtreecommitdiffstats
path: root/lld/test/core/gnulinkonce-resolve.objtxt
blob: e926c39bd0e1f70a3db96fd71fd7d4f5886fdce5 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# RUN: lld -core %s %p/Inputs/gnulinkonce-resolve.objtxt | FileCheck %s

#
# Test that gnu linkonce sections are parsed and the first section selected for symbol
# resolution
#

---
defined-atoms:
  - name:            f1
    scope:           global
    type:            code
  - name:            f2
    scope:           global
    type:            code
  - name:            g1
    scope:           global
    type:            code
  - name:            d1
    scope:           global
    type:            data
  - name:            g1
    scope:           global
    type:            gnu-linkonce
    references:
      - kind:            group-child
        target:          f1
      - kind:            group-child
        target:          f2
      - kind:            group-child
        target:          g1
      - kind:            group-child
        target:          d1
...

#CHECK: defined-atoms:
#CHECK:   - name:            g1
#CHECK:     ref-name:        [[PARENT:[a-zA-Z\.0-9_]+]]
#CHECK:     scope:           global
#CHECK:     type:            gnu-linkonce
#CHECK:     references:
#CHECK:       - kind:            group-child
#CHECK:         offset:          0
#CHECK:         target:          f1
#CHECK:       - kind:            group-child
#CHECK:         offset:          0
#CHECK:         target:          f2
#CHECK:       - kind:            group-child
#CHECK:         offset:          0
#CHECK:         target:          [[GCHILD:[a-zA-Z\.0-9_]+]]
#CHECK:       - kind:            group-child
#CHECK:         offset:          0
#CHECK:         target:          d1
#CHECK:   - name:            f1
#CHECK:     scope:           global
#CHECK:   - name:            f2
#CHECK:     scope:           global
#CHECK:   - name:            g1
#CHECK:     ref-name:        [[GCHILD]]
#CHECK:     scope:           global
#CHECK:   - name:            d1
#CHECK:     scope:           global
#CHECK:     type:            data
OpenPOWER on IntegriCloud