summaryrefslogtreecommitdiff
path: root/bfd
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
parentf4ddf30f1108b2c0b3eee5677c912383ac903256 (diff)
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')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c2c8e1e282..ed99d92880 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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>
diff --git a/bfd/elf.c b/bfd/elf.c
index a1f857a900..b2a50bff3e 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;
}
}