llvm-project/lld/test/fixups-unnamed.objtxt

41 lines
926 B
Plaintext
Raw Normal View History

# RUN: lld -core %s | FileCheck %s
2012-02-15 08:38:09 +08:00
#
# Test references to unnamed atoms
2012-02-15 08:38:09 +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 ]
references:
2012-02-15 08:38:09 +08:00
- offset: 3
kind: pcrel32
2012-02-15 08:38:09 +08:00
target: LC1
- offset: 10
kind: pcrel32
2012-02-15 08:38:09 +08:00
target: LC2
- ref-name: LC1
type: c-string
merge: by-content
2012-02-15 08:38:09 +08:00
content: [ 68, 65, 6c, 6c, 6f, 00 ]
- ref-name: LC2
type: c-string
merge: by-content
2012-02-15 08:38:09 +08:00
content: [ 74, 68, 65, 72, 65, 00 ]
...
# CHECK: name: foo
# CHECK: references:
2012-02-15 08:38:09 +08:00
# CHECK: offset: 3
# CHECK: offset: 10
# CHECK: ref-name:
# CHECK: ref-name: