+2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
+ * elf.c (elfcore_grok_arc_v2): New function.
+ (elfcore_grok_note): Call the new function to handle the corresponding
+ note.
+ (elfcore_write_arc_v2): New function.
+ (elfcore_write_register_note): Call the new function to handle the
+ corresponding pseudo-sections.
+
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
PR ld/25861
(bfd *, char *, int *, const void *, int);
extern char *elfcore_write_aarch_pauth
(bfd *, char *, int *, const void *, int);
+extern char *elfcore_write_arc_v2
+ (bfd *, char *, int *, const void *, int);
extern char *elfcore_write_lwpstatus
(bfd *, char *, int *, long, int, const void *);
extern char *elfcore_write_register_note
return elfcore_make_note_pseudosection (abfd, ".reg-aarch-pauth", note);
}
+static bfd_boolean
+elfcore_grok_arc_v2 (bfd *abfd, Elf_Internal_Note *note)
+{
+ return elfcore_make_note_pseudosection (abfd, ".reg-arc-v2", note);
+}
+
#if defined (HAVE_PRPSINFO_T)
typedef prpsinfo_t elfcore_psinfo_t;
#if defined (HAVE_PRPSINFO32_T) /* Sparc64 cross Sparc32 */
else
return TRUE;
+ case NT_ARC_V2:
+ if (note->namesz == 6
+ && strcmp (note->namedata, "LINUX") == 0)
+ return elfcore_grok_arc_v2 (abfd, note);
+ else
+ return TRUE;
+
case NT_ARM_VFP:
if (note->namesz == 6
&& strcmp (note->namedata, "LINUX") == 0)
note_name, NT_ARM_PAC_MASK, aarch_pauth, size);
}
+char *
+elfcore_write_arc_v2 (bfd *abfd,
+ char *buf,
+ int *bufsiz,
+ const void *arc_v2,
+ int size)
+{
+ char *note_name = "LINUX";
+ return elfcore_write_note (abfd, buf, bufsiz,
+ note_name, NT_ARC_V2, arc_v2, size);
+}
+
char *
elfcore_write_register_note (bfd *abfd,
char *buf,
return elfcore_write_aarch_sve (abfd, buf, bufsiz, data, size);
if (strcmp (section, ".reg-aarch-pauth") == 0)
return elfcore_write_aarch_pauth (abfd, buf, bufsiz, data, size);
+ if (strcmp (section, ".reg-arc-v2") == 0)
+ return elfcore_write_arc_v2 (abfd, buf, bufsiz, data, size);
return NULL;
}
+2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
+ * elf.c (elfcore_grok_arc_v2): New function.
+ (elfcore_grok_note): Call the new function to handle the corresponding
+ note.
+ (elfcore_write_arc_v2): New function.
+ (elfcore_write_register_note): Call the new function to handle the
+ corresponding pseudo-sections.
+
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
PR ld/25861
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_ARC_V2:
+ return _("NT_ARC_V2 (ARC HS accumulator/extra registers)");
case NT_PSTATUS:
return _("NT_PSTATUS (pstatus structure)");
case NT_FPREGS:
+2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
+
+ * elf/common.h (NT_ARC_V2): New macro definitions.
+
2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
PR ld/25861
/* note name must be "LINUX". */
#define NT_ARM_PAC_MASK 0x406 /* AArch pointer authentication code masks */
/* note name must be "LINUX". */
+#define NT_ARC_V2 0x600 /* ARC HS accumulator/extra registers. */
+ /* note name must be "LINUX". */
#define NT_SIGINFO 0x53494749 /* Fields of siginfo_t. */
#define NT_FILE 0x46494c45 /* Description of mapped files. */