forked from OSchip/llvm-project
37 lines
717 B
Plaintext
37 lines
717 B
Plaintext
# RUN: lld -core %s | FileCheck %s
|
|
|
|
#
|
|
# Test references to simple named atoms
|
|
#
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: foo
|
|
type: code
|
|
content: [ E8, 00, 00, 00, 00,
|
|
E8, 00, 00, 00, 00 ]
|
|
references:
|
|
- offset: 1
|
|
kind: pcrel32
|
|
target: bar
|
|
- offset: 6
|
|
kind: pcrel32
|
|
target: baz
|
|
|
|
- name: baz
|
|
scope: static
|
|
type: code
|
|
|
|
undefined-atoms:
|
|
- name: bar
|
|
|
|
|
|
...
|
|
|
|
# CHECK: name: foo
|
|
# CHECK: references:
|
|
# CHECK: target: bar
|
|
# CHECK: target: baz
|
|
# CHECK: ...
|
|
|