[llvm] r330623 - [HWASan] Switch back to fixed shadow mapping for x86-64
Alex Shlyapnikov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 11:14:39 PDT 2018
Author: alekseyshl
Date: Mon Apr 23 11:14:39 2018
New Revision: 330623
URL: http://llvm.org/viewvc/llvm-project?rev=330623&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp?rev=330623&r1=330622&r2=330623&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp Mon Apr 23 11:14:39 2018
@@ -744,7 +744,7 @@ void HWAddressSanitizer::ShadowMapping::
Scale = kDefaultShadowScale;
- if (ClEnableKhwasan || ClInstrumentWithCalls)
+ if (ClEnableKhwasan || ClInstrumentWithCalls || IsX86_64)
Offset = 0;
else
Offset = kDynamicShadowSentinel;
More information about the llvm-commits
mailing list