[v3,2/6] Add a psuedosection for the NT_FREEBSD_THRMISC note.
Commit Message
bfd/ChangeLog:
* elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
---
bfd/ChangeLog | 4 ++++
bfd/elf.c | 7 +++++++
2 files changed, 11 insertions(+)
Comments
BTW, typo in subject: s/psuedo/pseudo/
Thanks,
Pedro Alves
On Monday, January 18, 2016 12:38:18 PM Pedro Alves wrote:
> BTW, typo in subject: s/psuedo/pseudo/
Doh, thanks.
@@ -1,3 +1,7 @@
+2016-01-16 John Baldwin <jhb@FreeBSD.org>
+
+ * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
+
2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
@@ -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;
}
}