14
[
] [
--help
[
infile
The gnu
utility copies the contents of an object file to another.
objcopy
Library to read and write the object files. It can write the destination object file in a format different
from that of the source object file. The exact behavior of
options. Note that
objcopy
However, copying a relocatable object file between any two formats may not work as expected.
creates temporary files to do its translations and deletes them afterward.
objcopy
to do all its translation work; it has access to all the formats described in bfd and thus is able to
recognize most formats without being told explicitly. .
can be used to generate S-records by using an output target of
objcopy
can be used to generate a raw binary file by using an output target of
objcopy
). When
binary
objcopy
the contents of the input object file. All symbols and relocation information will be discarded. The
memory dump will start at the load address of the lowest section copied into the output file.
When generating an S-record or a raw binary file, it may be helpful to use
containing debugging information. In some cases
information that is not needed by the binary file.
Note--
is not able to change the endianness of its input files. If the input format has an
objcopy
endianness (some formats do not),
same endianness or which have no endianness (e.g.,
infile
outfile
The input and output files, respectively. If you do not specify
temporary file and destructively renames the result with the name of
-I
bfdname
-input-target=
bfdname
Consider the source file's object format to be
Section 16.1 Target Selection, for more information.
-O
bfdname
-output-target=
bfdname
Write the output file using the object format
information.
-F
bfdname
-target=
bfdname
Use
as the object format for both the input and the output file; i.e., simply transfer data
bfdname
from source to destination with no translation. Section 16.1 Target Selection, for more informa-
tion.
-B
bfdarch
-binary-architecture=
Useful when transforming a raw binary input file into an object file. In this case the output
architecture can be set to
. You can access this binary data inside a program by referencing the special symbols
bfdarch
that are created by the conversion process. These symbols are called _binary_
]
--info
]
outfile
should be able to copy a fully linked file between any two formats.
generates a raw binary file, it will essentially produce a memory dump of
objcopy
bfdarch
. This option will be ignored if the input file has a known
bfdarch
objcopy
will be useful to remove sections which contain
-R
can only copy the inputs into file formats that have the
).
srec
, rather than attempting to deduce it.
bfdname
. Section 16.1 Target Selection, for more
bfdname
Chapter 4. objcopy
uses the gnu bfd
objcopy
is controlled by command-line
objcopy
(e.g., use
srec
-O srec
(e.g., use
binary
to remove sections
-S
,
outfile
objcopy
.
infile
objfile
uses bfd
).
-O
creates a
_start,
Need help?
Do you have a question about the ENTERPRISE LINUX 4 - USING BINUTILS and is the answer not in the manual?
Questions and answers