aboutsummaryrefslogtreecommitdiff
path: root/binutils/strip.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-03-10 18:13:31 +0000
committerIan Lance Taylor <ian@airs.com>1995-03-10 18:13:31 +0000
commitdff604a75fe8cc500bdf8b6d037d2977f9230c2e (patch)
tree1089f2d544140600405ceeeb5bab61f29d0bde1a /binutils/strip.1
parentd4f389f692a6ca1103a4457d8d1dc4cc1c3f2750 (diff)
downloadgdb-dff604a75fe8cc500bdf8b6d037d2977f9230c2e.zip
gdb-dff604a75fe8cc500bdf8b6d037d2977f9230c2e.tar.gz
gdb-dff604a75fe8cc500bdf8b6d037d2977f9230c2e.tar.bz2
* objcopy.c (strip_options): Add --keep-symbol.
(copy_options): Likewise. (copy_usage): Mention --keep-symbol and -K. (strip_usage): Likewise. (keep_symbols): New static variable. (is_strip_symbol): Adjust the return value according to keep_symbols. (strip_main): Handle -K. For -N, check that -K was not given. (copy_main): Likewise. * binutils.texi, objcopy.1, strip.1: Document -K.
Diffstat (limited to 'binutils/strip.1')
-rw-r--r--binutils/strip.135
1 files changed, 24 insertions, 11 deletions
diff --git a/binutils/strip.1 b/binutils/strip.1
index e1ec592..62a3abf 100644
--- a/binutils/strip.1
+++ b/binutils/strip.1
@@ -15,17 +15,19 @@ strip \- Discard symbols from object files.
.na
.TP
.B strip
-.RB "[\|" \-F \fIbfdname\fP\ |\ \-\-target=\fIbfdname\fP "\|]"
-.RB "[\|" \-I \fIbfdname\fP\ |\ \-\-input\-target=\fIbfdname\fP "\|]"
-.RB "[\|" \-O \fIbfdname\fP\ |\ \-\-output\-target=\fIbfdname\fP "\|]"
-.RB "[\|" \-R \fIsectionname\fP\ |\ \-\-remove\-section=\fIsectionname\fP "\|]"
-.RB "[\|" \-s | \-\-strip\-all "\|]"
-.RB "[\|" \-S | -g | \-\-strip\-debug "\|]"
-.RB "[\|" \-x | \-\-discard\-all "\|]"
-.RB "[\|" \-X | \-\-discard\-locals "\|]"
-.RB "[\|" \-v | \-\-verbose "\|]"
-.RB "[\|" \-V | \-\-version "\|]"
-.RB "[\|" \-V | \-\-help "\|]"
+.RB "[\|" \-F\ \fIbfdname\fR\ |\ \fB\-\-target=\fIbfdname\fP "\|]"
+.RB "[\|" \-I\ \fIbfdname\fR\ |\ \fB\-\-input\-target=\fIbfdname\fP "\|]"
+.RB "[\|" \-O\ \fIbfdname\fR\ |\ \fB\-\-output\-target=\fIbfdname\fP "\|]"
+.RB "[\|" \-R\ \fIsectionname\fR\ |\ \fB\-\-remove\-section=\fIsectionname\fP "\|]"
+.RB "[\|" \-s\fR\ |\ \fB\-\-strip\-all "\|]"
+.RB "[\|" \-S\fR\ |\ \fB\-g\fR\ |\ \fB\-\-strip\-debug "\|]"
+.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 "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]"
+.RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]"
+.RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]"
.I objfile\c
\&.\|.\|.
@@ -111,6 +113,17 @@ Remove compiler-generated local symbols.
(These usually start with ``L'' or ``.''.)
.TP
+.B \-K \fIsymbolname\fR, \fB\-\-keep\-symbol=\fIsymbolname
+Copy only symbol \fIsymbolname\fP from the source file. This option
+may be given more than once.
+
+.TP
+.B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolname
+Do not copy symbol \fIsymbolname\fP from the source file. This option
+may be given more than once, and may be combined with strip options
+other than \fB\-K\fR.
+
+.TP
.B \-v
.TP
.B \-\-verbose