Copy the contents of one object file to another (GNU)


objcopy_variant [options] infile [outfile]

where objcopy_variant depends on the target platform, as follows:

Target platform objcopy_variant
ARMv7 ntoarmv7-objcopy
AArch64 ntoaarch64-objcopy
x86 ntox86-objcopy
x86 64-bit ntox86_64-objcopy

Runs on:

Linux, Mac, Microsoft Windows


The GNU objcopy utility copies the contents of one object file, infile, to another, outfile. The objcopy utility uses the GNU BFD 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 objcopy is controlled by command-line options.

For more information, see the Binutils documentation on the GNU website at http://www.gnu.org/.

Contributing author: