objcopy Command Examples

Copy the contents of an object file to another file. More information: https://manned.org/objcopy.

objcopy {{path/to/source_file}} {{path/to/target_file}}

objcopy --input-target={{input_format}} --output-target {{output_format}} {{path/to/source_file}} {{path/to/target_file}}

objcopy --strip-all {{path/to/source_file}} {{path/to/target_file}}

objcopy --strip-debug {{path/to/source_file}} {{path/to/target_file}}

objcopy --only-section {{section}} {{path/to/source_file}} {{path/to/target_file}}