[compiler-rt] [compiler-rt] Fixed Android 8.1 `getauxval(AT_PAGESZ)` crashes if called from `.preinit_array`. (#113427) (PR #116121)
Dan Albert via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 11:27:02 PST 2024
================
@@ -82,6 +82,12 @@
# include <sys/personality.h>
# endif
+# if SANITIZER_ANDROID && __ANDROID_API__ < 35
+// The weak `strerrorname_np` (introduced in API level 35) definition,
+// allows for checking the API level at runtime.
----------------
DanAlbert wrote:
What's wrong with https://cs.android.com/android/platform/superproject/main/+/main:bionic/libc/include/android/api-level.h;l=214;drc=02ce401d1e2b31586c94c8b6999364bbbce27388?
https://github.com/llvm/llvm-project/pull/116121
More information about the llvm-commits
mailing list