[PATCH 7/8] Create psuedo sections for FreeBSD NT_PTLWPINFO core notes.

John Baldwin
2017-06-29T23:33:27Z

bfd/ChangeLog:

* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
---
bfd/ChangeLog | 4 ++++
bfd/elf.c | 4 ++++
2 files changed, 8 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5177bc749d..7001b8624d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-28 John Baldwin <jhb@FreeBSD.org>
+
+ * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
+
2017-06-19 Nick Clifton <nickc@redhat.com>

PR binutils/21618
diff --git a/bfd/elf.c b/bfd/elf.c
index fb106e9449..cb7bedd66c 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9946,6 +9946,10 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note)
else
return TRUE;

+ case NT_FREEBSD_PTLWPINFO:
+ return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.lwpinfo",
+ note);
+
default:
return TRUE;
}
--
2.11.0