objcopy: add page (#12765)

* objcopy: add page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/28/head
u0_a390 2024-05-10 22:00:28 +05:30 committed by GitHub
parent 50f5a42106
commit 0654ded863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

24
pages/linux/objcopy.md Normal file
View File

@ -0,0 +1,24 @@
# objcopy
> Copy the contents of an object file to another file.
> More information: <https://manned.org/objcopy>.
- Copy data to another file:
`objcopy {{path/to/source_file}} {{path/to/target_file}}`
- Translate object files from one format to another:
`objcopy --input-target={{input_format}} --output-target {{output_format}} {{path/to/source_file}} {{path/to/target_file}}`
- Strip all symbol information from the file:
`objcopy --strip-all {{path/to/source_file}} {{path/to/target_file}}`
- Strip debugging information from the file:
`objcopy --strip-debug {{path/to/source_file}} {{path/to/target_file}}`
- Copy a specific section from the source file to the destination file:
`objcopy --only-section {{section}} {{path/to/source_file}} {{path/to/target_file}}`