* [PATCH] [ppc64] Add new NTs available since Linux 4.8
@ 2017-08-14 14:51 Gustavo Romero
2017-08-15 1:29 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Romero @ 2017-08-14 14:51 UTC (permalink / raw)
To: binutils
Add new note types available since Linux 4.8 to elf/common.h and
make the 'readelf' tool aware of it.
---
binutils/ChangeLog | 5 +++++
binutils/readelf.c | 26 ++++++++++++++++++++++++++
include/ChangeLog | 16 ++++++++++++++++
include/elf/common.h | 26 ++++++++++++++++++++++++++
4 files changed, 73 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1208754..01d0ac6 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
+
+ * readelf.c (get_note_type): Handle PPC64 note types available
+ since Linux 4.8.
+
2017-08-12 Alan Modra <amodra@gmail.com>
* readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 0fc6562..4bd68f2 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -16137,6 +16137,32 @@ get_note_type (unsigned e_type)
return _("NT_PPC_VMX (ppc Altivec registers)");
case NT_PPC_VSX:
return _("NT_PPC_VSX (ppc VSX registers)");
+ case NT_PPC_TAR:
+ return _("NT_PPC_TAR (ppc TAR register)");
+ case NT_PPC_PPR:
+ return _("NT_PPC_PPR (ppc PPR register)");
+ case NT_PPC_DSCR:
+ return _("NT_PPC_DSCR (ppc DSCR register)");
+ case NT_PPC_EBB:
+ return _("NT_PPC_EBB (ppc EBB registers)");
+ case NT_PPC_PMU:
+ return _("NT_PPC_PMU (ppc PMU registers)");
+ case NT_PPC_TM_CGPR:
+ return _("NT_PPC_TM_CGPR (ppc checkpointed GPR registers)");
+ case NT_PPC_TM_CFPR:
+ return _("NT_PPC_TM_CFPR (ppc checkpointed floating point registers)");
+ case NT_PPC_TM_CVMX:
+ return _("NT_PPC_TM_CVMX (ppc checkpointed Altivec registers)");
+ case NT_PPC_TM_CVSX:
+ return _("NT_PPC_TM_VSX (ppc checkpointed VSX registers)");
+ case NT_PPC_TM_SPR:
+ return _("NT_PPC_TM_SPR (ppc TM special purpose registers)");
+ case NT_PPC_TM_CTAR:
+ return _("NT_PPC_TM_CTAR (ppc checkpointed TAR register)");
+ case NT_PPC_TM_CPPR:
+ return _("NT_PPC_TM_CPPR (ppc checkpointed PPR register)");
+ case NT_PPC_TM_CDSCR:
+ return _("NT_PPC_TM_CDSCR (ppc checkpointed DSCR register)");
case NT_386_TLS:
return _("NT_386_TLS (x86 TLS information)");
case NT_386_IOPERM:
diff --git a/include/ChangeLog b/include/ChangeLog
index 332ae93..fcf8466 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,19 @@
+2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
+
+ * elf/common.h (NT_PPC_TAR): New macro.
+ (NT_PPC_PPR): Likewise.
+ (NT_PPC_DSCR): Likewise.
+ (NT_PPC_EBB): Likewise.
+ (NT_PPC_PMU): Likewise.
+ (NT_PPC_TM_CGPR): Likewise.
+ (NT_PPC_TM_CFPR): Likewise.
+ (NT_PPC_TM_CVMX): Likewise.
+ (NT_PPC_TM_CVSX): Likewise.
+ (NT_PPC_TM_SPR): Likewise.
+ (NT_PPC_TM_CTAR): Likewise.
+ (NT_PPC_TM_CPPR): Likewise.
+ (NT_PPC_TM_CDSCR): Likewise.
+
2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/21903:
diff --git a/include/elf/common.h b/include/elf/common.h
index 3a144f0..d08731c 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -570,6 +570,32 @@
/* note name must be "LINUX". */
#define NT_PPC_VSX 0x102 /* PowerPC VSX registers */
/* note name must be "LINUX". */
+#define NT_PPC_TAR 0x103 /* PowerPC Target Address Register */
+ /* note name must be "LINUX". */
+#define NT_PPC_PPR 0x104 /* PowerPC Program Priority Register */
+ /* note name must be "LINUX". */
+#define NT_PPC_DSCR 0x105 /* PowerPC Data Stream Control Register */
+ /* note name must be "LINUX". */
+#define NT_PPC_EBB 0x106 /* PowerPC Event Based Branch Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_PMU 0x107 /* PowerPC Performance Monitor Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CGPR 0x108 /* PowerPC TM checkpointed GPR Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CFPR 0x109 /* PowerPC TM checkpointed FPR Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CVMX 0x10a /* PowerPC TM checkpointed VMX Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CVSX 0x10b /* PowerPC TM checkpointed VSX Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_SPR 0x10c /* PowerPC TM Special Purpose Registers */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CTAR 0x10d /* PowerPC TM checkpointed TAR */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CPPR 0x10e /* PowerPC TM checkpointed PPR */
+ /* note name must be "LINUX". */
+#define NT_PPC_TM_CDSCR 0x10f /* PowerPC TM checkpointed Data SCR */
+ /* note name must be "LINUX". */
#define NT_386_TLS 0x200 /* x86 TLS information */
/* note name must be "LINUX". */
#define NT_386_IOPERM 0x201 /* x86 io permissions */
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [ppc64] Add new NTs available since Linux 4.8
2017-08-14 14:51 [PATCH] [ppc64] Add new NTs available since Linux 4.8 Gustavo Romero
@ 2017-08-15 1:29 ` Alan Modra
2017-08-16 13:32 ` Gustavo Romero
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2017-08-15 1:29 UTC (permalink / raw)
To: Gustavo Romero; +Cc: binutils
On Mon, Aug 14, 2017 at 10:48:04AM -0400, Gustavo Romero wrote:
> Add new note types available since Linux 4.8 to elf/common.h and
> make the 'readelf' tool aware of it.
Thanks! I'll commit this when upstream git is available. At the
moment I get:
$ git remote update
Fetching origin
error: file ./objects/pack/pack-afe49dbb86bb6210ba4c1efd341da07e25e05cba.pack is not a GIT packfile
error: packfile ./objects/pack/pack-afe49dbb86bb6210ba4c1efd341da07e25e05cba.pack cannot be accessed
[snip lots more]
remote: fatal: revision walk setup failed
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
error: Could not fetch origin
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [ppc64] Add new NTs available since Linux 4.8
2017-08-15 1:29 ` Alan Modra
@ 2017-08-16 13:32 ` Gustavo Romero
0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Romero @ 2017-08-16 13:32 UTC (permalink / raw)
To: Alan Modra; +Cc: binutils
Hi Alan,
Thanks a lot for reviewing and pushing the change.
Regards,
Gustavo
On 14-08-2017 22:24, Alan Modra wrote:
> On Mon, Aug 14, 2017 at 10:48:04AM -0400, Gustavo Romero wrote:
>> Add new note types available since Linux 4.8 to elf/common.h and
>> make the 'readelf' tool aware of it.
>
> Thanks! I'll commit this when upstream git is available. At the
> moment I get:
>
> $ git remote update
> Fetching origin
> error: file ./objects/pack/pack-afe49dbb86bb6210ba4c1efd341da07e25e05cba.pack is not a GIT packfile
> error: packfile ./objects/pack/pack-afe49dbb86bb6210ba4c1efd341da07e25e05cba.pack cannot be accessed
> [snip lots more]
> remote: fatal: revision walk setup failed
> remote: aborting due to possible repository corruption on the remote side.
> fatal: protocol error: bad pack header
> error: Could not fetch origin
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-16 13:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-14 14:51 [PATCH] [ppc64] Add new NTs available since Linux 4.8 Gustavo Romero
2017-08-15 1:29 ` Alan Modra
2017-08-16 13:32 ` Gustavo Romero
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).