2012-02-15 08:38:09 +08:00
|
|
|
# RUN: lld-core %s | FileCheck %s
|
|
|
|
|
|
|
|
#
|
2013-01-09 05:12:13 +08:00
|
|
|
# Test references to simple named atoms
|
2012-02-15 08:38:09 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
---
|
2013-01-05 10:22:35 +08:00
|
|
|
defined-atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- name: foo
|
|
|
|
type: code
|
2013-01-05 10:22:35 +08:00
|
|
|
content: [ E8, 00, 00, 00, 00,
|
|
|
|
E8, 00, 00, 00, 00 ]
|
2013-01-09 05:12:13 +08:00
|
|
|
references:
|
2012-02-15 08:38:09 +08:00
|
|
|
- offset: 1
|
|
|
|
kind: 3
|
|
|
|
target: bar
|
|
|
|
- offset: 6
|
|
|
|
kind: 3
|
|
|
|
target: baz
|
|
|
|
|
|
|
|
- name: baz
|
|
|
|
scope: static
|
|
|
|
type: code
|
|
|
|
|
2013-01-05 10:22:35 +08:00
|
|
|
undefined-atoms:
|
2012-02-15 08:38:09 +08:00
|
|
|
- name: bar
|
|
|
|
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: name: foo
|
2013-01-09 05:12:13 +08:00
|
|
|
# CHECK: references:
|
2012-02-15 08:38:09 +08:00
|
|
|
# CHECK: target: bar
|
|
|
|
# CHECK: target: baz
|
|
|
|
# CHECK: ...
|
|
|
|
|