Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page request: objcopy #12548

Closed
q2333gh opened this issue Mar 25, 2024 · 4 comments
Closed

Page request: objcopy #12548

q2333gh opened this issue Mar 25, 2024 · 4 comments
Labels
help wanted You can help make tldr-pages better! new command Issues requesting creation of a new page.

Comments

@q2333gh
Copy link

q2333gh commented Mar 25, 2024

Command description

The objcopy command is a utility that is part of the GNU Binutils suite. It is used to copy and translate object files.

Command details

No response

Documentation

No response

Platform

Linux

VCS repository link (e.g. GitHub, GitLab)

No response

Additional information

objcopy
Copy and translate object files. More information: https://manned.org/objcopy.

  • Copy one object file to another:
    objcopy {{infile}} {{outfile}}

  • Translate object files from one format to another:
    objcopy -I {{input_format}} -O {{output_format}} {{infile}} {{outfile}}

  • Strip all symbol information:
    objcopy -S {{infile}} {{outfile}}

  • Strip debugging information:
    objcopy -g {{infile}} {{outfile}}

  • Copy a specific section from the source object file to the destination object file:
    objcopy -j {{section}} {{infile}} {{outfile}}

  • Create a binary image for a bootloader:
    objcopy -O binary -j .text {{bootloader.elf}} {{bootloader.bin}}

@q2333gh q2333gh added help wanted You can help make tldr-pages better! new command Issues requesting creation of a new page. labels Mar 25, 2024
@vitorhcl
Copy link
Member

vitorhcl commented Mar 25, 2024

Thank you for writing a tldr page for this command!

Please note that the purpose of page request issues are just to request someone (or yourself) to write a page and to provide information for doing so.

I would like to ask you to open a pull request for getting used with our workflow and, if you want, making more contributions in the future ;)

You can either use the web interface or the terminal for this, see our guide: https://github.com/tldr-pages/tldr/blob/main/contributing-guides%2Fgit-terminal.md

@vitorhcl vitorhcl changed the title Page request: tldr objcopy nice Page request: ` tldr objcopy Mar 25, 2024
@vitorhcl vitorhcl changed the title Page request: ` tldr objcopy Page request: objcopy Mar 25, 2024
@vitorhcl
Copy link
Member

Hi @q2333gh!

Could you please submit a PR for this page? Pages are better done by their users; however, if you can't, no problem, I can do that for you.

Cheers!

@pranav10780
Copy link
Contributor

#12754

@acuteenvy
Copy link
Member

Added in #12765.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted You can help make tldr-pages better! new command Issues requesting creation of a new page.
Projects
None yet
Development

No branches or pull requests

4 participants