]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Add missing hwcap strings.
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Fri, 14 Oct 2016 19:57:32 +0000 (16:57 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 14 Oct 2016 19:57:32 +0000 (16:57 -0300)
Some features in hwcap.h do not have matching string descriptors
to be displayed when LD_SHOW_AUXV=1.  This patch fixes the problem.

* sysdeps/powerpc/dl-procinfo.c:
(_dl_powerpc_cap_flags): Added missing strings for some
hwcap features.
* sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.

(cherry picked from commit 94ec7e007f4845de284d4f7569721b225ba77572)

ChangeLog
sysdeps/powerpc/dl-procinfo.c
sysdeps/powerpc/dl-procinfo.h

index b80acd25c8496420149b4cfdbcc781e90144183c..d377079aca91337738e3ca9804f6f946b80455b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-10-14  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/dl-procinfo.c:
+       (_dl_powerpc_cap_flags): Added missing strings for some
+       hwcap features.
+       * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
+
 2016-10-13  H.J. Lu <hjl.tools@gmail.com>
 
        [BZ #20384]
index 3a8cc4173fe8e8193ff29e9c620b3b56e8cc9735..6eda5d9dc72593d92910edda6f9e14ddf5cff9e9 100644 (file)
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_powerpc_cap_flags
 #else
-PROCINFO_CLASS const char _dl_powerpc_cap_flags[57][10]
+PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
 #endif
 #ifndef PROCINFO_DECL
 = {
-    "vsx",
+    "ppcle", "true_le", "archpmu", "vsx",
     "arch_2_06", "power6x", "dfp", "pa6t",
     "arch_2_05", "ic_snoop", "smt", "booke",
     "cellbe", "power5+", "power5", "power4",
@@ -62,7 +62,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[57][10]
     "", "", "", "",
     "", "", "", "",
     "", "", "", "",
-    "", "", "tar", "isel",
+    "", "vcrypto", "tar", "isel",
     "ebb", "dscr", "htm", "arch_2_07",
   }
 #endif
index cf167b06675742f01f588974f3b369063fefdb46..36873cf2f21c876dd38d38527c7a19faae583228 100644 (file)
@@ -22,8 +22,8 @@
 #include <ldsodefs.h>
 #include <sysdep.h>    /* This defines the PPC_FEATURE[2]_* macros.  */
 
-/* There are 25 bits used, but they are bits 7..31.  */
-#define _DL_HWCAP_FIRST                7
+/* There are 28 bits used, but they are bits 4..31.  */
+#define _DL_HWCAP_FIRST                4
 
 /* The total number of available bits (including those prior to
    _DL_HWCAP_FIRST).  Some of these bits might not be used.  */