[compiler-rt] r187407 - [sanitizer] Disable ForEachMappedRegion on Android.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Jul 30 01:39:16 PDT 2013
Author: eugenis
Date: Tue Jul 30 03:39:16 2013
New Revision: 187407
URL: http://llvm.org/viewvc/llvm-project?rev=187407&view=rev
Log:
[sanitizer] Disable ForEachMappedRegion on Android.
It needs interface that is missing from the NDK, and it is not used on Android anyway.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=187407&r1=187406&r2=187407&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Tue Jul 30 03:39:16 2013
@@ -639,6 +639,7 @@ bool LibraryNameIs(const char *full_name
return (name[base_name_length] == '-' || name[base_name_length] == '.');
}
+#if !SANITIZER_ANDROID
// Call cb for each region mapped by map.
void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)) {
typedef ElfW(Phdr) Elf_Phdr;
@@ -674,6 +675,7 @@ void ForEachMappedRegion(link_map *map,
}
}
}
+#endif
} // namespace __sanitizer
More information about the llvm-commits
mailing list