[PATCH] [Binutils] Update NT_ARM note types for readelf

Luis Machado luis.machado@linaro.org
Mon May 17 17:04:42 GMT 2021


I see a few missing NT_ARM_* types. Update the code to handle those.

binutils/ChangeLog:

YYYY-MM-DD  Luis Machado  <luis.machado@linaro.org>

	* readelf.c (get_note_type): Add missing NT_ARM_* entries.
---
 binutils/readelf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/binutils/readelf.c b/binutils/readelf.c
index cf2011753c8..8357df69363 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -18676,6 +18676,12 @@ get_note_type (Filedata * filedata, unsigned e_type)
 	return _("NT_ARM_HW_BREAK (AArch hardware breakpoint registers)");
       case NT_ARM_HW_WATCH:
 	return _("NT_ARM_HW_WATCH (AArch hardware watchpoint registers)");
+      case NT_ARM_SVE:
+	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_TAGGED_ADDR_CTRL:
+	return _("NT_ARM_TAGGED_ADDR_CTRL (AArch tagged address control)");
       case NT_ARC_V2:
 	return _("NT_ARC_V2 (ARC HS accumulator/extra registers)");
       case NT_RISCV_CSR:
-- 
2.25.1



More information about the Binutils mailing list