From 16c3e32aa01eb15913e7a117b93e1c34c0837c95 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 30 Jun 1996 17:45:24 +0000 Subject: [PATCH] * objcopy.c (strip_main): Add -o option, and handle it. (strip_usage): Mention -o. * binutils.texi, strip.1: Mention -o. --- binutils/ChangeLog | 6 ++++++ binutils/binutils.texi | 6 ++++++ binutils/strip.1 | 9 ++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f457fa0..3ad63a0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +Sat Jun 29 21:18:09 1996 Ian Lance Taylor + + * objcopy.c (strip_main): Add -o option, and handle it. + (strip_usage): Mention -o. + * binutils.texi, strip.1: Mention -o. + Mon Jun 24 17:19:02 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir, diff --git a/binutils/binutils.texi b/binutils/binutils.texi index 3b0f486..053df4a 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -1446,6 +1446,7 @@ strip [ -F @var{bfdname} | --target=@var{bfdname} | --target=@var{bfdname} ] [ -N @var{symbolname} | --strip-symbol=@var{symbolname} ] [ -x | --discard-all ] [ -X | --discard-locals ] [ -R @var{sectionname} | --remove-section=@var{sectionname} ] + [ -o @var{file} ] [ -v | --verbose ] [ -V | --version ] [ --help ] @var{objfile}@dots{} @end smallexample @@ -1507,6 +1508,11 @@ Remove symbol @var{symbolname} from the source file. This option may be given more than once, and may be combined with strip options other than @code{-K}. +@item -o @var{file} +Put the stripped output in @var{file}, rather than replacing the +existing file. When this argument is used, only one @var{objfile} +argument may be specified. + @item -x @itemx --discard-all Remove non-global symbols. diff --git a/binutils/strip.1 b/binutils/strip.1 index 7ecadaa..5b47414 100644 --- a/binutils/strip.1 +++ b/binutils/strip.1 @@ -25,7 +25,8 @@ strip \- Discard symbols from object files. .RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all "\|]" .RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals "\|]" .RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]" -.RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]" +.RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]" +.RB "[\|" \-o\ \fIfile\f\R "\|]" .RB "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]" .RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]" .RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]" @@ -107,6 +108,12 @@ may be given more than once, and may be combined with other strip options. .TP +.B \-o \fIfile\fR +Put the stripped output in \fIfile\fR, rather than replacing the +existing file. When this argument is used, only one \fIobjfile\fR +argument may be specified. + +.TP .B \-x .TP .B \-\-discard\-all -- 2.7.4