This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add a pseudosection for the NT_FREEBSD_THRMISC note.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b2c414df12bb61ab1e40099b92fc8f00983b930

commit 5b2c414df12bb61ab1e40099b92fc8f00983b930
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Sun Dec 13 22:47:25 2015 -0800

    Add a pseudosection for the NT_FREEBSD_THRMISC note.
    
    bfd/ChangeLog:
    
    	* elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.

Diff:
---
 bfd/ChangeLog | 4 ++++
 bfd/elf.c     | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c2c8e1e..ed99d92 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-19  John Baldwin  <jhb@FreeBSD.org>
+
+	* elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
+
 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
 	    Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
 
diff --git a/bfd/elf.c b/bfd/elf.c
index a1f857a..b2a50bf 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -9287,6 +9287,13 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
     case NT_SIGINFO:
       return elfcore_make_note_pseudosection (abfd, ".note.linuxcore.siginfo",
 					      note);
+
+    case NT_FREEBSD_THRMISC:
+      if (note->namesz == 8
+	  && strcmp (note->namedata, "FreeBSD") == 0)
+	return elfcore_make_note_pseudosection (abfd, ".thrmisc", note);
+      else
+	return TRUE;
     }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]