From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28190 invoked by alias); 4 Nov 2013 22:38:47 -0000 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 Received: (qmail 28175 invoked by uid 89); 4 Nov 2013 22:38:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f43.google.com Received: from Unknown (HELO mail-pa0-f43.google.com) (209.85.220.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 04 Nov 2013 22:38:45 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz1so7576256pad.30 for ; Mon, 04 Nov 2013 14:38:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yhHPg7G/MxGU7lbQnyrZOUiX1r0na8TCU+hIqwQNpHc=; b=S0RKHxtdBX0DV0HxlKLoTXMz9/+Gury/tw2vM9LuvbtTvjFrkKgI1VDks3jF0M9dhn 4NmU9qXSRXW2dGSIzGjlZu3kAaVMUGpdq5XtVNAoAVfQP7peouKmrbjqTJQoXAD4MYrz FuUi7ndf0J2LhJ9rcLS28IFTj3sZ/b13PQ4vZr6wYxLaffMOiH7Z8oNiBK8WAvn6Ncz9 tD+zxJ4y863offsHLEO6l2xDPqnFf6gWvYMUsGTJzH4X+y+o850TAo6YQKRtV3wSe3qD A6svNi/7heGKVzRn5bKUWva5AgfGdPW456FbXM4DM5KWuGAy21C8EnupqMoolWNhdJ1C tiqA== X-Gm-Message-State: ALoCoQlsjRtCaqIw0QbWgy+vBNSWRI7LVsPTud1QxQUqZCsRvSyrmHZAFexMi7wur2C68G4vv0bjmm6ucrzEzqmDpGnfntiljYWHigrbVEkX9+3b1sc6uZ//5gv2IXP2yrQk7gLbLozs3Yjgj+Cx/RmD6KeSqAbTKlkPFzPDEfPXK3jm7MwXhvl0Y8lDYKHdSV/sev1Bo6zcCth/y1f9UQRe9wzLdKGwOg== MIME-Version: 1.0 X-Received: by 10.66.65.195 with SMTP id z3mr19627042pas.47.1383604717735; Mon, 04 Nov 2013 14:38:37 -0800 (PST) Received: by 10.68.194.230 with HTTP; Mon, 4 Nov 2013 14:38:37 -0800 (PST) In-Reply-To: References: <20131031154957.GA11260@host2.jankratochvil.net> Date: Mon, 04 Nov 2013 23:04:00 -0000 Message-ID: Subject: Re: [PATCH] Fix Gold/strip discrepancies for PR 11786 From: Cary Coutant To: Doug Evans Cc: Jan Kratochvil , gdb-patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00068.txt.bz2 >> while elfutils strip left Program Headers intact. So reviewed the patch below >> and I am fine with it that way but I do not think it is the right solution to >> your problem. > > What would be the right solution? [keeping in mind that I need this to > work with existing tools] > I can imagine multiple "solutions" are in fact needed. I agree. In general, I think producers should be strict, and consumers should be lenient. That means that strip should leave the segment attributes the same as they were in the input, but it also means that GDB shouldn't care about fields that make no difference in whether two binaries are in fact equivalent. As far as strip goes, it's nice to hear that eu-strip does it right, but binutils strip, being BFD based, may not be so easy to fix. -cary