[PATCH 3/3] aarch64: add some new core note types name

Kuan-Ying Lee kuan-ying.lee@canonical.com
Wed Aug 14 08:51:20 GMT 2024


Recognize names of some new core note types in ebl_core_note_type_name.

Signed-off-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com>
---
 libebl/eblcorenotetypename.c | 3 +++
 libelf/elf.h                 | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c
index 3e2f8daa0fd5..18114eb9d0da 100644
--- a/libebl/eblcorenotetypename.c
+++ b/libebl/eblcorenotetypename.c
@@ -95,6 +95,9 @@ ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len)
 	    KNOWNSTYPE (ARM_TAGGED_ADDR_CTRL);
 	    KNOWNSTYPE (ARM_PAC_ENABLED_KEYS);
 	    KNOWNSTYPE (ARM_PAC_MASK);
+	    KNOWNSTYPE (ARM_SVE);
+	    KNOWNSTYPE (ARM_SSVE);
+	    KNOWNSTYPE (ARM_ZA);
 	    KNOWNSTYPE (SIGINFO);
 	    KNOWNSTYPE (FILE);
 #undef KNOWNSTYPE
diff --git a/libelf/elf.h b/libelf/elf.h
index 081742a9c38c..b17f4fdea070 100644
--- a/libelf/elf.h
+++ b/libelf/elf.h
@@ -831,6 +831,8 @@ typedef struct
 					   control.  */
 #define NT_ARM_PAC_ENABLED_KEYS	0x40a	/* AArch64 pointer authentication
 					   enabled keys.  */
+#define NT_ARM_SSVE	0x40b	/* ARM Streaming SVE registers */
+#define NT_ARM_ZA	0x40c	/* ARM SME ZA registers */
 #define NT_VMCOREDD	0x700		/* Vmcore Device Dump Note.  */
 #define NT_MIPS_DSP	0x800		/* MIPS DSP ASE registers.  */
 #define NT_MIPS_FP_MODE	0x801		/* MIPS floating-point mode.  */
-- 
2.43.0



More information about the Elfutils-devel mailing list