PATCH: PR binutils/4348: strip can't strip sections

H. J. Lu hjl@lucon.org
Thu Apr 12 15:00:00 GMT 2007


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.



More information about the Binutils mailing list