|
|
190f2a |
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
|
|
190f2a |
From: Keith Seitz <keiths@redhat.com>
|
|
|
190f2a |
Date: Fri, 11 Jan 2019 17:02:12 -0500
|
|
|
190f2a |
Subject: gdb-rhbz1187581-power8-regs-not-in-8.2-02of15.patch
|
|
|
190f2a |
|
|
|
190f2a |
;; Add grok/write functions for new ppc core note sections
|
|
|
190f2a |
;; Edjunior Barbosa Machado, RH BZ 1187581
|
|
|
190f2a |
|
|
|
190f2a |
Add grok/write functions for new ppc core note sections
|
|
|
190f2a |
|
|
|
190f2a |
This patch adds functions for grokking and writing more register core
|
|
|
190f2a |
note sections (NT_PPC_TAR, NT_PPC_PPR, NT_PPC_DSCR, NT_PPC_EBB,
|
|
|
190f2a |
NT_PPC_PMU, NT_PPC_TM_CGPR, NT_PPC_TM_CFPR, NT_PPC_TM_CVMX,
|
|
|
190f2a |
NT_PPC_TM_CVSX, NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR,
|
|
|
190f2a |
NT_PPC_TM_CDSCR).
|
|
|
190f2a |
|
|
|
190f2a |
2018-07-16 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
|
|
|
190f2a |
|
|
|
190f2a |
bfd/
|
|
|
190f2a |
* elf-bfd.h (elfcore_write_ppc_tar): Add prototype.
|
|
|
190f2a |
(elfcore_write_ppc_ppr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_dscr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_ebb): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_pmu): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cgpr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cfpr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cvmx): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cvsx): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_spr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_ctar): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cppr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cdscr): Likewise.
|
|
|
190f2a |
* elf.c (elfcore_write_ppc_tar): New function.
|
|
|
190f2a |
(elfcore_write_ppc_ppr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_dscr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_ebb): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_pmu): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cgpr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cfpr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cvmx): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cvsx): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_spr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_ctar): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cppr): Likewise.
|
|
|
190f2a |
(elfcore_write_ppc_tm_cdscr): Likewise.
|
|
|
190f2a |
(elfcore_write_register_note): Call them.
|
|
|
190f2a |
(elfcore_grok_ppc_tar): New function.
|
|
|
190f2a |
(elfcore_grok_ppc_ppr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_dscr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_ebb): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_pmu): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cgpr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cfpr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cvmx): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cvsx): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_spr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_ctar): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cppr): Likewise.
|
|
|
190f2a |
(elfcore_grok_ppc_tm_cdscr): Likewise.
|
|
|
190f2a |
(elfcore_grok_note): Call them.
|
|
|
190f2a |
|
|
|
190f2a |
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
|
|
|
190f2a |
--- a/bfd/elf-bfd.h
|
|
|
190f2a |
+++ b/bfd/elf-bfd.h
|
|
|
190f2a |
@@ -2569,6 +2569,32 @@ extern char *elfcore_write_ppc_vmx
|
|
|
190f2a |
(bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
extern char *elfcore_write_ppc_vsx
|
|
|
190f2a |
(bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tar
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_ppr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_dscr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_ebb
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_pmu
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cgpr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cfpr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cvmx
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cvsx
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_spr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_ctar
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cppr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
+extern char *elfcore_write_ppc_tm_cdscr
|
|
|
190f2a |
+ (bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
extern char *elfcore_write_s390_timer
|
|
|
190f2a |
(bfd *, char *, int *, const void *, int);
|
|
|
190f2a |
extern char *elfcore_write_s390_todcmp
|
|
|
190f2a |
diff --git a/bfd/elf.c b/bfd/elf.c
|
|
|
190f2a |
--- a/bfd/elf.c
|
|
|
190f2a |
+++ b/bfd/elf.c
|
|
|
190f2a |
@@ -9238,6 +9238,84 @@ elfcore_grok_ppc_vsx (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
return elfcore_make_note_pseudosection (abfd, ".reg-ppc-vsx", note);
|
|
|
190f2a |
}
|
|
|
190f2a |
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tar (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tar", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_ppr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-ppr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_dscr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-dscr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_ebb (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-ebb", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_pmu (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-pmu", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cgpr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cgpr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cfpr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cfpr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cvmx (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cvmx", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cvsx (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cvsx", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_spr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-spr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_ctar (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-ctar", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cppr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cppr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+static bfd_boolean
|
|
|
190f2a |
+elfcore_grok_ppc_tm_cdscr (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ return elfcore_make_note_pseudosection (abfd, ".reg-ppc-tm-cdscr", note);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
static bfd_boolean
|
|
|
190f2a |
elfcore_grok_s390_high_gprs (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
{
|
|
|
190f2a |
@@ -9723,6 +9801,97 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
|
|
|
190f2a |
else
|
|
|
190f2a |
return TRUE;
|
|
|
190f2a |
|
|
|
190f2a |
+ case NT_PPC_TAR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tar (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_PPR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_ppr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_DSCR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_dscr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_EBB:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_ebb (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_PMU:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_pmu (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CGPR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cgpr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CFPR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cfpr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CVMX:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cvmx (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CVSX:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cvsx (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_SPR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_spr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CTAR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_ctar (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CPPR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cppr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
+ case NT_PPC_TM_CDSCR:
|
|
|
190f2a |
+ if (note->namesz == 6
|
|
|
190f2a |
+ && strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
+ return elfcore_grok_ppc_tm_cdscr (abfd, note);
|
|
|
190f2a |
+ else
|
|
|
190f2a |
+ return TRUE;
|
|
|
190f2a |
+
|
|
|
190f2a |
case NT_S390_HIGH_GPRS:
|
|
|
190f2a |
if (note->namesz == 6
|
|
|
190f2a |
&& strcmp (note->namedata, "LINUX") == 0)
|
|
|
190f2a |
@@ -10830,6 +10999,162 @@ elfcore_write_ppc_vsx (bfd *abfd,
|
|
|
190f2a |
note_name, NT_PPC_VSX, ppc_vsx, size);
|
|
|
190f2a |
}
|
|
|
190f2a |
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tar (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tar,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TAR, ppc_tar, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_ppr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_ppr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_PPR, ppc_ppr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_dscr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_dscr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_DSCR, ppc_dscr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_ebb (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_ebb,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_EBB, ppc_ebb, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_pmu (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_pmu,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_PMU, ppc_pmu, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cgpr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cgpr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CGPR, ppc_tm_cgpr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cfpr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cfpr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CFPR, ppc_tm_cfpr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cvmx (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cvmx,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CVMX, ppc_tm_cvmx, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cvsx (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cvsx,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CVSX, ppc_tm_cvsx, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_spr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_spr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_SPR, ppc_tm_spr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_ctar (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_ctar,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CTAR, ppc_tm_ctar, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cppr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cppr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CPPR, ppc_tm_cppr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
+char *
|
|
|
190f2a |
+elfcore_write_ppc_tm_cdscr (bfd *abfd,
|
|
|
190f2a |
+ char *buf,
|
|
|
190f2a |
+ int *bufsiz,
|
|
|
190f2a |
+ const void *ppc_tm_cdscr,
|
|
|
190f2a |
+ int size)
|
|
|
190f2a |
+{
|
|
|
190f2a |
+ char *note_name = "LINUX";
|
|
|
190f2a |
+ return elfcore_write_note (abfd, buf, bufsiz,
|
|
|
190f2a |
+ note_name, NT_PPC_TM_CDSCR, ppc_tm_cdscr, size);
|
|
|
190f2a |
+}
|
|
|
190f2a |
+
|
|
|
190f2a |
static char *
|
|
|
190f2a |
elfcore_write_s390_high_gprs (bfd *abfd,
|
|
|
190f2a |
char *buf,
|
|
|
190f2a |
@@ -11070,6 +11395,32 @@ elfcore_write_register_note (bfd *abfd,
|
|
|
190f2a |
return elfcore_write_ppc_vmx (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
if (strcmp (section, ".reg-ppc-vsx") == 0)
|
|
|
190f2a |
return elfcore_write_ppc_vsx (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tar") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tar (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-ppr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_ppr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-dscr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_dscr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-ebb") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_ebb (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-pmu") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_pmu (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cgpr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cgpr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cfpr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cfpr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cvmx") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cvmx (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cvsx") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cvsx (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-spr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_spr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-ctar") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_ctar (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cppr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cppr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
+ if (strcmp (section, ".reg-ppc-tm-cdscr") == 0)
|
|
|
190f2a |
+ return elfcore_write_ppc_tm_cdscr (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
if (strcmp (section, ".reg-s390-high-gprs") == 0)
|
|
|
190f2a |
return elfcore_write_s390_high_gprs (abfd, buf, bufsiz, data, size);
|
|
|
190f2a |
if (strcmp (section, ".reg-s390-timer") == 0)
|