summaryrefslogtreecommitdiffstats
path: root/lld/test/core/gnulinkonce-rearrange-resolve.objtxt
blob: b3df078d231464828d4c8a670b413b2e5e53a708 (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
# RUN: lld -core %s %p/Inputs/gnulinkonce-rearrange-resolve.objtxt | FileCheck %s

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

---
defined-atoms:
  - 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
  - name:            f1
    scope:           global
    type:            code
  - name:            f2
    scope:           global
    type:            code
  - name:            g1
    scope:           global
    type:            code
  - name:            d1
    scope:           global
    type:            data
...

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