Create pseudo sections for FreeBSD NT_PTLWPINFO core notes.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 28 Jun 2017 19:47:14 +0000 (12:47 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 7 Jul 2017 23:11:42 +0000 (16:11 -0700)
bfd/ChangeLog:

* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.

bfd/ChangeLog
bfd/elf.c

index 1254e7e..8e91b1d 100644 (file)
@@ -1,3 +1,7 @@
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
+
 2017-07-07  Alan Modra  <amodra@gmail.com>
 
        * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT.
index 063a6e4..dcb0638 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9980,6 +9980,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;
     }