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 unnamed 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
|
|
|
|
content: [ 48, 8D, 3D, 00, 00, 00, 00,
|
|
|
|
48, 8D, 3D, 00, 00, 00, 00 ]
|
2013-01-09 05:12:13 +08:00
|
|
|
references:
|
2012-02-15 08:38:09 +08:00
|
|
|
- offset: 3
|
2013-04-05 02:59:24 +08:00
|
|
|
kind: pcrel32
|
2012-02-15 08:38:09 +08:00
|
|
|
target: LC1
|
|
|
|
- offset: 10
|
2013-04-05 02:59:24 +08:00
|
|
|
kind: pcrel32
|
2012-02-15 08:38:09 +08:00
|
|
|
target: LC2
|
|
|
|
|
|
|
|
|
|
|
|
- ref-name: LC1
|
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-02-15 08:38:09 +08:00
|
|
|
content: [ 68, 65, 6c, 6c, 6f, 00 ]
|
|
|
|
|
|
|
|
- ref-name: LC2
|
|
|
|
type: c-string
|
2013-01-15 08:17:57 +08:00
|
|
|
merge: by-content
|
2012-02-15 08:38:09 +08:00
|
|
|
content: [ 74, 68, 65, 72, 65, 00 ]
|
|
|
|
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
# CHECK: name: foo
|
2013-01-09 05:12:13 +08:00
|
|
|
# CHECK: references:
|
2012-02-15 08:38:09 +08:00
|
|
|
# CHECK: offset: 3
|
|
|
|
# CHECK: offset: 10
|
|
|
|
# CHECK: ref-name:
|
|
|
|
# CHECK: ref-name:
|