aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2015-12-13 22:47:25 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2016-01-19 08:15:08 -0800
commit5b2c414df12bb61ab1e40099b92fc8f00983b930 (patch)
tree3ced632864b4977ddd3d5fb7eac9d2c4c724e8a7 /bfd/elf.c
parentf4ddf30f1108b2c0b3eee5677c912383ac903256 (diff)
downloadfsf-binutils-gdb-5b2c414df12bb61ab1e40099b92fc8f00983b930.zip
fsf-binutils-gdb-5b2c414df12bb61ab1e40099b92fc8f00983b930.tar.gz
fsf-binutils-gdb-5b2c414df12bb61ab1e40099b92fc8f00983b930.tar.bz2
Add a pseudosection for the NT_FREEBSD_THRMISC note.
bfd/ChangeLog: * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index a1f857a..b2a50bf 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;
}
}