This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR binutils/4348: strip can't strip sections
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 12 Apr 2007 06:49:55 -0700
- Subject: Re: PATCH: PR binutils/4348: strip can't strip sections
- References: <20070412040843.GA8868@lucon.org> <461E191E.5010102@redhat.com>
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.