This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix description of objcopy's -K switch


Hi Guys,

  The description of objcopy's and strip's -K switch is incorrect.
  It claims that only the specified symbol will be kept, whereas in
  fact other, essential symbols will also be kept.  Thus I am applying
  the patch below to fix the descriptions.

Cheers
  Nick

binutils/ChangeLog
2005-04-25  Nick Clifton  <nickc@redhat.com>

	* objcopy.c (copy_usage): Fix description of -K switch.
	* doc/binutils.texi (strip, objcopy): Fix description of -K
	switch.

Index: binutils/objcopy.c
===================================================================
RCS file: /cvs/src/src/binutils/objcopy.c,v
retrieving revision 1.78
diff -c -3 -p -r1.78 objcopy.c
*** binutils/objcopy.c	15 Apr 2005 16:28:52 -0000	1.78
--- binutils/objcopy.c	25 Apr 2005 09:19:55 -0000
*************** copy_usage (FILE *stream, int exit_statu
*** 419,425 ****
                                     Do not copy symbol <name> unless needed by\n\
                                       relocations\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\
       --globalize-symbol <name>     Force symbol <name> to be marked as a global\n\
    -G --keep-global-symbol <name>   Localize all symbols except <name>\n\
--- 419,425 ----
                                     Do not copy symbol <name> unless needed by\n\
                                       relocations\n\
       --only-keep-debug             Strip everything but the debug information\n\
!   -K --keep-symbol <name>          Do not strip symbol <name>\n\
    -L --localize-symbol <name>      Force symbol <name> to be marked as a local\n\
       --globalize-symbol <name>     Force symbol <name> to be marked as a global\n\
    -G --keep-global-symbol <name>   Localize all symbols except <name>\n\
Index: binutils/doc/binutils.texi
===================================================================
RCS file: /cvs/src/src/binutils/doc/binutils.texi,v
retrieving revision 1.72
diff -c -3 -p -r1.72 binutils.texi
*** binutils/doc/binutils.texi	4 Apr 2005 14:56:12 -0000	1.72
--- binutils/doc/binutils.texi	25 Apr 2005 09:19:56 -0000
*************** Strip all symbols that are not needed fo
*** 1102,1109 ****
  
  @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.
  
  @item -N @var{symbolname}
  @itemx --strip-symbol=@var{symbolname}
--- 1102,1109 ----
  
  @item -K @var{symbolname}
  @itemx --keep-symbol=@var{symbolname}
! 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}
*************** Remove all symbols that are not needed f
*** 2277,2284 ****
  
  @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.
  
  @item -N @var{symbolname}
  @itemx --strip-symbol=@var{symbolname}
--- 2277,2284 ----
  
  @item -K @var{symbolname}
  @itemx --keep-symbol=@var{symbolname}
! 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}
    


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]