* c++filt.1, objcopy.1: new man pages
[deliverable/binutils-gdb.git] / binutils / objcopy.1
CommitLineData
08ad9921
JO
1.\" Copyright (c) 1991 Free Software Foundation
2.\" See section COPYING for conditions for redistribution
3.TH objcopy 1 "June 1993" "cygnus support" "GNU Development Tools"
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
11objcopy\(em\&copies and translates object files
12
13.SH SYNOPSIS
14.hy 0
15.na
16.B objcopy
17.RS
18[
19.B -F \fIformat\fB | --format=\fIformat\fB
20]
21.br
22[
23.B -I \fIformat\fB | --input-format=\fIformat\fB
24]
25.br
26[
27.B -O \fIformat\fB | --output-format=\fIformat\fB
28]
29.br
30[
31.B -S | --strip-all
32] [
33.B -g | --strip-debug
34]
35.br
36[
37.B -x | --discard-all
38] [
39.B -X | --discard-locals
40]
41.br
42[
43.B -v | --verbose
44] [
45.B -V | --version
46]
47.br
48.I infile
49[
50.I outfile
51]
52.RE
53.SH DESCRIPTION
54The GNU
55.B objcopy
56utility copies the contents of an object file to another.
57.B objcopy
58uses the GNU BFD Library to read and write the object files. It can
59write the destination object file in a format different from that of
60the source object file. The exact behavior of
61.B objcopy
62is controlled by command-line options.
63
64.B objcopy
65creates temporary files to do its translations and deletes them
66afterward.
67.B objcopy
68uses BFD to do all its translation work; it knows about all the
69formats BFD knows about, and thus is able to recognize most formats
70without being told explicitly.
71
72.SH OPTIONS
73.TP 0.5i
74.I infile\fR,\fI outfile
75The source and output files respectively. If you do not specify
76.IR outfile ,
77.B objcopy
78creates a temporary file and destructively renames the result with the
79name of the input file.
80.TP
81.B -I \fIformat\fB, --input-format=\fIformat\fB
82Consider the source file's object format to be
83.IR format ,
84rather than attempting to deduce it.
85.TP
86.B -O \fIformat\fB, --output-format=\fIformat\fB
87Write the output file using the object format
88.IR format .
89.TP
90.B -F \fIformat\fB, --format=\fIformat\fB
91Use
92.I format
93as the object format for both the input and the output file; i.e.
94simply transfer data from source to destination with no translation.
95.TP
96.B -S, --strip-all
97Do not copy relocation and symbol information from the source file.
98.TP
99.B -g, --strip-debug
100Do not copy debugging symbols from the source file.
101.TP
102.B -x, --discard-all
103Do not copy non-global symbols from the source file.
104.TP
105.B -X, --discard-locals
106Do not copy compiler-generated local symbols. (These usually start
107with "L" or ".").
108.TP
109.B -v, --verbose
110Verbose output: list all object files modified. In the case of
111archives, "\fBobjcopy -V\fR" lists all members of the archive.
112.TP
113.B -V, --version
114Show the version number of
115.BR objcopy .
116.SH "SEE ALSO"
117.RB "`\|" binutils "\|'"
118entry in
119.B
120info\c
121\&;
122.I
123The GNU Binary Utilities\c
124\&, Roland H. Pesch (June 1993).
125
126.SH COPYING
127Copyright (c) 1993 Free Software Foundation, Inc.
128.PP
129Permission is granted to make and distribute verbatim copies of
130this manual provided the copyright notice and this permission notice
131are preserved on all copies.
132.PP
133Permission is granted to copy and distribute modified versions of this
134manual under the conditions for verbatim copying, provided that the
135entire resulting derived work is distributed under the terms of a
136permission notice identical to this one.
137.PP
138Permission is granted to copy and distribute translations of this
139manual into another language, under the above conditions for modified
140versions, except that this permission notice may be included in
141translations approved by the Free Software Foundation instead of in
142the original English.
This page took 0.026855 seconds and 4 git commands to generate.