From 8f30830d97539f751ddd40d3f6c2f6eaffe32716 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 16 Apr 2025 22:44:55 +0900 Subject: [PATCH] Revert "std_detect: Do not use libc::getauxval on 32-bit Android" This reverts commit 85572dc298f5222902c9b200cebf5d045e769a83. --- .../stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs index 8c911fd8d96..0f643bbd272 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs @@ -139,8 +139,7 @@ fn getauxval(key: usize) -> Result { target_os = "linux", any(target_env = "gnu", target_env = "musl", target_env = "ohos"), )), - // TODO: libc crate currently doesn't provide getauxval on 32-bit Android. - not(all(target_os = "android", target_pointer_width = "64")), + not(target_os = "android"), ))] { let ffi_getauxval: F = unsafe { let ptr = libc::dlsym(libc::RTLD_DEFAULT, c"getauxval".as_ptr());