Update NT_ARM note types for readelf

Message ID 20210517170442.3434749-1-luis.machado@linaro.org
State New
Headers show
Series
  • Update NT_ARM note types for readelf
Related show

Commit Message

Alan Modra via Binutils May 17, 2021, 5:04 p.m.
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(+)

-- 
2.25.1

Comments

Alan Modra via Binutils May 21, 2021, 9:45 a.m. | #1
Hi Luis,

> 	* readelf.c (get_note_type): Add missing NT_ARM_* entries.


Approved and applied.

Cheers
   Nick

Patch

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: