From: John Baldwin Date: Mon, 14 Dec 2015 06:47:25 +0000 (-0800) Subject: Add a pseudosection for the NT_FREEBSD_THRMISC note. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b2c414df12bb61ab1e40099b92fc8f00983b930;p=binutils-gdb.git Add a pseudosection for the NT_FREEBSD_THRMISC note. bfd/ChangeLog: * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c2c8e1e2821..ed99d928804 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-01-19 John Baldwin + + * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. + 2016-01-18 Miranda Cupertino Zissulescu Claudiu diff --git a/bfd/elf.c b/bfd/elf.c index a1f857a900b..b2a50bff3e7 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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; } }