]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Remove _DL_FIRST_PLATFORM
authorStefan Liebler <stli@linux.ibm.com>
Fri, 7 Jun 2024 11:42:41 +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 _DL_FIRST_PLATFORM as those were only used
in the _DL_HWCAP_PLATFORM definitions and in _dl_string_platform().
Both were removed.

Note: Removed on every architecture despite of powerpc, where
_dl_string_platform() is still used.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/s390/dl-procinfo.h
sysdeps/x86/dl-procinfo.h

index bb5f9c7863d04fe612d4d207191adb241881afd1..ef2a084ce704c3db8d9429b9af31af41b5a3d54a 100644 (file)
@@ -25,9 +25,6 @@ extern const char _dl_s390_cap_flags[_DL_HWCAP_COUNT][9] attribute_hidden;
 
 #define _DL_PLATFORMS_COUNT    11
 
-/* The kernel provides up to 32 capability bits with elf_hwcap.  */
-#define _DL_FIRST_PLATFORM     32
-
 /* Hardware capability bit numbers are derived directly from the
    facility indications as stored by the "store facility list" (STFL)
    instruction.
index 1aa6bad67aa1a157ed95f961011b8b1dc4ee69b1..a8d7d4ed328cc0815c4580c608fdc4db6c0eb14e 100644 (file)
@@ -24,7 +24,4 @@
 #define _DL_HWCAP_COUNT                HWCAP_COUNT
 #define _DL_PLATFORMS_COUNT    HWCAP_PLATFORMS_COUNT
 
-/* Start at 48 to reserve spaces for hardware capabilities.  */
-#define _DL_FIRST_PLATFORM     48
-
 #endif /* dl-procinfo.h */