ce426f
From de9b90366c27db80777d5099e4b22298f0b61a29 Mon Sep 17 00:00:00 2001
ce426f
From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
ce426f
Date: Thu, 13 Aug 2015 14:33:06 -0300
ce426f
Subject: [PATCH] powerpc: Add missing hwcap strings.
ce426f
ce426f
Some features in hwcap.h do not have matching string descriptors
ce426f
to be displayed when LD_SHOW_AUXV=1.  This patch fixes the problem.
ce426f
ce426f
2015-08-13  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
ce426f
ce426f
	* sysdeps/powerpc/dl-procinfo.c:
ce426f
	(_dl_powerpc_cap_flags): Added missing strings for some
ce426f
	hwcap features.
ce426f
	* sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
ce426f
ce426f
(cherry picked from commit 94ec7e007f4845de284d4f7569721b225ba77572)
ce426f
---
ce426f
 ChangeLog                     | 7 +++++++
ce426f
 sysdeps/powerpc/dl-procinfo.c | 6 +++---
ce426f
 sysdeps/powerpc/dl-procinfo.h | 4 ++--
ce426f
 3 files changed, 12 insertions(+), 5 deletions(-)
ce426f
ce426f
diff --git a/ChangeLog b/ChangeLog
ce426f
index 5cbd6d6..d9d3659 100644
ce426f
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
ce426f
index 3a8cc41..6eda5d9 100644
ce426f
--- a/sysdeps/powerpc/dl-procinfo.c
ce426f
+++ b/sysdeps/powerpc/dl-procinfo.c
ce426f
@@ -45,11 +45,11 @@
ce426f
 #if !defined PROCINFO_DECL && defined SHARED
ce426f
   ._dl_powerpc_cap_flags
ce426f
 #else
ce426f
-PROCINFO_CLASS const char _dl_powerpc_cap_flags[57][10]
ce426f
+PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
ce426f
 #endif
ce426f
 #ifndef PROCINFO_DECL
ce426f
 = {
ce426f
-    "vsx", 
ce426f
+    "ppcle", "true_le", "archpmu", "vsx",
ce426f
     "arch_2_06", "power6x", "dfp", "pa6t",
ce426f
     "arch_2_05", "ic_snoop", "smt", "booke",
ce426f
     "cellbe", "power5+", "power5", "power4",
ce426f
@@ -62,7 +62,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[57][10]
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
-    "", "", "tar", "isel",
ce426f
+    "", "vcrypto", "tar", "isel",
ce426f
     "ebb", "dscr", "htm", "arch_2_07",
ce426f
   }
ce426f
 #endif
ce426f
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h
ce426f
index cf167b0..36873cf 100644
ce426f
--- a/sysdeps/powerpc/dl-procinfo.h
ce426f
+++ b/sysdeps/powerpc/dl-procinfo.h
ce426f
@@ -22,8 +22,8 @@
ce426f
 #include <ldsodefs.h>
ce426f
 #include <sysdep.h>	/* This defines the PPC_FEATURE[2]_* macros.  */
ce426f
 
ce426f
-/* There are 25 bits used, but they are bits 7..31.  */
ce426f
-#define _DL_HWCAP_FIRST		7
ce426f
+/* There are 28 bits used, but they are bits 4..31.  */
ce426f
+#define _DL_HWCAP_FIRST		4
ce426f
 
ce426f
 /* The total number of available bits (including those prior to
ce426f
    _DL_HWCAP_FIRST).  Some of these bits might not be used.  */
ce426f
-- 
ce426f
2.1.0
ce426f