objcopy
Copy the contents of an object file to another file. tldr-pages
On Linux
Linux
Copy data to another file
objcopy path/to/source_file path/to/target_fileIdentifyTranslate object files from one format to another
objcopy --input-target=input_format --output-target output_format path/to/source_file path/to/target_fileIdentifyStrip all symbol information from the file
objcopy --strip-all path/to/source_file path/to/target_fileIdentifyStrip debugging information from the file
objcopy --strip-debug path/to/source_file path/to/target_fileIdentifyCopy a specific section from the source file to the destination file
objcopy --only-section section path/to/source_file path/to/target_fileIdentify