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