From: Simon Atanasyan Date: Fri, 5 Jun 2015 18:26:33 +0000 (+0000) Subject: [Mips] Fix rel-gprel16.test test case X-Git-Tag: llvmorg-3.7.0-rc1~2887 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efad3402f01c8e950a6e1d745c64fa37f923e923;p=platform%2Fupstream%2Fllvm.git [Mips] Fix rel-gprel16.test test case This test case uses too large GP0 value. Now the test is correct. Later we need to implement overflow checking to catch such cases. llvm-svn: 239178 --- diff --git a/lld/test/elf/Mips/rel-gprel16.test b/lld/test/elf/Mips/rel-gprel16.test index b5d1c6c..abd44a7 100644 --- a/lld/test/elf/Mips/rel-gprel16.test +++ b/lld/test/elf/Mips/rel-gprel16.test @@ -29,9 +29,9 @@ # SYM-NEXT: Other: 0 # SYM-NEXT: Section: Absolute (0xFFF1) -# 0x6113 == 0xffff (addend) + 0x0104 (L1) + 0x01f000 (GP0) - 0x8ff0 (_gp) +# 0x6110 == 0xfffc (addend) + 0x0104 (L1) + 0xf000 (GP0) - 0x8ff0 (_gp) # SEC: Contents of section .rodata: -# SEC-NEXT: 010c 13610008 00000000 00000000 00000000 +# SEC-NEXT: 010c 10610008 00000000 00000000 00000000 !ELF FileHeader: @@ -68,7 +68,7 @@ Sections: Type: SHT_PROGBITS Flags: [ SHF_ALLOC ] AddressAlign: 0x04 - Content: ffff0008000000000000000000000000 + Content: fcff0008000000000000000000000000 - Type: SHT_REL Name: .rel.rodata @@ -86,7 +86,7 @@ Sections: Type: SHT_MIPS_REGINFO Flags: [ SHF_ALLOC ] AddressAlign: 0x01 - Content: 000000000000000000000000000000000000000000f00100 + Content: 000000000000000000000000000000000000000000f00000 Symbols: Local: