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