1991-11-05 23:35:16 +00:00
|
|
|
.\" Copyright (c) 1991 Free Software Foundation
|
|
|
|
.\" See section COPYING for conditions for redistribution
|
|
|
|
.TH strip 1 "5 November 1991" "cygnus support" "GNU Development Tools"
|
|
|
|
.de BP
|
|
|
|
.sp
|
|
|
|
.ti \-.2i
|
|
|
|
\(**
|
|
|
|
..
|
|
|
|
|
|
|
|
.SH NAME
|
1993-11-13 15:16:23 +00:00
|
|
|
strip \- Discard symbols from object files.
|
1991-11-05 23:35:16 +00:00
|
|
|
|
|
|
|
.SH SYNOPSIS
|
1994-08-11 19:00:26 +00:00
|
|
|
.hy 0
|
|
|
|
.na
|
|
|
|
.TP
|
1993-04-29 18:15:00 +00:00
|
|
|
.B strip
|
1995-03-10 18:13:31 +00:00
|
|
|
.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 "\|]"
|
1995-07-04 18:52:27 +00:00
|
|
|
.RB "[\|" \-\-strip\-unneeded\fR "\|]"
|
1995-03-10 18:13:31 +00:00
|
|
|
.RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all "\|]"
|
|
|
|
.RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals "\|]"
|
|
|
|
.RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]"
|
1996-06-30 17:45:24 +00:00
|
|
|
.RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]"
|
|
|
|
.RB "[\|" \-o\ \fIfile\f\R "\|]"
|
1995-03-10 18:13:31 +00:00
|
|
|
.RB "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]"
|
|
|
|
.RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]"
|
|
|
|
.RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]"
|
1993-04-29 18:15:00 +00:00
|
|
|
.I objfile\c
|
1991-11-05 23:35:16 +00:00
|
|
|
\&.\|.\|.
|
1992-08-08 01:13:23 +00:00
|
|
|
|
1991-11-05 23:35:16 +00:00
|
|
|
.SH DESCRIPTION
|
1993-06-28 02:17:13 +00:00
|
|
|
GNU
|
|
|
|
.B strip
|
|
|
|
discards all symbols from the object files
|
|
|
|
.IR objfile .
|
|
|
|
The list of object files may include archives.
|
|
|
|
At least one object file must be given.
|
1991-11-05 23:35:16 +00:00
|
|
|
|
1993-06-28 02:17:13 +00:00
|
|
|
.P
|
|
|
|
.B strip
|
|
|
|
modifies the files named in its argument,
|
1991-11-05 23:35:16 +00:00
|
|
|
rather than writing modified copies under different names.
|
|
|
|
|
|
|
|
.SH OPTIONS
|
1993-04-29 18:15:00 +00:00
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-F \fIbfdname"
|
1993-06-28 02:17:13 +00:00
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-\-target=\fIbfdname"
|
1993-04-29 18:15:00 +00:00
|
|
|
Treat the original \fIobjfile\fP as a file with the object
|
1994-01-06 19:49:06 +00:00
|
|
|
code format \fIbfdname\fP, and rewrite it in the same format.
|
1993-04-29 18:15:00 +00:00
|
|
|
|
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-\-help
|
|
|
|
Show a summary of the options to
|
|
|
|
.B strip
|
|
|
|
and exit.
|
|
|
|
|
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-I \fIbfdname
|
1993-06-28 02:17:13 +00:00
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-\-input\-target=\fIbfdname"
|
1993-04-29 18:15:00 +00:00
|
|
|
Treat the original \fIobjfile\fP as a file with the object
|
1994-01-06 19:49:06 +00:00
|
|
|
code format \fIbfdname\fP.
|
1993-04-29 18:15:00 +00:00
|
|
|
|
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-O \fIbfdname\fP"
|
1993-06-28 02:17:13 +00:00
|
|
|
.TP
|
1994-01-06 19:49:06 +00:00
|
|
|
.B "\-\-output\-target=\fIbfdname"
|
|
|
|
Replace \fIobjfile\fP with a file in the output format \fIbfdname\fP.
|
1993-04-29 18:15:00 +00:00
|
|
|
|
1994-08-11 19:00:26 +00:00
|
|
|
.TP
|
|
|
|
.B "\-R \fIsectionname\fP"
|
|
|
|
.TP
|
|
|
|
.B "\-\-remove\-section=\fIsectionname"
|
|
|
|
Remove the named section from the file. This option may be given more
|
|
|
|
than once. Note that using this option inappropriately may make the
|
|
|
|
object file unusable.
|
|
|
|
|
1993-04-29 18:15:00 +00:00
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-s
|
|
|
|
.TP
|
|
|
|
.B \-\-strip\-all
|
1993-04-29 18:15:00 +00:00
|
|
|
Remove all symbols.
|
|
|
|
|
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-S
|
|
|
|
.TP
|
1995-10-06 20:48:58 +00:00
|
|
|
.B \-g
|
1993-06-28 02:17:13 +00:00
|
|
|
.TP
|
|
|
|
.B \-\-strip\-debug
|
1993-04-29 18:15:00 +00:00
|
|
|
Remove debugging symbols only.
|
|
|
|
|
1995-07-04 18:52:27 +00:00
|
|
|
.TP
|
|
|
|
.B \-\-strip\-unneeded
|
|
|
|
Strip all symbols that are not needed for relocation processing.
|
|
|
|
|
1994-11-18 16:00:41 +00:00
|
|
|
.TP
|
|
|
|
.B \-N \fIsymbolname\fR
|
|
|
|
.TP
|
|
|
|
.B \-\-strip\-symbol=\fIsymbolname
|
|
|
|
Remove symbol \fIsymbolname\fP from the source file. This option
|
|
|
|
may be given more than once, and may be combined with other strip
|
|
|
|
options.
|
|
|
|
|
1996-06-30 17:45:24 +00:00
|
|
|
.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.
|
|
|
|
|
1993-04-29 18:15:00 +00:00
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-x
|
|
|
|
.TP
|
|
|
|
.B \-\-discard\-all
|
1993-04-29 18:15:00 +00:00
|
|
|
Remove non-global symbols.
|
|
|
|
|
|
|
|
.TP
|
1995-10-06 20:48:58 +00:00
|
|
|
.B \-X
|
|
|
|
.TP
|
|
|
|
.B \-\-discard\-locals
|
1993-04-29 18:15:00 +00:00
|
|
|
Remove compiler-generated local symbols.
|
|
|
|
(These usually start with ``L'' or ``.''.)
|
|
|
|
|
1995-03-10 18:13:31 +00:00
|
|
|
.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.
|
|
|
|
|
1993-04-29 18:15:00 +00:00
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-v
|
|
|
|
.TP
|
|
|
|
.B \-\-verbose
|
1993-04-29 18:15:00 +00:00
|
|
|
Verbose output: list all object files modified. In the case of
|
1993-06-28 02:17:13 +00:00
|
|
|
archives,
|
|
|
|
.B "strip \-V"
|
|
|
|
lists all members of the archive.
|
1993-04-29 18:15:00 +00:00
|
|
|
|
|
|
|
.TP
|
1993-06-28 02:17:13 +00:00
|
|
|
.B \-V
|
|
|
|
.TP
|
|
|
|
.B \-\-version
|
|
|
|
Show the version number for \fBstrip\fP and exit.
|
1991-11-05 23:35:16 +00:00
|
|
|
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.RB "`\|" binutils "\|'"
|
|
|
|
entry in
|
1993-06-28 02:17:13 +00:00
|
|
|
.BR info ;
|
1995-10-06 20:48:58 +00:00
|
|
|
.IR "The GNU Binary Utilities" ,
|
1993-06-28 02:17:13 +00:00
|
|
|
Roland H. Pesch (October 1991).
|
1991-11-05 23:35:16 +00:00
|
|
|
|
|
|
|
.SH COPYING
|
|
|
|
Copyright (c) 1991 Free Software Foundation, Inc.
|
|
|
|
.PP
|
|
|
|
Permission is granted to make and distribute verbatim copies of
|
|
|
|
this manual provided the copyright notice and this permission notice
|
|
|
|
are preserved on all copies.
|
|
|
|
.PP
|
|
|
|
Permission is granted to copy and distribute modified versions of this
|
|
|
|
manual under the conditions for verbatim copying, provided that the
|
|
|
|
entire resulting derived work is distributed under the terms of a
|
|
|
|
permission notice identical to this one.
|
|
|
|
.PP
|
|
|
|
Permission is granted to copy and distribute translations of this
|
|
|
|
manual into another language, under the above conditions for modified
|
|
|
|
versions, except that this permission notice may be included in
|
|
|
|
translations approved by the Free Software Foundation instead of in
|
|
|
|
the original English.
|