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"
11 objcopy\(em\© and translate object files
18 .RB "[\|" \-F \fIformat\fB | \-\-format=\fIformat\fB "\|]"
19 .RB "[\|" \-I \fIformat\fB | \-\-input\-format=\fIformat\fB "\|]"
20 .RB "[\|" \-O \fIformat\fB | \-\-output\-format=\fIformat\fB "\|]"
21 .RB "[\|" \-S | \-\-strip\-all "\|]"
22 .RB "[\|" \-g | \-\-strip\-debug "\|]"
23 .RB "[\|" \-x | \-\-discard\-all "\|]"
24 .RB "[\|" \-X | \-\-discard\-locals "\|]"
25 .RB "[\|" \-v | \-\-verbose "\|]"
26 .RB "[\|" \-V | \-\-version "\|]"
27 .RB "[\|" \-\-help "\|]"
29 .RB "[\|" outfile "\|]"
33 utility copies the contents of an object file to another.
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
39 is controlled by command-line options.
42 creates temporary files to do its translations and deletes them
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.
52 are the source and output files respectively. If you do not specify
55 creates a temporary file and destructively renames the result with the
56 name of the input file.
62 .B \-\-input\-format=\fIformat
63 Consider the source file's object format to be
65 rather than attempting to deduce it.
69 .B \-\-output\-format=\fIformat
70 Write the output file using the object format
75 .B \-\-format=\fIformat
78 as the object format for both the input and the output file; i.e.
79 simply transfer data from source to destination with no translation.
84 Do not copy relocation and symbol information from the source file.
89 Do not copy debugging symbols from the source file.
94 Do not copy non-global symbols from the source file.
98 .B \-\-discard\-locals
99 Do not copy compiler-generated local symbols. (These usually start
105 Verbose output: list all object files modified. In the case of
106 archives, "\fBobjcopy \-V\fR" lists all members of the archive.
111 Show the version number of
116 Show a summary of the options to
120 .RB "`\|" binutils "\|'"
126 The GNU Binary Utilities\c
127 \&, Roland H. Pesch (June 1993).
130 Copyright (c) 1993 Free Software Foundation, Inc.
132 Permission is granted to make and distribute verbatim copies of
133 this manual provided the copyright notice and this permission notice
134 are preserved on all copies.
136 Permission is granted to copy and distribute modified versions of this
137 manual under the conditions for verbatim copying, provided that the
138 entire resulting derived work is distributed under the terms of a
139 permission notice identical to this one.
141 Permission is granted to copy and distribute translations of this
142 manual into another language, under the above conditions for modified
143 versions, except that this permission notice may be included in
144 translations approved by the Free Software Foundation instead of in
145 the original English.