From e7f918adb61535294f8f807f87b47953b7e36e65 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 25 Apr 2005 09:23:24 +0000 Subject: [PATCH] * objcopy.c (copy_usage): Fix description of -K switch. * doc/binutils.texi (strip, objcopy): Fix description of -K switch. --- binutils/ChangeLog | 6 ++++++ binutils/doc/binutils.texi | 8 ++++---- binutils/objcopy.c | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 05bd850..82dec22 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2005-04-25 Nick Clifton + + * objcopy.c (copy_usage): Fix description of -K switch. + * doc/binutils.texi (strip, objcopy): Fix description of -K + switch. + 2005-04-20 Daniel Jacobowitz * readelf.c (display_debug_frames): Use data factor for diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index a422ed0..33e3025 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -1102,8 +1102,8 @@ Strip all symbols that are not needed for relocation processing. @item -K @var{symbolname} @itemx --keep-symbol=@var{symbolname} -Copy only symbol @var{symbolname} from the source file. This option may -be given more than once. +When stripping symbols, keep symbol @var{symbolname} even if it would +normally be stripped. This option may be given more than once. @item -N @var{symbolname} @itemx --strip-symbol=@var{symbolname} @@ -2277,8 +2277,8 @@ Remove all symbols that are not needed for relocation processing. @item -K @var{symbolname} @itemx --keep-symbol=@var{symbolname} -Keep only symbol @var{symbolname} from the source file. This option may -be given more than once. +When stripping symbols, keep symbol @var{symbolname} even if it would +normally be stripped. This option may be given more than once. @item -N @var{symbolname} @itemx --strip-symbol=@var{symbolname} diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 856b348..03f71e1 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -419,7 +419,7 @@ copy_usage (FILE *stream, int exit_status) Do not copy symbol unless needed by\n\ relocations\n\ --only-keep-debug Strip everything but the debug information\n\ - -K --keep-symbol Only copy symbol \n\ + -K --keep-symbol Do not strip symbol \n\ -L --localize-symbol Force symbol to be marked as a local\n\ --globalize-symbol Force symbol to be marked as a global\n\ -G --keep-global-symbol Localize all symbols except \n\ -- 2.7.4