* v850-opc.c (v850_opcodes): Fix order of displacement
[deliverable/binutils-gdb.git] / binutils / strip.1
CommitLineData
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 11strip \- Discard symbols from object files.
df22f469
RP
12
13.SH SYNOPSIS
0aca460e
ILT
14.hy 0
15.na
16.TP
1f72cab1 17.B strip
dff604a7
ILT
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 "\|]"
9135e5f8 24.RB "[\|" \-\-strip\-unneeded\fR "\|]"
dff604a7
ILT
25.RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all "\|]"
26.RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals "\|]"
27.RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]"
16c3e32a
ILT
28.RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]"
29.RB "[\|" \-o\ \fIfile\f\R "\|]"
dff604a7
ILT
30.RB "[\|" \-v\fR\ |\ \fB\-\-verbose "\|]"
31.RB "[\|" \-V\fR\ |\ \fB\-\-version "\|]"
32.RB "[\|" \-V\fR\ |\ \fB\-\-help "\|]"
1f72cab1 33.I objfile\c
df22f469 34\&.\|.\|.
1815e42c 35
df22f469 36.SH DESCRIPTION
b26ac613
DM
37GNU
38.B strip
39discards all symbols from the object files
40.IR objfile .
41The list of object files may include archives.
42At least one object file must be given.
df22f469 43
b26ac613
DM
44.P
45.B strip
46modifies the files named in its argument,
df22f469
RP
47rather than writing modified copies under different names.
48
49.SH OPTIONS
1f72cab1 50.TP
eae04238 51.B "\-F \fIbfdname"
b26ac613 52.TP
eae04238 53.B "\-\-target=\fIbfdname"
1f72cab1 54Treat the original \fIobjfile\fP as a file with the object
eae04238 55code format \fIbfdname\fP, and rewrite it in the same format.
1f72cab1
DM
56
57.TP
b26ac613
DM
58.B \-\-help
59Show a summary of the options to
60.B strip
61and exit.
62
63.TP
eae04238 64.B "\-I \fIbfdname
b26ac613 65.TP
eae04238 66.B "\-\-input\-target=\fIbfdname"
1f72cab1 67Treat the original \fIobjfile\fP as a file with the object
eae04238 68code format \fIbfdname\fP.
1f72cab1
DM
69
70.TP
eae04238 71.B "\-O \fIbfdname\fP"
b26ac613 72.TP
eae04238
DM
73.B "\-\-output\-target=\fIbfdname"
74Replace \fIobjfile\fP with a file in the output format \fIbfdname\fP.
1f72cab1 75
0aca460e
ILT
76.TP
77.B "\-R \fIsectionname\fP"
78.TP
79.B "\-\-remove\-section=\fIsectionname"
80Remove the named section from the file. This option may be given more
81than once. Note that using this option inappropriately may make the
82object file unusable.
83
1f72cab1 84.TP
b26ac613
DM
85.B \-s
86.TP
87.B \-\-strip\-all
1f72cab1
DM
88Remove all symbols.
89
90.TP
b26ac613
DM
91.B \-S
92.TP
5740d9df 93.B \-g
b26ac613
DM
94.TP
95.B \-\-strip\-debug
1f72cab1
DM
96Remove debugging symbols only.
97
9135e5f8
ILT
98.TP
99.B \-\-strip\-unneeded
100Strip all symbols that are not needed for relocation processing.
101
29c0d15c
ILT
102.TP
103.B \-N \fIsymbolname\fR
104.TP
105.B \-\-strip\-symbol=\fIsymbolname
106Remove symbol \fIsymbolname\fP from the source file. This option
107may be given more than once, and may be combined with other strip
108options.
109
16c3e32a
ILT
110.TP
111.B \-o \fIfile\fR
112Put the stripped output in \fIfile\fR, rather than replacing the
113existing file. When this argument is used, only one \fIobjfile\fR
114argument may be specified.
115
1f72cab1 116.TP
b26ac613
DM
117.B \-x
118.TP
119.B \-\-discard\-all
1f72cab1
DM
120Remove non-global symbols.
121
122.TP
5740d9df
KR
123.B \-X
124.TP
125.B \-\-discard\-locals
1f72cab1
DM
126Remove compiler-generated local symbols.
127(These usually start with ``L'' or ``.''.)
128
dff604a7
ILT
129.TP
130.B \-K \fIsymbolname\fR, \fB\-\-keep\-symbol=\fIsymbolname
131Copy only symbol \fIsymbolname\fP from the source file. This option
132may be given more than once.
133
134.TP
135.B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolname
136Do not copy symbol \fIsymbolname\fP from the source file. This option
137may be given more than once, and may be combined with strip options
138other than \fB\-K\fR.
139
1f72cab1 140.TP
b26ac613
DM
141.B \-v
142.TP
143.B \-\-verbose
1f72cab1 144Verbose output: list all object files modified. In the case of
b26ac613
DM
145archives,
146.B "strip \-V"
147lists all members of the archive.
1f72cab1
DM
148
149.TP
b26ac613
DM
150.B \-V
151.TP
152.B \-\-version
153Show the version number for \fBstrip\fP and exit.
df22f469
RP
154
155.SH "SEE ALSO"
156.RB "`\|" binutils "\|'"
157entry in
b26ac613 158.BR info ;
5740d9df 159.IR "The GNU Binary Utilities" ,
b26ac613 160Roland H. Pesch (October 1991).
df22f469
RP
161
162.SH COPYING
163Copyright (c) 1991 Free Software Foundation, Inc.
164.PP
165Permission is granted to make and distribute verbatim copies of
166this manual provided the copyright notice and this permission notice
167are preserved on all copies.
168.PP
169Permission is granted to copy and distribute modified versions of this
170manual under the conditions for verbatim copying, provided that the
171entire resulting derived work is distributed under the terms of a
172permission notice identical to this one.
173.PP
174Permission is granted to copy and distribute translations of this
175manual into another language, under the above conditions for modified
176versions, except that this permission notice may be included in
177translations approved by the Free Software Foundation instead of in
178the original English.
This page took 0.157511 seconds and 4 git commands to generate.