Add a pseudosection for the NT_FREEBSD_THRMISC note.

bfd/ChangeLog:

	* elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
This commit is contained in:
John Baldwin 2015-12-13 22:47:25 -08:00
parent f4ddf30f11
commit 5b2c414df1
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2016-01-19 John Baldwin <jhb@FreeBSD.org>
* elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>

View File

@ -9287,6 +9287,13 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
case NT_SIGINFO:
return elfcore_make_note_pseudosection (abfd, ".note.linuxcore.siginfo",
note);
case NT_FREEBSD_THRMISC:
if (note->namesz == 8
&& strcmp (note->namedata, "FreeBSD") == 0)
return elfcore_make_note_pseudosection (abfd, ".thrmisc", note);
else
return TRUE;
}
}