diff mbox

[1/4] Create psuedo sections for FreeBSD NT_PROCSTAT_(PROC|FILES|VMMAP) notes.

Message ID 20171222220513.54983-2-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin Dec. 22, 2017, 10:05 p.m. UTC
bfd/ChangeLog:

	* elf.c (elfcore_grok_freebsd_note): Handle
	NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
	NT_FREEBSD_PROCSTAT_VMMAP.
---
 bfd/ChangeLog |  6 ++++++
 bfd/elf.c     | 12 ++++++++++++
 2 files changed, 18 insertions(+)

Comments

Simon Marchi Dec. 27, 2017, 1:18 a.m. UTC | #1
On 2017-12-22 05:05 PM, John Baldwin wrote:
> bfd/ChangeLog:
> 
> 	* elf.c (elfcore_grok_freebsd_note): Handle
> 	NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
> 	NT_FREEBSD_PROCSTAT_VMMAP.

There's a typo in the title, psuedo -> pseudo.

Simon
Nick Clifton Jan. 2, 2018, 11:49 a.m. UTC | #2
Hi John,

> bfd/ChangeLog:
> 
> 	* elf.c (elfcore_grok_freebsd_note): Handle
> 	NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
> 	NT_FREEBSD_PROCSTAT_VMMAP.

Approved - please apply.

Cheers
  Nick
diff mbox

Patch

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e994da3ed6..6a3f44b23d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@ 
+2017-12-22  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.
+
 2017-12-19  Alan Modra  <amodra@gmail.com>
 
 	PR 22626
diff --git a/bfd/elf.c b/bfd/elf.c
index fa70a94975..b635ba29b1 100644
--- 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",