]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/core/fixups-unnamed.objtxt
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / core / fixups-unnamed.objtxt
1 # RUN: lld -core %s | FileCheck %s
2
3 #
4 # Test references to unnamed atoms
5 #
6
7 ---
8 defined-atoms:
9     - name:              foo
10       type:              code
11       content:           [ 48, 8D, 3D, 00, 00, 00, 00,
12                            48, 8D, 3D, 00, 00, 00, 00 ]
13       references:
14       - offset:          3
15         kind:            pcrel32
16         target:          LC1
17       - offset:          10
18         kind:            pcrel32
19         target:          LC2
20
21
22     - ref-name:          LC1
23       type:              c-string
24       merge:             by-content
25       content:           [ 68, 65, 6c, 6c, 6f, 00 ]
26
27     - ref-name:          LC2
28       type:              c-string
29       merge:             by-content
30       content:           [ 74, 68, 65, 72, 65, 00 ]
31
32
33 ...
34
35 # CHECK:      name: foo
36 # CHECK:      references:
37 # CHECK:      offset: 3
38 # CHECK:      offset: 10
39 # CHECK:      ref-name:
40 # CHECK:      ref-name: