version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
STRIP |
|
|
2 |
!!!STRIP |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
COPYRIGHT |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
strip - Discard symbols from object files. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
strip [[__-F__ ''bfdname'' |
|
|
18 |
__--target=__''bfdname'' ] [[__-I__ ''bfdname'' |
|
|
19 |
__--input-target=__''bfdname'' ] [[__-O__ |
|
|
20 |
''bfdname'' __--output-target=__''bfdname'' ] |
|
|
21 |
[[__-s--strip-all__] [[__-S-g-d--strip-debug__] |
|
|
22 |
[[__-K__ ''symbolname'' |
|
|
23 |
__--keep-symbol=__''symbolname'' ] [[__-N__ |
|
|
24 |
''symbolname'' __--strip-symbol=__''symbolname'' ] |
|
|
25 |
[[__-x--discard-all__ ] [[__-X --discard-locals__] |
|
|
26 |
[[__-R__ ''sectionname'' |
|
|
27 |
__--remove-section=__''sectionname'' ] [[__-o__ |
|
|
28 |
''file'' ] [[__-p--preserve-dates__] [[__-v |
|
|
29 |
--verbose__] [[__-V--version__] [[__--help__] |
|
|
30 |
''objfile''... |
|
|
31 |
!!DESCRIPTION |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
GNU __strip__ discards all symbols from |
|
|
35 |
object files ''objfile''. The list of object files may |
|
|
36 |
include archives. At least one object file must be |
|
|
37 |
given. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
__strip__ modifies the files named in its argument, |
|
|
41 |
rather than writing modified copies under different |
|
|
42 |
names. |
|
|
43 |
!!OPTIONS |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__-F__ ''bfdname'' |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
__--target=__''bfdname'' |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
Treat the original ''objfile'' as a file with the object |
|
|
53 |
code format ''bfdname'', and rewrite it in the same |
|
|
54 |
format. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
__--help__ |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Show a summary of the options to __strip__ and |
|
|
61 |
exit. |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
__-I__ ''bfdname'' |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__--input-target=__''bfdname'' |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Treat the original ''objfile'' as a file with the object |
|
|
71 |
code format ''bfdname''. |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
__-O__ ''bfdname'' |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
__--output-target=__''bfdname'' |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
Replace ''objfile'' with a file in the output format |
|
|
81 |
''bfdname''. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
__-R__ ''sectionname'' |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
__--remove-section=__''sectionname'' |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
Remove any section named ''sectionname'' from the output |
|
|
91 |
file. This option may be given more than once. Note that |
|
|
92 |
using this option inappropriately may make the output file |
|
|
93 |
unusable. |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
__-s__ |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
__--strip-all__ |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
Remove all symbols. |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
__-g__ |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
__-S__ |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
__-d__ |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
__--strip-debug__ |
|
|
115 |
|
|
|
116 |
|
|
|
117 |
Remove debugging symbols only. |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
__--strip-unneeded__ |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
Remove all symbols that are not needed for relocation |
|
|
124 |
processing. |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
__-K__ ''symbolname'' |
|
|
128 |
|
|
|
129 |
|
|
|
130 |
__--keep-symbol=__''symbolname'' |
|
|
131 |
|
|
|
132 |
|
|
|
133 |
Keep only symbol ''symbolname'' from the source file. |
|
|
134 |
This option may be given more than once. |
|
|
135 |
|
|
|
136 |
|
|
|
137 |
__-N__ ''symbolname'' |
|
|
138 |
|
|
|
139 |
|
|
|
140 |
__--strip-symbol=__''symbolname'' |
|
|
141 |
|
|
|
142 |
|
|
|
143 |
Remove symbol ''symbolname'' from the source file. This |
|
|
144 |
option may be given more than once, and may be combined with |
|
|
145 |
strip options other than __-K__. |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
__-o__ ''file'' |
|
|
149 |
|
|
|
150 |
|
|
|
151 |
Put the stripped output in ''file'', rather than |
|
|
152 |
replacing the existing file. When this argument is used, |
|
|
153 |
only one ''objfile'' argument may be |
|
|
154 |
specified. |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
__-p__ |
|
|
158 |
|
|
|
159 |
|
|
|
160 |
__--preserve-dates__ |
|
|
161 |
|
|
|
162 |
|
|
|
163 |
Preserve the access and modification dates of the |
|
|
164 |
file. |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
__-x__ |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
__--discard-all__ |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
Remove non-global symbols. |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
__-X__ |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
__--discard-locals__ |
|
|
180 |
|
|
|
181 |
|
|
|
182 |
Remove compiler-generated local symbols. (These usually |
|
|
183 |
start with __L__ or __.__.) |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
__-V__ |
|
|
187 |
|
|
|
188 |
|
|
|
189 |
__--version__ |
|
|
190 |
|
|
|
191 |
|
|
|
192 |
Show the version number for __strip__. |
|
|
193 |
|
|
|
194 |
|
|
|
195 |
__-v__ |
|
|
196 |
|
|
|
197 |
|
|
|
198 |
__--verbose__ |
|
|
199 |
|
|
|
200 |
|
|
|
201 |
Verbose output: list all object files modified. In the case |
|
|
202 |
of archives, __strip -v__ lists all members of the |
|
|
203 |
archive. |
|
|
204 |
!!SEE ALSO |
|
|
205 |
|
|
|
206 |
|
|
|
207 |
the Info entries for ''binutils''. |
|
|
208 |
!!COPYRIGHT |
|
|
209 |
|
|
|
210 |
|
|
|
211 |
Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, |
|
|
212 |
2001, 2002 Free Software Foundation, Inc. |
|
|
213 |
|
|
|
214 |
|
|
|
215 |
Permission is granted to copy, distribute and/or modify this |
|
|
216 |
document under the terms of the GNU Free |
|
|
217 |
Documentation License, Version 1.1 or any later version |
|
|
218 |
published by the Free Software Foundation; with no Invariant |
|
|
219 |
Sections, with no Front-Cover Texts, and with no Back-Cover |
|
|
220 |
Texts. A copy of the license is included in the section |
|
|
221 |
entitled `` GNU Free Documentation |
|
|
222 |
License''. |
|
|
223 |
---- |