summaryrefslogtreecommitdiffstats
path: root/lld/test/fixups-dup-named.objtxt
blob: 38ca56ebca58f03678d2d780ff0a8fac36db9129 (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: lld -core %s | FileCheck %s

#
# Test references referencing multiple atoms that have the same name
#

---
defined-atoms:
    - name:              foo
      type:              code
      content:           [ E8, 00, 00, 00, 00, E8, 00, 00, 00, 00 ]
      references:
      - offset:          1
        kind:            pcrel32
        target:          bar_1
      - offset:          6
        kind:            pcrel32
        target:          bar_2
  
    - name:              bar
      ref-name:          bar_1
      scope:             static

    - name:              bar
      ref-name:          bar_2
      scope:             static
  

...

# CHECK:       ...
OpenPOWER on IntegriCloud