From 9c49a6d4491880a6363e9f08feb7bbad4a4cd370 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Wed, 28 Jan 2015 16:22:50 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227318 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Object/Mips/elf-mips64-rel.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Object/Mips/elf-mips64-rel.yaml b/test/Object/Mips/elf-mips64-rel.yaml index 1f565400f26..c9f049570a7 100644 --- a/test/Object/Mips/elf-mips64-rel.yaml +++ b/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 ] -- 2.40.0