nlmconv.1: minor fix
[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
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
29GNU
30.B strip
31discards all symbols from the object files
32.IR objfile .
33The list of object files may include archives.
34At least one object file must be given.
df22f469 35
b26ac613
DM
36.P
37.B strip
38modifies the files named in its argument,
df22f469
RP
39rather 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 46Treat the original \fIobjfile\fP as a file with the object
eae04238 47code format \fIbfdname\fP, and rewrite it in the same format.
1f72cab1
DM
48
49.TP
b26ac613
DM
50.B \-\-help
51Show a summary of the options to
52.B strip
53and exit.
54
55.TP
eae04238 56.B "\-I \fIbfdname
b26ac613 57.TP
eae04238 58.B "\-\-input\-target=\fIbfdname"
1f72cab1 59Treat the original \fIobjfile\fP as a file with the object
eae04238 60code format \fIbfdname\fP.
1f72cab1
DM
61
62.TP
eae04238 63.B "\-O \fIbfdname\fP"
b26ac613 64.TP
eae04238
DM
65.B "\-\-output\-target=\fIbfdname"
66Replace \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
72Remove all symbols.
73
74.TP
b26ac613
DM
75.B \-S
76.TP
77.B -g
78.TP
79.B \-\-strip\-debug
1f72cab1
DM
80Remove debugging symbols only.
81
82.TP
b26ac613
DM
83.B \-x
84.TP
85.B \-\-discard\-all
1f72cab1
DM
86Remove non-global symbols.
87
88.TP
89.B "\-X \-\-discard\-locals"
90Remove 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 97Verbose output: list all object files modified. In the case of
b26ac613
DM
98archives,
99.B "strip \-V"
100lists all members of the archive.
1f72cab1
DM
101
102.TP
b26ac613
DM
103.B \-V
104.TP
105.B \-\-version
106Show the version number for \fBstrip\fP and exit.
df22f469
RP
107
108.SH "SEE ALSO"
109.RB "`\|" binutils "\|'"
110entry in
b26ac613
DM
111.BR info ;
112.IR "The GNU Binary Utilities ,
113Roland H. Pesch (October 1991).
df22f469
RP
114
115.SH COPYING
116Copyright (c) 1991 Free Software Foundation, Inc.
117.PP
118Permission is granted to make and distribute verbatim copies of
119this manual provided the copyright notice and this permission notice
120are preserved on all copies.
121.PP
122Permission is granted to copy and distribute modified versions of this
123manual under the conditions for verbatim copying, provided that the
124entire resulting derived work is distributed under the terms of a
125permission notice identical to this one.
126.PP
127Permission is granted to copy and distribute translations of this
128manual into another language, under the above conditions for modified
129versions, except that this permission notice may be included in
130translations approved by the Free Software Foundation instead of in
131the original English.
This page took 0.097875 seconds and 4 git commands to generate.