Add --only-keep-debug to the --help output of strip and objcopy

Nick Clifton nickc@redhat.com
Thu Dec 11 13:22:00 GMT 2003


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\
        



More information about the Binutils mailing list