[compiler-rt] [compiler-rt] Fixed Android 8.1 `getauxval(AT_PAGESZ)` crashes if called from `.preinit_array`. (#113427) (PR #116121)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 16:08:29 PST 2024
================
@@ -1237,6 +1242,12 @@ uptr GetPageSize() {
CHECK_EQ(rv, 0);
return (uptr)pz;
# elif SANITIZER_USE_GETAUXVAL
+
+# if SANITIZER_ANDROID && __ANDROID_API__ < 35
+ if (!strerrorname_np)
----------------
fmayer wrote:
This is missing that `strerrorname_np` was also introduced in Android 15 (reference is https://cs.android.com/android/platform/superproject/main/+/main:bionic/libc/libc.map.txt?q=strerrorname_np%20f:bionic%2Flibc%2Flibc.map.txt)
https://github.com/llvm/llvm-project/pull/116121
More information about the llvm-commits
mailing list