]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove _dl_string_hwcap
authorJavier Pello <devel@otheo.eu>
Tue, 27 Sep 2022 18:09:28 +0000 (20:09 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 6 Oct 2022 10:59:48 +0000 (07:59 -0300)
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>
sysdeps/alpha/dl-procinfo.h
sysdeps/csky/dl-procinfo.h
sysdeps/generic/dl-procinfo.h
sysdeps/mips/dl-procinfo.h
sysdeps/powerpc/dl-procinfo.h
sysdeps/s390/dl-procinfo.h
sysdeps/sparc/dl-procinfo.h
sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
sysdeps/unix/sysv/linux/arm/dl-procinfo.h
sysdeps/x86/dl-hwcap.h

index 31630fbb08c3c0725f65992c4ecada7663fc57c8..6a12297d9fb030c905b555236022b3f320fe1c42 100644 (file)
@@ -54,6 +54,4 @@ _dl_string_platform (const char *str)
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
-#define _dl_string_hwcap(str) (-1)
-
 #endif /* dl-procinfo.h */
index d29e19a9edba0575db7b85bf9dd6fa470701b9c5..5da90087945378eedef8d515979ff5bc9bf11e79 100644 (file)
@@ -54,6 +54,4 @@ _dl_string_platform (const char *str)
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
-#define _dl_string_hwcap(str) (-1)
-
 #endif /* dl-procinfo.h */
index 8f736e1df9babad9f627436a096e558179c495e1..033bcb3e6b2ea951d6811797929f3e1ee7ab46ab 100644 (file)
@@ -34,8 +34,6 @@
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT 0
 
-#define _dl_string_hwcap(str) (-1)
-
 #define _dl_string_platform(str) (-1)
 
 #endif /* dl-procinfo.h */
index 619dc0891193474ba326e80b037df096b10cc5ca..25127c36d2c61e0004c0d17515ba541f6c3265e2 100644 (file)
@@ -54,6 +54,4 @@ _dl_string_platform (const char *str)
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
-#define _dl_string_hwcap(str) (-1)
-
 #endif /* dl-procinfo.h */
index 6ed15610f464ae86fae6af6ecb3ee3613a70e1ad..a0b2d779f9ea7dc2c4b48a571059c71db794e8b1 100644 (file)
@@ -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)
index e1f88b9ab741705e8390f5e3adc2ae513e9fdce8..73aad1fd30a418339934bf32bf127d82be8a7964 100644 (file)
@@ -83,20 +83,6 @@ _dl_hwcap_string (int idx)
   return _dl_s390_cap_flags[idx];
 };
 
-static inline int
-__attribute__ ((unused, always_inline))
-_dl_string_hwcap (const char *str)
-{
-  int i;
-
-  for (i = 0; i < _DL_HWCAP_COUNT; i++)
-    {
-      if (strcmp (str, _dl_s390_cap_flags[i]) == 0)
-       return i;
-    }
-  return -1;
-};
-
 static inline int
 __attribute__ ((unused, always_inline))
 _dl_string_platform (const char *str)
index 4a723b5350a7e1c192cf352e88f0933579d9aa27..fa095832d7f7f44295b14ba845c73057d3d57f76 100644 (file)
@@ -52,19 +52,6 @@ _dl_hwcap_string (int idx)
   return GLRO(dl_sparc_cap_flags)[idx];
 };
 
-static inline int
-__attribute__ ((unused, always_inline))
-_dl_string_hwcap (const char *str)
-{
-  int i;
-  for (i = 0; i < _DL_HWCAP_COUNT; i++)
-    {
-      if (strcmp (str, GLRO(dl_sparc_cap_flags) [i]) == 0)
-       return i;
-    }
-  return -1;
-};
-
 #include <bits/wordsize.h>
 #define HWCAP_IMPORTANT_V9     (__WORDSIZE == 64 ? 0 : HWCAP_SPARC_V9)
 #define HWCAP_IMPORTANT                (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
index aa505223d3865db8e5e8ede101e383d5c5b2560f..f7382f637d527175e4b119f59439f347fdbc9da2 100644 (file)
@@ -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
 
index 1f4c8c3a8e84b3444da5c0e1198072e0005b5184..d8c0f262c6983793b629e6242f5054c365cfa731 100644 (file)
@@ -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 */
index 26790afcf6889fdd830e015e4ca639e513846022..1313cecd01f8e57ef21109a6f42fc25dac8f7b13 100644 (file)
@@ -57,20 +57,6 @@ _dl_hwcap_string (int idx)
   return GLRO(dl_x86_hwcap_flags)[idx];
 };
 
-static inline int
-__attribute__ ((unused, always_inline))
-_dl_string_hwcap (const char *str)
-{
-  int i;
-
-  for (i = HWCAP_START; i < HWCAP_COUNT; i++)
-    {
-      if (strcmp (str, GLRO(dl_x86_hwcap_flags)[i]) == 0)
-       return i;
-    }
-  return -1;
-};
-
 /* We cannot provide a general printing function.  */
 #define _dl_procinfo(type, word) -1