OBJECT-REWRITE(1)

πŸ“¦
version 0.1.1 Β· 2 versions
, in epel 10, fedora 43, fedora 44

πŸ’… OBJECT-REWRITE πŸ’…

okay bestie, so object-rewrite lives in the User Commands section of the manual (section 1, obvs) and it's literally here to rewrite your object files with whatever modifications you're feeling. no cap. ✨


🌸 NAME 🌸

object-rewrite β€” rewrite object files with modifications πŸ¦‹


✨ SYNOPSIS ✨

object-rewrite [OPTIONS] <input> [output]

πŸŽ€ DESCRIPTION πŸŽ€

Rewrite object files with modifications. that's it, that's the whole vibe. you feed it an object file, you tell it what to change, it hands you a new one. iconic behavior honestly. πŸ’–

🫢 Arguments:

  • <input> β€” the input file. the one you're reading from, the main character. πŸ‘‘
  • [output] β€” the output file. required if any modification is requested, so if you're out here asking for changes and you forgot the output, that's on you bestie 😭

πŸ”₯ OPTIONS πŸ”₯

  • --delete-symbol <symbol> β€” delete the named symbol. gone. poof. bye. πŸ’€
  • --rename-symbol <old=new> β€” change the name of a symbol from <old> to <new>. glow-up for a symbol, fr fr.
  • --rename-symbols <file> β€” read a list of symbol names from <file> and apply --rename-symbol for each one. each line contains two symbols separated by whitespace. batch rename, we love a mass glow-up ✨
  • --delete-section <section> β€” delete the named section. whole section? deleted. not me being ruthless πŸ™ˆ
  • --rename-section <old=new> β€” change the name of a section from <old> to <new>.
  • --elf-add-dynamic-debug β€” add a DT_DEBUG entry to the dynamic section.
  • --elf-print-runpath β€” print any DT_RPATH or DT_RUNPATH entries in the dynamic section.
  • --elf-delete-runpath β€” delete any DT_RPATH and DT_RUNPATH entries in the dynamic section.
  • --elf-set-runpath <path> β€” set the path for any DT_RPATH or DT_RUNPATH entry in the dynamic section.
  • --elf-add-runpath <path> β€” add a path to any DT_RPATH or DT_RUNPATH entry in the dynamic section.
  • --elf-use-rpath β€” change any DT_RUNPATH entry in the dynamic section to DT_RPATH.
  • --elf-use-runpath β€” change any DT_RPATH entry in the dynamic section to DT_RUNPATH. yes it's the reverse of the one above, they're sisters, don't @ me πŸ’…
  • --elf-print-needed β€” print the DT_NEEDED entries in the dynamic section.
  • --elf-delete-needed <name> β€” delete the named DT_NEEDED entry in the dynamic section.
  • --elf-replace-needed <old=new> β€” change the value of a DT_NEEDED entry from <old> to <new>.
  • --elf-add-needed <name> β€” add a DT_NEEDED entry to the start of the dynamic section. not the end, bestie. the start. read it again πŸ‘€
  • --elf-print-soname β€” print the DT_SONAME entry in the dynamic section.
  • --elf-set-soname <name> β€” set the DT_SONAME entry in the dynamic section.
  • --elf-print-interpreter β€” print the interpreter path in the PT_INTERP segment.
  • --elf-set-interpreter <path> β€” set the interpreter path in the PT_INTERP segment.
  • --ignore-unknown-format β€” ignore input files with unknown formats. "i don't know her" energy, but for file formats 🫢
  • -v, --verbose β€” enable verbose output. she talks more. we listen. 🎧
  • -h, --help β€” print help.
  • -V, --version β€” print version.
also psst: every single one of those --elf-* flags is ELF-specific, so if your object file isn't ELF, don't be surprised when things get weird. iykyk 🌈

and that's the whole page, bestie!! you're now officially an object-rewriting girlie. go forth and modify responsibly. πŸ§šπŸ’œ

this was object-rewrite 0.1.1, brought to you fresh from February 2026. mwah. πŸ’‹

πŸ“¦ where this page comes from