Document missing options. Use -- instead of + for long options.
[binutils-gdb.git] / binutils / strip.1
1 .\" Copyright (c) 1991 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH strip 1 "5 November 1991" "cygnus support" "GNU Development Tools"
4 .de BP
5 .sp
6 .ti \-.2i
7 \(**
8 ..
9
10 .SH NAME
11 strip\(em\&Discard symbols from object files.
12
13 .SH SYNOPSIS
14 .B strip
15 .RB "[\|" "\-F \fIformat\fP" | \-\-format=\fIformat\fP | \-\-target=\fIformat\fP "\|]"
16 .RB "[\|" "\-I \fIformat\fP" | \-\-input\-format=\fIformat\fP "\|]"
17 .RB "[\|" "\-O \fIformat\fP" | \-\-output\-format=\fIformat\fP "\|]"
18 .RB "[\|" \-s | \-\-strip\-all "\|]"
19 .RB "[\|" \-S | -g | \-\-strip\-debug "\|]"
20 .RB "[\|" \-x | \-\-discard\-all "\|]"
21 .RB "[\|" \-X | \-\-discard\-locals "\|]"
22 .RB "[\|" \-v | \-\-verbose "\|]"
23 .RB "[\|" \-V | \-\-version "\|]"
24 .I objfile\c
25 \&.\|.\|.
26
27 .SH DESCRIPTION
28 GNU \c
29 .B strip\c
30 \& discards all symbols from the object files
31 \c
32 .I objfile\c
33 \&. The list of object files may include archives.
34
35 \c
36 .B strip\c
37 \& will not execute unless at least one object file is listed.
38
39 \& \c
40 .B strip\c
41 \& modifies the files named in its argument,
42 rather than writing modified copies under different names.
43
44 .SH OPTIONS
45 .TP
46 .B \-v
47 Verbose operation: list all object files modified. In the case of
48 archives, `\|\c
49 .B strip \-v\c
50 \&\|' will list all members of the archive.
51
52 .TP
53 .B "\-F \fIformat\fP \-\-format=\fIformat\fP \-\-target=\fIformat\fP"
54 Treat the original \fIobjfile\fP as a file with the object
55 code format \fIformat\fP, and rewrite it in the same format.
56
57 .TP
58 .B "\-I \fIformat\fP \-\-input\-format=\fIformat\fP"
59 Treat the original \fIobjfile\fP as a file with the object
60 code format \fIformat\fP.
61
62 .TP
63 .B "\-O \fIformat\fP \-\-output\-format=\fIformat\fP"
64 Replace \fIobjfile\fP with a file in the output format \fIformat\fP.
65
66 .TP
67 .B "\-s \-\-strip\-all"
68 Remove all symbols.
69
70 .TP
71 .B "\-S -g \-\-strip\-debug"
72 Remove debugging symbols only.
73
74 .TP
75 .B "\-x \-\-discard\-all"
76 Remove non-global symbols.
77
78 .TP
79 .B "\-X \-\-discard\-locals"
80 Remove compiler-generated local symbols.
81 (These usually start with ``L'' or ``.''.)
82
83 .TP
84 .B "\-v \-\-verbose"
85 Verbose output: list all object files modified. In the case of
86 archives, ``strip -V'' lists all members of the archive.
87
88 .TP
89 .B "\-V \-\-version
90 Show the version number for \fBstrip\fP.
91
92 .PP
93
94 .SH "SEE ALSO"
95 .RB "`\|" binutils "\|'"
96 entry in
97 .B
98 info\c
99 \&;
100 .I
101 The GNU Binary Utilities\c
102 \&, Roland H. Pesch (October 1991).
103
104 .SH COPYING
105 Copyright (c) 1991 Free Software Foundation, Inc.
106 .PP
107 Permission is granted to make and distribute verbatim copies of
108 this manual provided the copyright notice and this permission notice
109 are preserved on all copies.
110 .PP
111 Permission is granted to copy and distribute modified versions of this
112 manual under the conditions for verbatim copying, provided that the
113 entire resulting derived work is distributed under the terms of a
114 permission notice identical to this one.
115 .PP
116 Permission is granted to copy and distribute translations of this
117 manual into another language, under the above conditions for modified
118 versions, except that this permission notice may be included in
119 translations approved by the Free Software Foundation instead of in
120 the original English.