From patchwork Mon Jan 18 18:37:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 10427 Received: (qmail 359 invoked by alias); 18 Jan 2016 18:38:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 130959 invoked by uid 89); 18 Jan 2016 18:38:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=270, 2.7.0, sk:elf_int, sk:Elf_Int X-HELO: bigwig.baldwin.cx Received: from bigwig.baldwin.cx (HELO bigwig.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 18 Jan 2016 18:38:28 +0000 Received: from ralph.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 566CCB9A6 for ; Mon, 18 Jan 2016 13:38:26 -0500 (EST) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH v4 2/7] Add a psuedosection for the NT_FREEBSD_THRMISC note. Date: Mon, 18 Jan 2016 10:37:29 -0800 Message-Id: <1453142254-20266-3-git-send-email-jhb@FreeBSD.org> In-Reply-To: <1453142254-20266-1-git-send-email-jhb@FreeBSD.org> References: <1453142254-20266-1-git-send-email-jhb@FreeBSD.org> X-IsSubscribed: yes bfd/ChangeLog: * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b6a7c5f..d157d3e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-01-16 John Baldwin + + * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes. + 2016-01-12 Yury Usishchev * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind 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; } }