(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_aarch_za
(bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_aarch_zt
+ (bfd *, char *, int *, const void *, int);
extern char *elfcore_write_arc_v2
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_riscv_csr
return elfcore_make_note_pseudosection (abfd, ".reg-aarch-za", note);
}
+/* Convert NOTE into a bfd_section called ".reg-aarch-zt". Return TRUE if
+ successful, otherwise return FALSE. */
+
+static bool
+elfcore_grok_aarch_zt (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-aarch-zt", note);
+}
+
static bool
elfcore_grok_arc_v2 (bfd *abfd, Elf_Internal_Note *note)
{
else
return true;
+ case NT_ARM_ZT:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_aarch_zt (abfd, note);
+ else
+ return true;
+
case NT_GDB_TDESC:
if (note->namesz == 4
&& strcmp (note->namedata, "GDB") == 0)
size);
}
+/* Write the buffer of zt register values in aarch_zt (length SIZE) into
+ the note buffer BUF and update *BUFSIZ. ABFD is the bfd the note is being
+ written into. Return a pointer to the new start of the note buffer, to
+ replace BUF which may no longer be valid. */
+
+char *
+elfcore_write_aarch_zt (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *aarch_zt,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_ARM_ZT,
+ aarch_zt,
+ size);
+}
+
char *
elfcore_write_arc_v2 (bfd *abfd,
char *buf,
return elfcore_write_aarch_ssve (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-aarch-za") == 0)
return elfcore_write_aarch_za (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-aarch-zt") == 0)
+ return elfcore_write_aarch_zt (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-arc-v2") == 0)
return elfcore_write_arc_v2 (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".gdb-tdesc") == 0)
/* Note: name must be "LINUX". */
#define NT_ARM_ZA 0x40c /* AArch64 SME ZA register. */
/* Note: name must be "LINUX". */
+#define NT_ARM_ZT 0x40d /* AArch64 SME2 ZT registers. */
+ /* Note: name must be "LINUX". */
#define NT_ARC_V2 0x600 /* ARC HS accumulator/extra registers. */
/* note name must be "LINUX". */
#define NT_LARCH_CPUCFG 0xa00 /* LoongArch CPU config registers */