summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-01-28 16:22:50 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-01-28 16:22:50 +0000
commite13a9624c282e30d0ec0290166cc16dc1892918a (patch)
tree83c26b3e7ac432fb7bad7c9ae295d364be6da0b5
parent90e08320c9f83dc5554fd287ae4943fdb29b1494 (diff)
downloadbcm5719-llvm-e13a9624c282e30d0ec0290166cc16dc1892918a.tar.gz
bcm5719-llvm-e13a9624c282e30d0ec0290166cc16dc1892918a.zip
[ELFYAML] Provide explicit value for relocation addendums in the test
The `Addend` is an optional field of the `Relocation` YAML record. But we do not provide its default value while reading it from a YAML file and so it might keep uninitialized. I am going to fix the code by a separate commit. We might either make this field mandatory (at least for .rela sections) or specify 0 as a default value explicitly. llvm-svn: 227318
-rw-r--r--llvm/test/Object/Mips/elf-mips64-rel.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Object/Mips/elf-mips64-rel.yaml b/llvm/test/Object/Mips/elf-mips64-rel.yaml
index 1f565400f26..c9f049570a7 100644
--- a/llvm/test/Object/Mips/elf-mips64-rel.yaml
+++ b/llvm/test/Object/Mips/elf-mips64-rel.yaml
@@ -79,17 +79,21 @@ Sections:
- Offset: 0x20
Symbol: .rodata
Type: R_MIPS_GOT_PAGE
+ Addend: 0
- Offset: 0x24
Symbol: .rodata
Type: R_MIPS_GOT_OFST
+ Addend: 0
- Offset: 0x28
Symbol: printf
Type: R_MIPS_CALL16
+ Addend: 0
- Offset: 0x30
Symbol: printf
Type: R_MIPS_GPREL16
Type2: R_MIPS_LO16
SpecSym: RSS_GP0
+ Addend: 0
- Name: .rodata
Type: SHT_PROGBITS
Flags: [ SHF_ALLOC ]
OpenPOWER on IntegriCloud