[lld] r239178 - [Mips] Fix rel-gprel16.test test case

Simon Atanasyan simon at atanasyan.com
Fri Jun 5 11:26:33 PDT 2015


Author: atanasyan
Date: Fri Jun  5 13:26:33 2015
New Revision: 239178

URL: http://llvm.org/viewvc/llvm-project?rev=239178&view=rev
Log:
[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.

Modified:
    lld/trunk/test/elf/Mips/rel-gprel16.test

Modified: lld/trunk/test/elf/Mips/rel-gprel16.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Mips/rel-gprel16.test?rev=239178&r1=239177&r2=239178&view=diff
==============================================================================
--- lld/trunk/test/elf/Mips/rel-gprel16.test (original)
+++ lld/trunk/test/elf/Mips/rel-gprel16.test Fri Jun  5 13:26:33 2015
@@ -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:





More information about the llvm-commits mailing list