Rename YAML key 'fixups:' to 'references:'

llvm-svn: 171898
This commit is contained in:
Nick Kledzik 2013-01-08 21:12:13 +00:00
parent 809b9955e8
commit 8a3052eab0
15 changed files with 29 additions and 29 deletions

View File

@ -966,7 +966,7 @@ struct MappingTraits<const lld::DefinedAtom*> {
lld::DefinedAtom::deadStripNormal);
io.mapOptional("permissions", keys->_permissions,
lld::DefinedAtom::permR_X);
io.mapOptional("fixups", keys->_references);
io.mapOptional("references", keys->_references);
}
};

View File

@ -12,7 +12,7 @@ defined-atoms:
content: [ 55, 48, 89, E5, 48, 8D, 3D, 00,
00, 00, 00, E8, 00, 00, 00, 00,
31, C0, 5D, C3 ]
fixups:
references:
- offset: 7
kind: pcrel32
target: LC1

View File

@ -10,7 +10,7 @@
defined-atoms:
- name: entry
dead-strip: never
fixups:
references:
- offset: 1
kind: pcrel32
target: bar

View File

@ -9,7 +9,7 @@
defined-atoms:
- name: entry
dead-strip: never
fixups:
references:
- offset: 1
kind: pcrel32
target: bar

View File

@ -9,7 +9,7 @@ hexagon-yaml: 00, 00, 00, 00, 00, 00, 00, 00, 00, 00,
hexagon-yaml: section-choice: custom-required
hexagon-yaml: section-name: .text
hexagon-yaml: fixups:
hexagon-yaml: references:
hexagon-yaml: - kind:
hexagon-yaml: offset: 4
hexagon-yaml: target: target
@ -19,7 +19,7 @@ hexagon-yaml: scope: global
hexagon-yaml: content: [ 00, C0, 00, 5A ]
hexagon-yaml: section-choice: custom-required
hexagon-yaml: section-name: .text
hexagon-yaml: fixups:
hexagon-yaml: references:
hexagon-yaml: - kind:
hexagon-yaml: offset: 0
hexagon-yaml: target: back

View File

@ -32,7 +32,7 @@ ELF-i386: 00, 00, 00, 00, E8, FC, FF, FF, FF, 31, C0,
ELF-i386: C3 ]
ELF-i386: section-choice: custom-required
ELF-i386: section-name: .text.startup
ELF-i386: fixups:
ELF-i386: references:
ELF-i386: - kind: ???
ELF-i386: offset: 12
ELF-i386: target: .rodata.str1.1
@ -59,7 +59,7 @@ ELF-i386: 19, 00, 00, 00, 00, 41, 0E, 08, 85, 02, 42,
ELF-i386: 05, 55, C5, 0C, 04, 04, 00, 00 ]
ELF-i386: section-choice: custom-required
ELF-i386: section-name: .eh_frame
ELF-i386: fixups:
ELF-i386: references:
ELF-i386: - kind: call32
ELF-i386: offset: 32
ELF-i386: target: .text.startup

View File

@ -23,7 +23,7 @@ RUN: lld-core -reader ELF -arch=i386 %p/Inputs/reloc-xb.x86 %p/Inputs/reloc-xt.x
x86-yaml: - name: back
x86-yaml: scope: global
x86-yaml: content: [ E8, FC, FF, FF, FF ]
x86-yaml: fixups:
x86-yaml: references:
x86-yaml: - kind: call32
x86-yaml: offset: 1
x86-yaml: target: target
@ -31,7 +31,7 @@ x86-yaml: target: target
x86-yaml: - name: target
x86-yaml: scope: global
x86-yaml: content: [ E8, FC, FF, FF, FF ]
x86-yaml: fixups:
x86-yaml: references:
x86-yaml: - kind: call32
x86-yaml: offset: 1
x86-yaml: target: back

View File

@ -9,7 +9,7 @@
defined-atoms:
- name: entry
scope: hidden
fixups:
references:
- offset: 3
kind: 3
weasel: bar

View File

@ -9,7 +9,7 @@
defined-atoms:
- name: entry
scope: hidden
fixups:
references:
- offset: 3
kind: 3
target: bar

View File

@ -1,7 +1,7 @@
# RUN: lld-core %s | FileCheck %s
#
# Test addends in fixups
# Test addends in references
#
---
@ -10,7 +10,7 @@ defined-atoms:
type: code
content: [ 48, 8D, 3D, 00, 00, 00, 00,
48, 8D, 3D, 00, 00, 00, 00 ]
fixups:
references:
- offset: 3
kind: 3
target: bar
@ -24,7 +24,7 @@ defined-atoms:
type: code
content: [ 48, 8D, 3D, 00, 00, 00, 00,
48, 8D, 3D, 00, 00, 00, 00 ]
fixups:
references:
- offset: 3
kind: 3
target: bar
@ -41,10 +41,10 @@ undefined-atoms:
...
# CHECK: name: foo
# CHECK: fixups:
# CHECK: references:
# CHECK: addend: 100
# CHECK: addend: -50
# CHECK: name: func
# CHECK: fixups:
# CHECK: references:
# CHECK: addend: 8000000000
# CHECK: addend: -50

View File

@ -1,7 +1,7 @@
# RUN: lld-core %s | FileCheck %s
#
# Test fixups referencing multiple atoms that have the same name
# Test references referencing multiple atoms that have the same name
#
---
@ -9,7 +9,7 @@ defined-atoms:
- name: foo
type: code
content: [ E8, 00, 00, 00, 00, E8, 00, 00, 00, 00 ]
fixups:
references:
- offset: 1
kind: 3
target: bar_1

View File

@ -1,7 +1,7 @@
# RUN: lld-core %s | FileCheck %s
#
# Test fixups to simple named atoms
# Test references to simple named atoms
#
---
@ -10,7 +10,7 @@ defined-atoms:
type: code
content: [ E8, 00, 00, 00, 00,
E8, 00, 00, 00, 00 ]
fixups:
references:
- offset: 1
kind: 3
target: bar
@ -29,7 +29,7 @@ undefined-atoms:
...
# CHECK: name: foo
# CHECK: fixups:
# CHECK: references:
# CHECK: target: bar
# CHECK: target: baz
# CHECK: ...

View File

@ -1,7 +1,7 @@
# RUN: lld-core %s | FileCheck %s
#
# Test fixups to unnamed atoms
# Test references to unnamed atoms
#
---
@ -10,7 +10,7 @@ defined-atoms:
type: code
content: [ 48, 8D, 3D, 00, 00, 00, 00,
48, 8D, 3D, 00, 00, 00, 00 ]
fixups:
references:
- offset: 3
kind: 3
target: LC1
@ -33,7 +33,7 @@ defined-atoms:
...
# CHECK: name: foo
# CHECK: fixups:
# CHECK: references:
# CHECK: offset: 3
# CHECK: offset: 10
# CHECK: ref-name:

View File

@ -15,7 +15,7 @@ defined-atoms:
48, 83, 3D, 00, 00, 00, 00, 00,
48, 83, 3D, 00, 00, 00, 00, 00,
48, 83, 3D, 00, 00, 00, 00, 00 ]
fixups:
references:
- offset: 3
kind: gotLoad32
target: malloc
@ -51,7 +51,7 @@ shared-library-atoms:
# CHECK: defined-atoms:
# CHECK: name: foo
# CHECK: fixups:
# CHECK: references:
# CHECK: kind: pcrel32
# CHECK: offset: 3
# CHECK: target: L

View File

@ -10,7 +10,7 @@ defined-atoms:
type: code
content: [ E8, 00, 00, 00, 00, E8, 00, 00, 00,
00, 48 ,8B, 05, 00, 00, 00, 00 ]
fixups:
references:
- offset: 1
kind: call32
target: malloc
@ -31,7 +31,7 @@ shared-library-atoms:
...
# CHECK: name: foo
# CHECK: fixups:
# CHECK: references:
# CHECK: kind: call32
# CHECK: target: L
# CHECK: kind: call32