blob: be302bee34e21b8c4dc5348bce6f3797373e9069 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
.\" Copyright (c) 1991 Free Software Foundation
.\" See section COPYING for conditions for redistribution
.TH strip 1 "5 November 1991" "cygnus support" "GNU Development Tools"
.de BP
.sp
.ti \-.2i
\(**
..
.SH NAME
strip\(em\&Discard symbols from object files.
.SH SYNOPSIS
.B strip
.RB "[\|" "\-F \fIformat\fP" | \-\-format=\fIformat\fP | \-\-target=\fIformat\fP "\|]"
.RB "[\|" "\-I \fIformat\fP" | \-\-input\-format=\fIformat\fP "\|]"
.RB "[\|" "\-O \fIformat\fP" | \-\-output\-format=\fIformat\fP "\|]"
.RB "[\|" \-s | \-\-strip\-all "\|]"
.RB "[\|" \-S | -g | \-\-strip\-debug "\|]"
.RB "[\|" \-x | \-\-discard\-all "\|]"
.RB "[\|" \-X | \-\-discard\-locals "\|]"
.RB "[\|" \-v | \-\-verbose "\|]"
.RB "[\|" \-V | \-\-version "\|]"
.I objfile\c
\&.\|.\|.
.SH DESCRIPTION
GNU \c
.B strip\c
\& discards all symbols from the object files
\c
.I objfile\c
\&. The list of object files may include archives.
\c
.B strip\c
\& will not execute unless at least one object file is listed.
\& \c
.B strip\c
\& modifies the files named in its argument,
rather than writing modified copies under different names.
.SH OPTIONS
.TP
.B \-v
Verbose operation: list all object files modified. In the case of
archives, `\|\c
.B strip \-v\c
\&\|' will list all members of the archive.
.TP
.B "\-F \fIformat\fP \-\-format=\fIformat\fP \-\-target=\fIformat\fP"
Treat the original \fIobjfile\fP as a file with the object
code format \fIformat\fP, and rewrite it in the same format.
.TP
.B "\-I \fIformat\fP \-\-input\-format=\fIformat\fP"
Treat the original \fIobjfile\fP as a file with the object
code format \fIformat\fP.
.TP
.B "\-O \fIformat\fP \-\-output\-format=\fIformat\fP"
Replace \fIobjfile\fP with a file in the output format \fIformat\fP.
.TP
.B "\-s \-\-strip\-all"
Remove all symbols.
.TP
.B "\-S -g \-\-strip\-debug"
Remove debugging symbols only.
.TP
.B "\-x \-\-discard\-all"
Remove non-global symbols.
.TP
.B "\-X \-\-discard\-locals"
Remove compiler-generated local symbols.
(These usually start with ``L'' or ``.''.)
.TP
.B "\-v \-\-verbose"
Verbose output: list all object files modified. In the case of
archives, ``strip -V'' lists all members of the archive.
.TP
.B "\-V \-\-version
Show the version number for \fBstrip\fP.
.PP
.SH "SEE ALSO"
.RB "`\|" binutils "\|'"
entry in
.B
info\c
\&;
.I
The GNU Binary Utilities\c
\&, Roland H. Pesch (October 1991).
.SH COPYING
Copyright (c) 1991 Free Software Foundation, Inc.
.PP
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.
.PP
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
.PP
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.
|