]>
Commit | Line | Data |
---|---|---|
df22f469 RP |
1 | .\" Copyright (c) 1991 Free Software Foundation |
2 | .\" See section COPYING for conditions for redistribution | |
df22f469 RP |
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 | |
938fa52b | 11 | strip \- Discard symbols from object files. |
df22f469 RP |
12 | |
13 | .SH SYNOPSIS | |
1f72cab1 | 14 | .B strip |
eae04238 DM |
15 | .RB "[\|" "\-F \fIbfdname\fP" | \-\-target=\fIbfdname\fP "\|]" |
16 | .RB "[\|" "\-I \fIbfdname\fP" | \-\-input\-target=\fIbfdname\fP "\|]" | |
17 | .RB "[\|" "\-O \fIbfdname\fP" | \-\-output\-target=\fIbfdname\fP "\|]" | |
1f72cab1 DM |
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 "\|]" | |
b26ac613 | 24 | .RB "[\|" \-V | \-\-help "\|]" |
1f72cab1 | 25 | .I objfile\c |
df22f469 | 26 | \&.\|.\|. |
1815e42c | 27 | |
df22f469 | 28 | .SH DESCRIPTION |
b26ac613 DM |
29 | GNU |
30 | .B strip | |
31 | discards all symbols from the object files | |
32 | .IR objfile . | |
33 | The list of object files may include archives. | |
34 | At least one object file must be given. | |
df22f469 | 35 | |
b26ac613 DM |
36 | .P |
37 | .B strip | |
38 | modifies the files named in its argument, | |
df22f469 RP |
39 | rather than writing modified copies under different names. |
40 | ||
41 | .SH OPTIONS | |
1f72cab1 | 42 | .TP |
eae04238 | 43 | .B "\-F \fIbfdname" |
b26ac613 | 44 | .TP |
eae04238 | 45 | .B "\-\-target=\fIbfdname" |
1f72cab1 | 46 | Treat the original \fIobjfile\fP as a file with the object |
eae04238 | 47 | code format \fIbfdname\fP, and rewrite it in the same format. |
1f72cab1 DM |
48 | |
49 | .TP | |
b26ac613 DM |
50 | .B \-\-help |
51 | Show a summary of the options to | |
52 | .B strip | |
53 | and exit. | |
54 | ||
55 | .TP | |
eae04238 | 56 | .B "\-I \fIbfdname |
b26ac613 | 57 | .TP |
eae04238 | 58 | .B "\-\-input\-target=\fIbfdname" |
1f72cab1 | 59 | Treat the original \fIobjfile\fP as a file with the object |
eae04238 | 60 | code format \fIbfdname\fP. |
1f72cab1 DM |
61 | |
62 | .TP | |
eae04238 | 63 | .B "\-O \fIbfdname\fP" |
b26ac613 | 64 | .TP |
eae04238 DM |
65 | .B "\-\-output\-target=\fIbfdname" |
66 | Replace \fIobjfile\fP with a file in the output format \fIbfdname\fP. | |
1f72cab1 DM |
67 | |
68 | .TP | |
b26ac613 DM |
69 | .B \-s |
70 | .TP | |
71 | .B \-\-strip\-all | |
1f72cab1 DM |
72 | Remove all symbols. |
73 | ||
74 | .TP | |
b26ac613 DM |
75 | .B \-S |
76 | .TP | |
77 | .B -g | |
78 | .TP | |
79 | .B \-\-strip\-debug | |
1f72cab1 DM |
80 | Remove debugging symbols only. |
81 | ||
82 | .TP | |
b26ac613 DM |
83 | .B \-x |
84 | .TP | |
85 | .B \-\-discard\-all | |
1f72cab1 DM |
86 | Remove non-global symbols. |
87 | ||
88 | .TP | |
89 | .B "\-X \-\-discard\-locals" | |
90 | Remove compiler-generated local symbols. | |
91 | (These usually start with ``L'' or ``.''.) | |
92 | ||
93 | .TP | |
b26ac613 DM |
94 | .B \-v |
95 | .TP | |
96 | .B \-\-verbose | |
1f72cab1 | 97 | Verbose output: list all object files modified. In the case of |
b26ac613 DM |
98 | archives, |
99 | .B "strip \-V" | |
100 | lists all members of the archive. | |
1f72cab1 DM |
101 | |
102 | .TP | |
b26ac613 DM |
103 | .B \-V |
104 | .TP | |
105 | .B \-\-version | |
106 | Show the version number for \fBstrip\fP and exit. | |
df22f469 RP |
107 | |
108 | .SH "SEE ALSO" | |
109 | .RB "`\|" binutils "\|'" | |
110 | entry in | |
b26ac613 DM |
111 | .BR info ; |
112 | .IR "The GNU Binary Utilities , | |
113 | Roland H. Pesch (October 1991). | |
df22f469 RP |
114 | |
115 | .SH COPYING | |
116 | Copyright (c) 1991 Free Software Foundation, Inc. | |
117 | .PP | |
118 | Permission is granted to make and distribute verbatim copies of | |
119 | this manual provided the copyright notice and this permission notice | |
120 | are preserved on all copies. | |
121 | .PP | |
122 | Permission is granted to copy and distribute modified versions of this | |
123 | manual under the conditions for verbatim copying, provided that the | |
124 | entire resulting derived work is distributed under the terms of a | |
125 | permission notice identical to this one. | |
126 | .PP | |
127 | Permission is granted to copy and distribute translations of this | |
128 | manual into another language, under the above conditions for modified | |
129 | versions, except that this permission notice may be included in | |
130 | translations approved by the Free Software Foundation instead of in | |
131 | the original English. |