[PATCH] D25219: [asan] LLVM: Switch to using dynamic shadow offset on iOS
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 4 12:11:34 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283239: [asan] LLVM: Switch to using dynamic shadow offset on iOS (authored by zaks).
Changed prior to commit:
https://reviews.llvm.org/D25219?vs=73385&id=73527#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25219
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
@@ -69,7 +69,6 @@
static const uint64_t kDefaultShadowOffset64 = 1ULL << 44;
static const uint64_t kDynamicShadowSentinel = ~(uint64_t)0;
static const uint64_t kIOSShadowOffset32 = 1ULL << 30;
-static const uint64_t kIOSShadowOffset64 = 0x120200000;
static const uint64_t kIOSSimShadowOffset32 = 1ULL << 30;
static const uint64_t kIOSSimShadowOffset64 = kDefaultShadowOffset64;
static const uint64_t kSmallX86_64ShadowOffset = 0x7FFF8000; // < 2G.
@@ -434,7 +433,9 @@
Mapping.Offset = kMIPS64_ShadowOffset64;
else if (IsIOS)
// If we're targeting iOS and x86, the binary is built for iOS simulator.
- Mapping.Offset = IsX86_64 ? kIOSSimShadowOffset64 : kIOSShadowOffset64;
+ // We are using dynamic shadow offset on the 64-bit devices.
+ Mapping.Offset =
+ IsX86_64 ? kIOSSimShadowOffset64 : kDynamicShadowSentinel;
else if (IsAArch64)
Mapping.Offset = kAArch64_ShadowOffset64;
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25219.73527.patch
Type: text/x-patch
Size: 1220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161004/bc43afdd/attachment.bin>
More information about the llvm-commits
mailing list