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