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

Message ID 20240814085134.109500-4-kuan-ying.lee@canonical.com
State Committed
Headers
Series aarch64: add some core note types name |

Commit Message

Kuan-Ying Lee Aug. 14, 2024, 8:51 a.m. UTC
  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(+)
  

Comments

Mark Wielaard Aug. 16, 2024, 11:55 p.m. UTC | #1
Hi,

On Wed, Aug 14, 2024 at 04:51:20PM +0800, Kuan-Ying Lee wrote:
> Recognize names of some new core note types in ebl_core_note_type_name.

Thanks. Pushed the eblcorenotetypename.c part.
I pushed a glibc elf.h sync separately (commit 0abdd2e79).

Cheers,

Mark
  

Patch

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.  */