[sanitizer] fix asan on the platforms where the page size is not a compile-time constant (or at least where EXEC_PAGESIZE may not be trustworthy), e.g. powerpc64. 

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182351 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/sanitizer_common/sanitizer_linux.cc b/lib/sanitizer_common/sanitizer_linux.cc
index c326750..09e9c42 100644
--- a/lib/sanitizer_common/sanitizer_linux.cc
+++ b/lib/sanitizer_common/sanitizer_linux.cc
@@ -614,7 +614,11 @@
 }
 
 uptr GetPageSize() {
+#if defined(__x86_64__) || defined(__i386__)
   return EXEC_PAGESIZE;
+#else
+  return sysconf(_SC_PAGESIZE);  // EXEC_PAGESIZE may not be trustworthy.
+#endif
 }
 
 // Match full names of the form /path/to/base_name{-,.}*