]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove HWCAP_IMPORTANT
authorStefan Liebler <stli@linux.ibm.com>
Fri, 7 Jun 2024 11:42:44 +0000 (13:42 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Tue, 18 Jun 2024 08:45:36 +0000 (10:45 +0200)
Remove the definitions of HWCAP_IMPORTANT after removal of
LD_HWCAP_MASK / tunable glibc.cpu.hwcap_mask.  There HWCAP_IMPORTANT
was used as default value.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-diagnostics.c
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 e69463b2bdaffb8080a77fbba52d94f2b172887d..c83e7770d831d61be4792b00191c0f6ac609e357 100644 (file)
@@ -233,7 +233,6 @@ _dl_print_diagnostics (char **environ)
 {
   _dl_diagnostics_print_labeled_string ("dl_dst_lib", DL_DST_LIB);
   _dl_diagnostics_print_labeled_value ("dl_hwcap", GLRO (dl_hwcap));
-  _dl_diagnostics_print_labeled_value ("dl_hwcap_important", HWCAP_IMPORTANT);
   _dl_diagnostics_print_labeled_value ("dl_hwcap2", GLRO (dl_hwcap2));
   _dl_diagnostics_print_labeled_value ("dl_hwcap3", GLRO (dl_hwcap3));
   _dl_diagnostics_print_labeled_value ("dl_hwcap4", GLRO (dl_hwcap4));
index a5264f9f2c810a17ee17126919bb139c2830ee29..8d17d42ce2da36be67e78a57c97b32ed02a57575 100644 (file)
@@ -27,9 +27,6 @@
 /* There are no hardware capabilities defined.  */
 #define _dl_hwcap_string(idx) ""
 
-/* By default there is no important hardware capability.  */
-#define HWCAP_IMPORTANT (0)
-
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
index 3e7c63ee67633ff78974d13d4e741f507e59e9a4..f5f6343cf64b3448b28496934c6f7d07428c7280 100644 (file)
@@ -28,9 +28,6 @@
 /* There are no hardware capabilities defined.  */
 #define _dl_hwcap_string(idx) ""
 
-/* By default there is no important hardware capability.  */
-#define HWCAP_IMPORTANT (0)
-
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
index 1778fd1057e6db6611f7dabe8e6b0f350ae0f133..93edfc00cb3830608d8715765cfa120cfe163d84 100644 (file)
@@ -25,9 +25,6 @@
 /* There are no hardware capabilities defined.  */
 #define _dl_hwcap_string(idx) ""
 
-/* By default there is no important hardware capability.  */
-#define HWCAP_IMPORTANT (0)
-
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT 0
 
index 79c2acc3882a17e6d313a1f6cf8968272addf133..af2616e1db61a1485cc32323c3e0b3a4cd898587 100644 (file)
@@ -27,9 +27,6 @@
 /* There are no hardware capabilities defined.  */
 #define _dl_hwcap_string(idx) ""
 
-/* By default there is no important hardware capability.  */
-#define HWCAP_IMPORTANT (0)
-
 /* We don't have any hardware capabilities.  */
 #define _DL_HWCAP_COUNT        0
 
index 81eb9fba8750d5dba62d2d088529c27585415ccf..1e746a7ab43535a2cf198a5e392f70c63e46c862 100644 (file)
@@ -34,9 +34,6 @@
 /* AT_HWCAP4 feature strings follow the AT_HWCAP3 feature strings.  */
 #define _DL_HWCAP4_OFFSET      (_DL_HWCAP3_OFFSET + _DL_HWCAP_SIZE)
 
-/* These bits influence library search.  */
-#define HWCAP_IMPORTANT                (PPC_FEATURE_HAS_ALTIVEC \
-                               + PPC_FEATURE_HAS_DFP)
 
 #define _DL_FIRST_PLATFORM     32
 
index 7092ed1e2ddea95f3829ecfc09d2d67ee12af582..45dd11c189b48e0fba436cc57dcee6b290d5c08f 100644 (file)
@@ -59,11 +59,6 @@ enum
   HWCAP_S390_SIE = 1 << 22,
 };
 
-#define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
-                        | HWCAP_S390_EIMM | HWCAP_S390_DFP  \
-                        | HWCAP_S390_VX | HWCAP_S390_VXE    \
-                        | HWCAP_S390_VXRS_EXT2)
-
 /* We cannot provide a general printing function.  */
 #define _dl_procinfo(type, word) -1
 
index bd1cb65596b956f6605d6c110a243bc9d6e82fab..709178706c5a43a87d235ed40f1643e730135682 100644 (file)
@@ -52,9 +52,4 @@ _dl_hwcap_string (int idx)
   return GLRO(dl_sparc_cap_flags)[idx];
 };
 
-#include <bits/wordsize.h>
-#define HWCAP_IMPORTANT_V9     (__WORDSIZE == 64 ? 0 : HWCAP_SPARC_V9)
-#define HWCAP_IMPORTANT                (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
-                                | HWCAP_SPARC_BLKINIT | HWCAP_SPARC_N2)
-
 #endif /* dl-procinfo.h */
index 17893a52254c8cb11da3f45c2c6f9cb4fe66a73a..b85d4ad8a32e41fb6f884517108f806ad62bf93b 100644 (file)
@@ -27,9 +27,6 @@
 /* We cannot provide a general printing function.  */
 #define _dl_procinfo(type, word) -1
 
-/* No additional library search paths.  */
-#define HWCAP_IMPORTANT HWCAP_ATOMICS
-
 static inline const char *
 __attribute__ ((unused))
 _dl_hwcap_string (int idx)
index 85422b8edda868533c808951f259d73ddf1c1ec2..7d26216718d3b0bee35b16c62ff08a2e3bdbe873 100644 (file)
@@ -70,6 +70,4 @@ _dl_procinfo (unsigned int type, unsigned long int word)
   return 0;
 }
 
-#define HWCAP_IMPORTANT                (HWCAP_ARM_VFP | HWCAP_ARM_NEON)
-
 #endif /* dl-procinfo.h */
index 246fdcd8316f13c66bbda0d8bf55467a0b286de3..325f1c467ca77bf4f4c9d5aa4009b39bcea9592e 100644 (file)
 #ifndef _DL_HWCAP_H
 #define _DL_HWCAP_H
 
-#if IS_IN (ldconfig)
-/* Since ldconfig processes both i386 and x86-64 libraries, it needs
-   to cover all hardware capabilities.  */
-# define HWCAP_IMPORTANT \
-  (HWCAP_X86_SSE2 | HWCAP_X86_64 | HWCAP_X86_AVX512_1)
-#elif defined __x86_64__
-/* For 64 bit, only cover x86-64 capabilities.  */
-# define HWCAP_IMPORTANT       (HWCAP_X86_64 | HWCAP_X86_AVX512_1)
-#else
-/* For 32 bit, only cover i586, i686 and SSE2.  */
-# define HWCAP_IMPORTANT       (HWCAP_X86_SSE2)
-#endif
-
 enum
 {
   HWCAP_X86_SSE2               = 1 << 0,