+2020-03-13 Kamil Rytarowski <n54@gmx.com>
+
+ * elf.c (elfcore_grok_netbsd_note): Add support for
+ NT_NETBSDCORE_LWPSTATUS notes.
+
2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
* bfd-in2.h: Regenerate.
case NT_NETBSDCORE_AUXV:
/* NetBSD-specific Elf Auxiliary Vector data. */
return elfcore_make_auxv_note_section (abfd, note, 4);
+#endif
+#ifdef NT_NETBSDCORE_LWPSTATUS
+ case NT_NETBSDCORE_LWPSTATUS:
+ return elfcore_make_note_pseudosection (abfd,
+ ".note.netbsdcore.lwpstatus",
+ note);
#endif
default:
break;
}
- /* As of March 2017 there are no other machine-independent notes
+ /* As of March 2020 there are no other machine-independent notes
defined for NetBSD core files. If the note type is less
than the start of the machine-dependent note types, we don't
understand it. */
+2020-03-13 Kamil Rytarowski <n54@gmx.com>
+
+ * readelf.c (get_netbsd_elfcore_note_type): Add support for
+ NT_NETBSDCORE_LWPSTATUS notes.
+
2020-03-13 Alan Modra <amodra@gmail.com>
* elfcomm.c (get_archive_member_name): Always return malloc'd
return _("NetBSD ELF auxiliary vector data");
#endif
+#ifdef NT_NETBSDCORE_LWPSTATUS
+ case NT_NETBSDCORE_LWPSTATUS:
+ return _("PT_LWPSTATUS (ptrace_lwpstatus structure)");
+#endif
+
default:
- /* As of Jan 2002 there are no other machine-independent notes
+ /* As of Jan 2020 there are no other machine-independent notes
defined for NetBSD core files. If the note type is less
than the start of the machine-dependent note types, we don't
understand it. */
-2020-03-13 Kamil Rytarowski <n54@gmx.de>
+2020-03-13 Kamil Rytarowski <n54@gmx.com>
+
+ * elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define.
+
+2020-03-13 Kamil Rytarowski <n54@gmx.com>
* elf/common.h (NT_NETBSDCORE_AUXV): New define.
#define NT_NETBSDCORE_PROCINFO 1 /* Has a struct procinfo */
#define NT_NETBSDCORE_AUXV 2 /* Has auxv data */
+#define NT_NETBSDCORE_LWPSTATUS 24 /* Has LWPSTATUS data */
#define NT_NETBSDCORE_FIRSTMACH 32 /* start of machdep note types */