diff options
author | Alex Shlyapnikov <alekseys@google.com> | 2018-04-23 18:14:39 +0000 |
---|---|---|
committer | Alex Shlyapnikov <alekseys@google.com> | 2018-04-23 18:14:39 +0000 |
commit | a2b4f9b4d426b2e21b6ba7562bdf82935b2276ee (patch) | |
tree | 7888e05f92561b55c3eaaf182b7004f0e62a7d2e /llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | |
parent | 6264b0d673bebe162e93fd94572a9c4da754de9c (diff) | |
download | bcm5719-llvm-a2b4f9b4d426b2e21b6ba7562bdf82935b2276ee.tar.gz bcm5719-llvm-a2b4f9b4d426b2e21b6ba7562bdf82935b2276ee.zip |
[HWASan] Switch back to fixed shadow mapping for x86-64
For now switch back to fixed shadow mapping for x86-64 due to the issues
with IFUNC linking on older binutils. More details will be added to
https://bugs.chromium.org/p/chromium/issues/detail?id=835864
Differential Revision: https://reviews.llvm.org/D45840
llvm-svn: 330623
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp index 5323ba3e0c9..e0bdf564df8 100644 --- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp @@ -744,7 +744,7 @@ void HWAddressSanitizer::ShadowMapping::init(Triple &TargetTriple) { Scale = kDefaultShadowScale; - if (ClEnableKhwasan || ClInstrumentWithCalls) + if (ClEnableKhwasan || ClInstrumentWithCalls || IsX86_64) Offset = 0; else Offset = kDynamicShadowSentinel; |