Bug 78596 - strip fails to process arguments after --strip-debug flag
Summary: strip fails to process arguments after --strip-debug flag
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: binutils
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-11-26 05:02 UTC by Michael Fratoni
Modified: 2007-04-18 16:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-10-07 13:34:52 UTC

Attachments (Terms of Use)

Description Michael Fratoni 2002-11-26 05:02:47 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
The following fails to strip the target file:
strip --strip-debug -R .comment $file
strip --strip-debug $file && strip -R .comment $file
works as expected.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.execute strip --strip-debug -R .comment $file
2.Check the target file, it is not stripped.

Actual Results:  The given file contains no debug symbols, and processing
appears to stop at that point.The -R .comment flag appears to be ignored.
The man page indicates that --strip-debug removes debugging symbols only, but
makes no mention of ignoring any remaining flags.

Expected Results:  The .comment field should have been stripped.

Additional info:

This is entered at the request of a Red Hat developer. While building an rpm
package, I found that the executables were not stripped. The command used in the
specfile is:
strip --strip-debug -R .comment $file
Changing the command to:
--strip-debug $file && strip -R .comment $file
Works as expected.

Comment 1 Jakub Jelinek 2004-10-07 13:34:52 UTC
Can't reproduce this with binutils-
Assume it is fixed.

Note You need to log in before you can comment on or make changes to this bug.