From ab40f20364f4a417a63dd51fdd943742070bfe96 Mon Sep 17 00:00:00 2001 From: Javier Pello Date: Tue, 27 Sep 2022 20:09:28 +0200 Subject: 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 Reviewed-by: Adhemerval Zanella --- sysdeps/powerpc/dl-procinfo.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sysdeps/powerpc') diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h index 6ed15610f4..a0b2d779f9 100644 --- a/sysdeps/powerpc/dl-procinfo.h +++ b/sysdeps/powerpc/dl-procinfo.h @@ -69,16 +69,6 @@ _dl_hwcap_string (int idx) return GLRO(dl_powerpc_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; -} - static inline int __attribute__ ((unused, always_inline)) _dl_string_platform (const char *str) -- cgit 1.4.1