2013-04-05 02:59:24 +08:00
|
|
|
# RUN: lld -core %s | FileCheck %s
|
2012-02-15 08:38:09 +08:00
|
|
|
|
|
|
|
#
|
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
|
2014-01-27 11:09:26 +08:00
|
|
|
content: [ E8, 00, 00, 00, 00,
|
2013-01-05 10:22:35 +08: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
|
2013-04-05 02:59:24 +08:00
|
|
|
kind: pcrel32
|
2012-02-15 08:38:09 +08:00
|
|
|
target: bar
|
|
|
|
- offset: 6
|
2013-04-05 02:59:24 +08:00
|
|
|
kind: pcrel32
|
2012-02-15 08:38:09 +08:00
|
|
|
target: baz
|
2014-01-27 11:09:26 +08:00
|
|
|
|
2012-02-15 08:38:09 +08:00
|
|
|
- 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
|
2014-01-27 11:09:26 +08:00
|
|
|
|
2012-02-15 08:38:09 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
# 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: ...
|
|
|
|
|