diff mbox

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

Message ID 20170629233226.20155-8-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin June 29, 2017, 11:32 p.m. UTC
bfd/ChangeLog:

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

Comments

Alan Modra June 30, 2017, 3:20 a.m. UTC | #1
On Thu, Jun 29, 2017 at 04:32:25PM -0700, John Baldwin wrote:
> bfd/ChangeLog:
> 
> 	* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.

OK.
diff mbox

Patch

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;
     }