[compiler-rt] r212823 - [asan] fix x32 build, patch by H.J. Lu
Kostya Serebryany
kcc at google.com
Fri Jul 11 08:22:45 PDT 2014
Author: kcc
Date: Fri Jul 11 10:22:45 2014
New Revision: 212823
URL: http://llvm.org/viewvc/llvm-project?rev=212823&view=rev
Log:
[asan] fix x32 build, patch by H.J. Lu
Modified:
compiler-rt/trunk/lib/asan/asan_rtl.cc
Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=212823&r1=212822&r2=212823&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Fri Jul 11 10:22:45 2014
@@ -604,7 +604,8 @@ static void AsanInitInternal() {
bool full_shadow_is_available =
MemoryRangeIsAvailable(shadow_start, kHighShadowEnd);
-#if SANITIZER_LINUX && defined(__x86_64__) && !ASAN_FIXED_MAPPING
+#if SANITIZER_LINUX && defined(__x86_64__) && defined(_LP64) && \
+ !ASAN_FIXED_MAPPING
if (!full_shadow_is_available) {
kMidMemBeg = kLowMemEnd < 0x3000000000ULL ? 0x3000000000ULL : 0;
kMidMemEnd = kLowMemEnd < 0x3000000000ULL ? 0x4fffffffffULL : 0;
More information about the llvm-commits
mailing list