[PATCH] [DFSAN][MIPS] adding support of DFSAN for MIPS64

Peter Collingbourne peter at pcc.me.uk
Fri Nov 28 16:33:03 PST 2014


================
Comment at: lib/dfsan/dfsan.h:50
@@ +49,3 @@
+#elif defined(__mips64)
+  return (dfsan_label *) ((((uptr) ptr) & ~0xF000000000) << 1);
+#endif
----------------
I think you will need to make a similar change to LLVM (search for `ShadowPtrMask` in `lib/Transforms/Instrumentation/DataFlowSanitizer.cpp`).

http://reviews.llvm.org/D6437






More information about the llvm-commits mailing list