diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-06-29 10:30:09 +0200 |
---|---|---|
committer | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2017-06-29 10:30:09 +0200 |
commit | 88ab90e860a46a1123fcfd13bfe51cd360e9c3f7 (patch) | |
tree | 3d4c61bea084a5cee8434b3ced00266c07a4a337 /binutils | |
parent | 1b19ec971047a074486e6b775dc1969aa13f30fb (diff) | |
download | gdb-88ab90e860a46a1123fcfd13bfe51cd360e9c3f7.zip gdb-88ab90e860a46a1123fcfd13bfe51cd360e9c3f7.tar.gz gdb-88ab90e860a46a1123fcfd13bfe51cd360e9c3f7.tar.bz2 |
S390: Support guarded-storage core note sections
Newer Linux kernel versions offer two new register sets in support of the
z/Architecture's guarded storage facility: NT_S390_GS_CB, the
"guarded-storage registers", and NT_S390_GS_BC, the "guarded-storage
broadcast control block". This patch adds support for the respective core
notes sections to binutils.
bfd/ChangeLog:
* elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype.
(elfcore_write_s390_gs_bc): Likewise.
* elf.c (elfcore_grok_s390_gs_cb): New function.
(elfcore_grok_s390_gs_bc): New function.
(elfcore_grok_note): Call them.
(elfcore_write_s390_gs_cb): New function.
(elfcore_write_s390_gs_bc): New function.
(elfcore_write_register_note): Call them.
binutils/ChangeLog:
* readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
include/ChangeLog:
* elf/common.h (NT_S390_GS_CB): New macro.
(NT_S390_GS_BC): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f0ecdc6..14cfcff 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC. + 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when diff --git a/binutils/readelf.c b/binutils/readelf.c index df7e8c3..90af7cc 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -16158,6 +16158,10 @@ get_note_type (unsigned e_type) return _("NT_S390_VXRS_LOW (s390 vector registers 0-15 upper half)"); case NT_S390_VXRS_HIGH: return _("NT_S390_VXRS_HIGH (s390 vector registers 16-31)"); + case NT_S390_GS_CB: + return _("NT_S390_GS_CB (s390 guarded-storage registers)"); + case NT_S390_GS_BC: + return _("NT_S390_GS_BC (s390 guarded-storage broadcast control)"); case NT_ARM_VFP: return _("NT_ARM_VFP (arm VFP registers)"); case NT_ARM_TLS: |