diff options
author | Javier Pello <devel@otheo.eu> | 2022-09-27 20:09:28 +0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-10-06 07:59:48 -0300 |
commit | ab40f20364f4a417a63dd51fdd943742070bfe96 (patch) | |
tree | 2cbafbb6e236747e98360ece25130699ef771b63 /sysdeps/unix/sysv/linux | |
parent | 78d9a1620b840deb0880686e4159eaf70708866a (diff) | |
download | glibc-ab40f20364f4a417a63dd51fdd943742070bfe96.tar glibc-ab40f20364f4a417a63dd51fdd943742070bfe96.tar.gz glibc-ab40f20364f4a417a63dd51fdd943742070bfe96.tar.bz2 glibc-ab40f20364f4a417a63dd51fdd943742070bfe96.zip |
elf: Remove _dl_string_hwcap
Removal of legacy hwcaps support from the dynamic loader left
no users of _dl_string_hwcap.
Signed-off-by: Javier Pello <devel@otheo.eu>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h | 12 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/arm/dl-procinfo.h | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h index aa505223d3..f7382f637d 100644 --- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h @@ -37,18 +37,6 @@ _dl_hwcap_string (int idx) return (unsigned)idx < _DL_HWCAP_COUNT ? GLRO(dl_aarch64_cap_flags)[idx] : ""; }; -static inline int -__attribute__ ((unused)) -_dl_string_hwcap (const char *str) -{ - for (int i = 0; i < _DL_HWCAP_COUNT; i++) - { - if (strcmp (str, _dl_hwcap_string (i)) == 0) - return i; - } - return -1; -}; - /* There're no platforms to filter out. */ #define _DL_HWCAP_PLATFORM 0 diff --git a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h index 1f4c8c3a8e..d8c0f262c6 100644 --- a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h @@ -75,18 +75,6 @@ _dl_procinfo (unsigned int type, unsigned long int word) #define HWCAP_IMPORTANT (HWCAP_ARM_VFP | HWCAP_ARM_NEON) -static inline int -__attribute__ ((unused)) -_dl_string_hwcap (const char *str) -{ - for (int i = 0; i < _DL_HWCAP_COUNT; i++) - { - if (strcmp (str, _dl_hwcap_string (i)) == 0) - return i; - } - return -1; -}; - #define _dl_string_platform(str) (-1) #endif /* dl-procinfo.h */ |