From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31591 invoked by alias); 12 Apr 2007 13:50:01 -0000 Received: (qmail 31580 invoked by uid 22791); 12 Apr 2007 13:50:01 -0000 X-Spam-Check-By: sourceware.org Received: from smtp102.sbc.mail.mud.yahoo.com (HELO smtp102.sbc.mail.mud.yahoo.com) (68.142.198.201) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 12 Apr 2007 14:49:59 +0100 Received: (qmail 49989 invoked from network); 12 Apr 2007 13:49:56 -0000 Received: from unknown (HELO lucon.org) (hjjean@sbcglobal.net@75.61.85.239 with login) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 12 Apr 2007 13:49:56 -0000 X-YMail-OSG: xGR7CZoVM1mFtIeXpbl2Ut30NY01u9fqIgYNBJiFGvu_KlZ2lh1RoSWQ5xuCx4RcXPPP9uXh3A-- Received: by lucon.org (Postfix, from userid 500) id 0FDEB46EEEB; Thu, 12 Apr 2007 06:49:55 -0700 (PDT) Date: Thu, 12 Apr 2007 15:00:00 -0000 From: "H. J. Lu" To: Nick Clifton Cc: binutils@sources.redhat.com Subject: Re: PATCH: PR binutils/4348: strip can't strip sections Message-ID: <20070412134955.GA12301@lucon.org> References: <20070412040843.GA8868@lucon.org> <461E191E.5010102@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <461E191E.5010102@redhat.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00147.txt.bz2 On Thu, Apr 12, 2007 at 12:33:50PM +0100, Nick Clifton wrote: > Hi H. J. > > >I don't see why objcopy should stop when there are no sections to be > >copied. After all, the resulting output file is still valid ELF > >file. > > I agree that the tools should not fail. But they also should tell the > user that nothing has happened. Otherwise the user will never know that > their objcopy/strip command was pointless and they may then consider it > a bug that nothing has changed. Something is changed in my testcase: 3 sections are removed. Even if nothing has changed, do we warn the second strip on the same file: # strip x.o # strip x.o H.J.