[PATCH] D46724: Register NetBSD/i386 in AddressSanitizer.cpp

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 18:02:22 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL332069: Register NetBSD/i386 in AddressSanitizer.cpp (authored by kamil, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46724?vs=146211&id=146265#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46724

Files:
  llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp


Index: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -107,6 +107,7 @@
 static const uint64_t kAArch64_ShadowOffset64 = 1ULL << 36;
 static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
 static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
+static const uint64_t kNetBSD_ShadowOffset32 = 1ULL << 30;
 static const uint64_t kNetBSD_ShadowOffset64 = 1ULL << 46;
 static const uint64_t kPS4CPU_ShadowOffset64 = 1ULL << 40;
 static const uint64_t kWindowsShadowOffset32 = 3ULL << 28;
@@ -508,6 +509,8 @@
       Mapping.Offset = kMIPS32_ShadowOffset32;
     else if (IsFreeBSD)
       Mapping.Offset = kFreeBSD_ShadowOffset32;
+    else if (IsNetBSD)
+      Mapping.Offset = kNetBSD_ShadowOffset32;
     else if (IsIOS)
       // If we're targeting iOS and x86, the binary is built for iOS simulator.
       Mapping.Offset = IsX86 ? kIOSSimShadowOffset32 : kIOSShadowOffset32;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46724.146265.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180511/a4d3afc8/attachment.bin>


More information about the llvm-commits mailing list