[HWASan] Switch back to fixed shadow mapping for x86-64
authorAlex Shlyapnikov <alekseys@google.com>
Mon, 23 Apr 2018 18:14:39 +0000 (18:14 +0000)
committerAlex Shlyapnikov <alekseys@google.com>
Mon, 23 Apr 2018 18:14:39 +0000 (18:14 +0000)
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

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

index 5323ba3..e0bdf56 100644 (file)
@@ -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;