aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-usage.c
diff options
context:
space:
mode:
authorJavier Pello <devel@otheo.eu>2022-09-27 20:05:59 +0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-10-06 07:59:48 -0300
commit6099908fb84debee4c3bcb05d88769410c2aecd1 (patch)
treeeb8a0b7f45f201da95b06579c8ff151e37337c59 /elf/dl-usage.c
parentd178c67535f0d159df73843e7c18cbdb39b4d25d (diff)
downloadglibc-6099908fb84debee4c3bcb05d88769410c2aecd1.tar
glibc-6099908fb84debee4c3bcb05d88769410c2aecd1.tar.gz
glibc-6099908fb84debee4c3bcb05d88769410c2aecd1.tar.bz2
glibc-6099908fb84debee4c3bcb05d88769410c2aecd1.zip
elf: Remove legacy hwcaps support from the dynamic loader
Remove support for the legacy hwcaps subdirectories from the dynamic loader. Signed-off-by: Javier Pello <devel@otheo.eu> Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf/dl-usage.c')
-rw-r--r--elf/dl-usage.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/elf/dl-usage.c b/elf/dl-usage.c
index 98d8c98948..efd6c77c25 100644
--- a/elf/dl-usage.c
+++ b/elf/dl-usage.c
@@ -193,37 +193,6 @@ print_hwcaps_subdirectories (const struct dl_main_state *state)
No subdirectories of glibc-hwcaps directories are searched.\n");
}
-/* Write a list of hwcap subdirectories to standard output. See
- _dl_important_hwcaps in dl-hwcaps.c. */
-static void
-print_legacy_hwcap_directories (void)
-{
- _dl_printf ("\n\
-Legacy HWCAP subdirectories under library search path directories:\n");
-
- const char *platform = GLRO (dl_platform);
- if (platform != NULL)
- _dl_printf (" %s (AT_PLATFORM; supported, searched)\n", platform);
-
- _dl_printf (" tls (supported, searched)\n");
-
- uint64_t hwcap_mask = GET_HWCAP_MASK();
- uint64_t searched = GLRO (dl_hwcap) & hwcap_mask;
- for (int n = 63; n >= 0; --n)
- {
- uint64_t bit = 1ULL << n;
- if (HWCAP_IMPORTANT & bit)
- {
- _dl_printf (" %s", _dl_hwcap_string (n));
- bool first = true;
- print_hwcap_1 (&first, GLRO (dl_hwcap) & bit, "supported");
- print_hwcap_1 (&first, !(hwcap_mask & bit), "masked");
- print_hwcap_1 (&first, searched & bit, "searched");
- print_hwcap_1_finish (&first);
- }
- }
-}
-
void
_dl_help (const char *argv0, struct dl_main_state *state)
{
@@ -270,6 +239,5 @@ This program interpreter self-identifies as: " RTLD "\n\
argv0);
print_search_path_for_help (state);
print_hwcaps_subdirectories (state);
- print_legacy_hwcap_directories ();
_exit (EXIT_SUCCESS);
}