Skip to content
Snippets Groups Projects
Commit 540e6170 authored by Christos Zoulas's avatar Christos Zoulas Committed by Nick Clifton
Browse files

Add support to readelf to display NetBSD auxv notes in core files.

	PR 24664
	* readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
	auxv notes.
parent 0529f3fe
No related branches found
No related tags found
No related merge requests found
2019-06-12 Christos Zoulas <christos@zoulas.com>
PR 24664
* readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
auxv notes.
2019-06-11 Christos Zoulas <christos@zoulas.com> 2019-06-11 Christos Zoulas <christos@zoulas.com>
PR 24662 PR 24662
......
...@@ -18122,18 +18122,29 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type) ...@@ -18122,18 +18122,29 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type)
{ {
static char buff[64]; static char buff[64];
   
if (e_type == NT_NETBSDCORE_PROCINFO) switch (e_type)
return _("NetBSD procinfo structure"); {
case NT_NETBSDCORE_PROCINFO:
/* NetBSD core "procinfo" structure. */
return _("NetBSD procinfo structure");
   
/* As of Jan 2002 there are no other machine-independent notes #ifdef NT_NETBSDCORE_AUXV
defined for NetBSD core files. If the note type is less case NT_NETBSDCORE_AUXV:
than the start of the machine-dependent note types, we don't return _("NetBSD ELF auxiliary vector data");
understand it. */ #endif
   
if (e_type < NT_NETBSDCORE_FIRSTMACH) default:
{ /* As of Jan 2002 there are no other machine-independent notes
snprintf (buff, sizeof (buff), _("Unknown note type: (0x%08x)"), e_type); defined for NetBSD core files. If the note type is less
return buff; than the start of the machine-dependent note types, we don't
understand it. */
if (e_type < NT_NETBSDCORE_FIRSTMACH)
{
snprintf (buff, sizeof (buff), _("Unknown note type: (0x%08x)"), e_type);
return buff;
}
break;
} }
   
switch (filedata->file_header.e_machine) switch (filedata->file_header.e_machine)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment