Add support for NetBSD/sh3 core reg sections to readelf.

PR 24665
	* readelf.c (get_netbsd_elfcore_note_type): Add support for SH
	core notes.
This commit is contained in:
Christos Zoulas 2019-06-12 14:35:04 +01:00 committed by Nick Clifton
parent 540e617049
commit c0d38b0ec6
2 changed files with 23 additions and 0 deletions

View file

@ -18168,6 +18168,23 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type)
}
break;
/* On SuperH, PT_GETREGS == mach+3 and PT_GETFPREGS == mach+5.
There's also old PT___GETREGS40 == mach + 1 for old reg
structure which lacks GBR. */
case EM_SH:
switch (e_type)
{
case NT_NETBSDCORE_FIRSTMACH + 1:
return _("PT___GETREGS40 (old reg structure)");
case NT_NETBSDCORE_FIRSTMACH + 3:
return _("PT_GETREGS (reg structure)");
case NT_NETBSDCORE_FIRSTMACH + 5:
return _("PT_GETFPREGS (fpreg structure)");
default:
break;
}
break;
/* On all other arch's, PT_GETREGS == mach+1 and
PT_GETFPREGS == mach+3. */
default: