summary refs log tree commit diff
path: root/elf/cache.c
diff options
context:
space:
mode:
authorLucas A. M. Magalhaes <lamm@linux.ibm.com>2022-07-14 14:37:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-08-04 09:09:48 -0300
commit8ee878592c4a642937152c8308b8faef86bcfc40 (patch)
treebc02c572bc8c3441d59922be09705b27870e2793 /elf/cache.c
parent5a57ad23ba73be7aefd2c243489330f5cd8d3ca6 (diff)
downloadglibc-8ee878592c4a642937152c8308b8faef86bcfc40.tar.gz
glibc-8ee878592c4a642937152c8308b8faef86bcfc40.tar.xz
glibc-8ee878592c4a642937152c8308b8faef86bcfc40.zip
Assume only FLAG_ELF_LIBC6 suport
The older libc versions are obsolete for over twenty years now.
This patch removes the special flags for libc5 and libc4 and assumes
that all libraries cached are libc6 compatible and use FLAG_ELF_LIBC6.

Checked with a build for all affected architectures.

Co-authored-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/cache.c')
-rw-r--r--elf/cache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/elf/cache.c b/elf/cache.c
index 3d7d3a67bf..f5f3ef8c4d 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -157,6 +157,7 @@ struct cache_entry
 /* List of all cache entries.  */
 static struct cache_entry *entries;
 
+/* libc4, ELF and libc5 are unsupported.  */
 static const char *flag_descr[] =
 { "libc4", "ELF", "libc5", "libc6"};
 
@@ -168,14 +169,11 @@ print_entry (const char *lib, int flag, uint64_t hwcap,
   printf ("\t%s (", lib);
   switch (flag & FLAG_TYPE_MASK)
     {
-    case FLAG_LIBC4:
-    case FLAG_ELF:
-    case FLAG_ELF_LIBC5:
     case FLAG_ELF_LIBC6:
       fputs (flag_descr[flag & FLAG_TYPE_MASK], stdout);
       break;
     default:
-      fputs (_("unknown"), stdout);
+      fputs (_("unknown or unsupported flag"), stdout);
       break;
     }
   switch (flag & FLAG_REQUIRED_MASK)