Create pseudo sections for FreeBSD NT_PROCSTAT_(PROC|FILES|VMMAP) notes.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 3 Jan 2018 20:06:26 +0000 (12:06 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 3 Jan 2018 20:06:53 +0000 (12:06 -0800)
bfd/ChangeLog:

* elf.c (elfcore_grok_freebsd_note): Handle
NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
NT_FREEBSD_PROCSTAT_VMMAP.

bfd/ChangeLog
bfd/elf.c

index 2b8e7c575c22a7f15fb91faa33efe069db5bd745..7803ef88263a6d63d6a0c520c565a1764ddabddd 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-03  John Baldwin  <jhb@FreeBSD.org>
+
+       * elf.c (elfcore_grok_freebsd_note): Handle
+       NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
+       NT_FREEBSD_PROCSTAT_VMMAP.
+
 2018-01-03  Alan Modra  <amodra@gmail.com>
 
        Update year range in copyright notice of all files.
index 8cea6f4f3cf6bf4beb4229e492a40bc524be8e45..9f44ff978ad8d5bb539b531415d7293a4a8d5443 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -10014,6 +10014,18 @@ elfcore_grok_freebsd_note (bfd *abfd, Elf_Internal_Note *note)
       else
        return TRUE;
 
+    case NT_FREEBSD_PROCSTAT_PROC:
+      return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.proc",
+                                             note);
+
+    case NT_FREEBSD_PROCSTAT_FILES:
+      return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.files",
+                                             note);
+
+    case NT_FREEBSD_PROCSTAT_VMMAP:
+      return elfcore_make_note_pseudosection (abfd, ".note.freebsdcore.vmmap",
+                                             note);
+
     case NT_FREEBSD_PROCSTAT_AUXV:
       {
        asection *sect = bfd_make_section_anyway_with_flags (abfd, ".auxv",