Respect Android API availability in the ARM64 interpreter symbol table

This commit is contained in:
Moritz Angermann committed 2026-10-16 22:27:44 +09:00
1 parent ba07843efb
commit bbcf3e4895
2 files changed
+25 -4

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
--- a/cbits/symbols.aarch64-android.c
+++ b/cbits/symbols.aarch64-android.c
@@ -171,8 +171,11 @@
SYM(htonl),
SYM(ntohl),
// sys/random.h
+ // These public Bionic APIs are declared only from API level 28.
+#if __ANDROID_API__ >= 28
SYM(getentropy),
SYM(getrandom),
+#endif
// sys/auxv.h
SYM(getauxval),
// sys/mman.h