From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12094 invoked by alias); 27 Dec 2012 21:21:35 -0000 Received: (qmail 12081 invoked by uid 22791); 27 Dec 2012 21:21:33 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from na3sys009aog120.obsmtp.com (HELO na3sys009aog120.obsmtp.com) (74.125.149.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Dec 2012 21:21:29 +0000 Received: from mx10.qnx.com ([209.226.137.110]) (using TLSv1) by na3sys009aob120.postini.com ([74.125.148.12]) with SMTP ID DSNKUNy70vcmg8MIwK3/vKIShN2o3SgSSWip@postini.com; Thu, 27 Dec 2012 13:21:29 PST Received: by mx10.qnx.com (Postfix, from userid 500) id 7274321173; Thu, 27 Dec 2012 16:21:21 -0500 (EST) Received: from exhts.ott.qnx.com (exhts2 [10.222.2.120]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx10.qnx.com (Postfix) with ESMTPS id 4E55C21163; Thu, 27 Dec 2012 16:21:21 -0500 (EST) Received: from [10.222.96.215] (10.222.96.215) by exhts2.ott.qnx.com (10.222.2.25) with Microsoft SMTP Server id 14.2.318.1; Thu, 27 Dec 2012 16:21:21 -0500 Message-ID: <50DCBBD1.7000707@qnx.com> Date: Thu, 27 Dec 2012 21:21:00 -0000 From: Aleksandar Ristovski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Jan Kratochvil CC: "gdb-patches@sourceware.org" Subject: Re: [patch] validate binary before use References: <50D4C49A.6040502@qnx.com> <50D8B37A.20001@qnx.com> <20121225073709.GA11349@host2.jankratochvil.net> <50DCAA5C.3000301@qnx.com> <20121227205924.GA5109@host2.jankratochvil.net> <50DCB787.6020601@qnx.com> <20121227211328.GA5739@host2.jankratochvil.net> In-Reply-To: <20121227211328.GA5739@host2.jankratochvil.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00826.txt.bz2 On 12-12-27 04:13 PM, Jan Kratochvil wrote: > On Thu, 27 Dec 2012 22:03:03 +0100, Aleksandar Ristovski wrote: >> In any case, what I am trying to do does not disqualify build-id > > I understand that part but I find disappointing a feature designed > specifically for this purpose and already deployed for 5+ years is being IIUC > ignored. > > >> (I'll use it in fact, if present). > > I do not see how you verify the NT_GNU_BUILD_ID content. No, it's not done now in the current patch. I meant the new patch will. > > >> Note also that I really want a solution that does *not* rely on >> section headers but rather only on load-time required stuff. > > build-id specifically does not depend on any link-time data (sections) to be > usable for runtime core generations. It is (also) available from program > header PT_NOTE as NT_GNU_BUILD_ID. That is great, thanks. --- Aleksandar