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 1254e7e01d8b11026b161cc095bbc82b73e95ad1..8e91b1d4e7136cd7ab52308f98699241cab9a9cd 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 063a6e4bb318f22f1e8c14ba088e3cb39eed55e8..dcb06383d96523cdb33f6a9367934915bfe419cd 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;
     }