[compiler-rt] r243787 - [asan] Fix wrong __ANDROID_API__ preprocessor condition.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Fri Jul 31 14:35:15 PDT 2015
Author: eugenis
Date: Fri Jul 31 16:35:15 2015
New Revision: 243787
URL: http://llvm.org/viewvc/llvm-project?rev=243787&view=rev
Log:
[asan] Fix wrong __ANDROID_API__ preprocessor condition.
This fixes report symbolization on L devices when building for API
level 21 or 22.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=243787&r1=243786&r2=243787&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Fri Jul 31 16:35:15 2015
@@ -464,7 +464,7 @@ extern "C" __attribute__((weak)) int dl_
uptr GetListOfModules(LoadedModule *modules, uptr max_modules,
string_predicate_t filter) {
-#if SANITIZER_ANDROID && __ANDROID_API__ < 21
+#if SANITIZER_ANDROID && __ANDROID_API__ <= 22
u32 api_level = AndroidGetApiLevel();
// Fall back to /proc/maps if dl_iterate_phdr is unavailable or broken.
// The runtime check allows the same library to work with
More information about the llvm-commits
mailing list