From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10322 invoked by alias); 27 Dec 2012 20:10:15 -0000 Received: (qmail 10310 invoked by uid 22791); 27 Dec 2012 20:10:14 -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 na3sys009aog135.obsmtp.com (HELO na3sys009aog135.obsmtp.com) (74.125.149.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Dec 2012 20:10:08 +0000 Received: from mx10.qnx.com ([209.226.137.110]) (using TLSv1) by na3sys009aob135.postini.com ([74.125.148.12]) with SMTP ID DSNKUNyrHNwtpk99yH1cRBfqM6ZdkATSMO1x@postini.com; Thu, 27 Dec 2012 12:10:08 PST Received: by mx10.qnx.com (Postfix, from userid 500) id 5AC1321172; Thu, 27 Dec 2012 15:10:04 -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 80AEC2116F; Thu, 27 Dec 2012 15:10:03 -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 15:10:03 -0500 Message-ID: <50DCAB1A.9000205@qnx.com> Date: Thu, 27 Dec 2012 20:10: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: Poenitz Andre CC: "gdb-patches@sourceware.org" Subject: Re: [patch] validate binary before use References: <50D4C49A.6040502@qnx.com> <5F8A31884481A74D88C5F09BDA4231240F2CBC@IT-EXMB01-HKI.it.local> In-Reply-To: <5F8A31884481A74D88C5F09BDA4231240F2CBC@IT-EXMB01-HKI.it.local> 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/msg00822.txt.bz2 On 12-12-26 02:23 PM, Poenitz Andre wrote: > Aleksandar Ristovski wrote: >> [...] Change introduces new target_so_ops function dedicated to performing >> validation. If we have loaded and relocated the object, validation >> fails, we throw away bfd and loading of the object fails. [...] > > Does this change have any performance implications on the "normal" > use case, i.e. when all is set up and matches nicely? > > Andre' > The idea is to have minimal performance impact. Worst case, if it turns out to represent a performance issue it can always be made optional and controlled by the user (I do not plan on making it optional ATM). --- Aleksandar