This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Add --only-keep-debug to the --help output of strip and objcopy
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 11 Dec 2003 13:17:12 +0000
- Subject: Add --only-keep-debug to the --help output of strip and objcopy
Hi Guys,
When I added the code to support the --only-keep-debug switch to
objcopy and strip, I forgot to include a mention of this switch in
the --help output. I am applying the patch below to fix this.
Cheers
Nick
objcopy/ChangeLog
2003-12-11 Nick Clifton <nickc@redhat.com>
* objcopy.c (strip_usage): Add --only-keep-debug.
(copy_usage): Likewise.
Index: binutils/objcopy.c
===================================================================
RCS file: /cvs/src/src/binutils/objcopy.c,v
retrieving revision 1.59
diff -c -3 -p -r1.59 objcopy.c
*** binutils/objcopy.c 6 Dec 2003 00:06:12 -0000 1.59
--- binutils/objcopy.c 11 Dec 2003 13:20:54 -0000
*************** copy_usage (FILE *stream, int exit_statu
*** 391,396 ****
--- 391,397 ----
-g --strip-debug Remove all debugging symbols & sections\n\
--strip-unneeded Remove all symbols not needed by relocations\n\
-N --strip-symbol <name> Do not copy symbol <name>\n\
+ --only-keep-debug Strip everything but the debug information\n\
-K --keep-symbol <name> Only copy symbol <name>\n\
-L --localize-symbol <name> Force symbol <name> to be marked as a local\n\
-G --keep-global-symbol <name> Localize all symbols except <name>\n\
*************** strip_usage (FILE *stream, int exit_stat
*** 464,469 ****
--- 465,471 ----
-s --strip-all Remove all symbol and relocation information\n\
-g -S -d --strip-debug Remove all debugging symbols & sections\n\
--strip-unneeded Remove all symbols not needed by relocations\n\
+ --only-keep-debug Strip everything but the debug information\n\
-N --strip-symbol=<name> Do not copy symbol <name>\n\
-K --keep-symbol=<name> Only copy symbol <name>\n\
-w --wildcard Permit wildcard in symbol comparasion\n\