aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2021-08-05 13:50:17 -0300
committerLuis Machado <luis.machado@linaro.org>2021-08-11 09:42:44 -0300
commit3af2785c97622c0a64b266e18a06d735af822df9 (patch)
treefbe00b9558bf1edfaa135f3c73e333e557844f47 /binutils/readelf.c
parent4f212c5520a7bd56b83f7e4b3feff2048d394194 (diff)
downloadgdb-3af2785c97622c0a64b266e18a06d735af822df9.zip
gdb-3af2785c97622c0a64b266e18a06d735af822df9.tar.gz
gdb-3af2785c97622c0a64b266e18a06d735af822df9.tar.bz2
Add 3 new PAC-related ARM note types
The following patch synchronizes includes/objdump/readelf with the Linux Kernel in terms of ARM regset notes. We're currently missing 3 of them: NT_ARM_PACA_KEYS NT_ARM_PACG_KEYS NT_ARM_PAC_ENABLED_KEYS We don't need GDB to bother with this at the moment, so this doesn't update bfd/elf.c. If needed, we can do it in the future. binutils/ * readelf.c (get_note_type): Handle new ARM PAC notes. include/elf/ * common.h (NT_ARM_PACA_KEYS, NT_ARM_PACG_KEYS) (NT_ARM_PAC_ENABLED_KEYS): New constants.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index bd16fcc..bedd389 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -18828,8 +18828,14 @@ get_note_type (Filedata * filedata, unsigned e_type)
return _("NT_ARM_SVE (AArch SVE registers)");
case NT_ARM_PAC_MASK:
return _("NT_ARM_PAC_MASK (AArch pointer authentication code masks)");
+ case NT_ARM_PACA_KEYS:
+ return _("NT_ARM_PACA_KEYS (ARM pointer authentication address keys)");
+ case NT_ARM_PACG_KEYS:
+ return _("NT_ARM_PACG_KEYS (ARM pointer authentication generic keys)");
case NT_ARM_TAGGED_ADDR_CTRL:
return _("NT_ARM_TAGGED_ADDR_CTRL (AArch tagged address control)");
+ case NT_ARM_PAC_ENABLED_KEYS:
+ return _("NT_ARM_PAC_ENABLED_KEYS (AArch64 pointer authentication enabled keys)");
case NT_ARC_V2:
return _("NT_ARC_V2 (ARC HS accumulator/extra registers)");
case NT_RISCV_CSR: