[MemorySanitizer] [MIPS] Changed memory mapping to support pie executable.
authorSagar Thakur <sagar.thakur@imgtec.com>
Tue, 16 Aug 2016 12:55:38 +0000 (12:55 +0000)
committerSagar Thakur <sagar.thakur@imgtec.com>
Tue, 16 Aug 2016 12:55:38 +0000 (12:55 +0000)
Reviewed by eugenis
Differential: D22994

llvm-svn: 278795

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

index 970f9ab..75e15af 100644 (file)
@@ -242,8 +242,8 @@ static const MemoryMapParams Linux_X86_64_MemoryMapParams = {
 
 // mips64 Linux
 static const MemoryMapParams Linux_MIPS64_MemoryMapParams = {
-  0x004000000000,  // AndMask
-  0,               // XorMask (not used)
+  0,               // AndMask (not used)
+  0x008000000000,  // XorMask
   0,               // ShadowBase (not used)
   0x002000000000,  // OriginBase
 };