1 .\" Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH strip 1 "5 November 1991" "cygnus support" "GNU Development Tools"
11 strip \- Discard symbols from object files.
18 .RB "[\|" \-F\ \fIbfdname\fR\ |\ \fB\-\-target=\fIbfdname\fP "\|]"
19 .RB "[\|" \-I\ \fIbfdname\fR\ |\ \fB\-\-input\-target=\fIbfdname\fP "\|]"
20 .RB "[\|" \-O\ \fIbfdname\fR\ |\ \fB\-\-output\-target=\fIbfdname\fP "\|]"
21 .RB "[\|" \-R\ \fIsectionname\fR\ |\ \fB\-\-remove\-section=\fIsectionname\fP "\|]"
22 .RB "[\|" \-s\fR\ |\ \fB\-\-strip\-all "\|]"
23 .RB "[\|" \-S\fR\ |\ \fB\-g\fR\ |\ \fB\-\-strip\-debug "\|]"
24 .RB "[\|" \-\-strip\-unneeded\fR "\|]"
25 .RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all "\|]"
26 .RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals "\|]"
27 .RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]"
28 .RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]"
29 .RB "[\|" \-o\ \fIfile\f\R "\|]"
30 .RB "[\|" \-p\fR\ |\ \fB\-\-preserve\-dates "\|]"
31 .RB "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]"
32 .RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]"
33 .RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]"
40 discards all symbols from the object files
42 The list of object files may include archives.
43 At least one object file must be given.
47 modifies the files named in its argument,
48 rather than writing modified copies under different names.
54 .B "\-\-target=\fIbfdname"
55 Treat the original \fIobjfile\fP as a file with the object
56 code format \fIbfdname\fP, and rewrite it in the same format.
60 Show a summary of the options to
67 .B "\-\-input\-target=\fIbfdname"
68 Treat the original \fIobjfile\fP as a file with the object
69 code format \fIbfdname\fP.
72 .B "\-O \fIbfdname\fP"
74 .B "\-\-output\-target=\fIbfdname"
75 Replace \fIobjfile\fP with a file in the output format \fIbfdname\fP.
78 .B "\-R \fIsectionname\fP"
80 .B "\-\-remove\-section=\fIsectionname"
81 Remove the named section from the file. This option may be given more
82 than once. Note that using this option inappropriately may make the
97 Remove debugging symbols only.
100 .B \-\-strip\-unneeded
101 Strip all symbols that are not needed for relocation processing.
104 .B \-N \fIsymbolname\fR
106 .B \-\-strip\-symbol=\fIsymbolname
107 Remove symbol \fIsymbolname\fP from the source file. This option
108 may be given more than once, and may be combined with other strip
113 Put the stripped output in \fIfile\fR, rather than replacing the
114 existing file. When this argument is used, only one \fIobjfile\fR
115 argument may be specified.
120 .B \-\-preserve-dates
121 Preserve the access and modification dates of the file.
127 Remove non-global symbols.
132 .B \-\-discard\-locals
133 Remove compiler-generated local symbols.
134 (These usually start with ``L'' or ``.''.)
137 .B \-K \fIsymbolname\fR, \fB\-\-keep\-symbol=\fIsymbolname
138 Copy only symbol \fIsymbolname\fP from the source file. This option
139 may be given more than once.
142 .B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolname
143 Do not copy symbol \fIsymbolname\fP from the source file. This option
144 may be given more than once, and may be combined with strip options
145 other than \fB\-K\fR.
151 Verbose output: list all object files modified. In the case of
154 lists all members of the archive.
160 Show the version number for \fBstrip\fP and exit.
163 .RB "`\|" binutils "\|'"
166 .IR "The GNU Binary Utilities" ,
167 Roland H. Pesch (October 1991).
170 Copyright (c) 1991 Free Software Foundation, Inc.
172 Permission is granted to make and distribute verbatim copies of
173 this manual provided the copyright notice and this permission notice
174 are preserved on all copies.
176 Permission is granted to copy and distribute modified versions of this
177 manual under the conditions for verbatim copying, provided that the
178 entire resulting derived work is distributed under the terms of a
179 permission notice identical to this one.
181 Permission is granted to copy and distribute translations of this
182 manual into another language, under the above conditions for modified
183 versions, except that this permission notice may be included in
184 translations approved by the Free Software Foundation instead of in
185 the original English.