[PATCH] D22994: [MemorySanitizer] [MIPS] Changed memory mapping to support pie executable.

Sagar Thakur via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 30 04:33:42 PDT 2016


slthakur created this revision.
slthakur added reviewers: eugenis, kcc, samsonov.
slthakur added subscribers: mohit.bhakkad, jaydeep, llvm-commits.
slthakur set the repository for this revision to rL LLVM.
slthakur added a project: Sanitizers.

This is the corresponding llvm part of patch https://reviews.llvm.org/D22993

Repository:
  rL LLVM

https://reviews.llvm.org/D22994

Files:
  lib/Transforms/Instrumentation/MemorySanitizer.cpp

Index: lib/Transforms/Instrumentation/MemorySanitizer.cpp
===================================================================
--- lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -242,8 +242,8 @@
 
 // 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
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22994.66224.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160730/2ac3efb2/attachment.bin>


More information about the llvm-commits mailing list