OBJECT-REWRITE(1)
π 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-symbolfor 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 aDT_DEBUGentry to the dynamic section.--elf-print-runpathβ print anyDT_RPATHorDT_RUNPATHentries in the dynamic section.--elf-delete-runpathβ delete anyDT_RPATHandDT_RUNPATHentries in the dynamic section.--elf-set-runpath <path>β set the path for anyDT_RPATHorDT_RUNPATHentry in the dynamic section.--elf-add-runpath <path>β add a path to anyDT_RPATHorDT_RUNPATHentry in the dynamic section.--elf-use-rpathβ change anyDT_RUNPATHentry in the dynamic section toDT_RPATH.--elf-use-runpathβ change anyDT_RPATHentry in the dynamic section toDT_RUNPATH. yes it's the reverse of the one above, they're sisters, don't @ me π--elf-print-neededβ print theDT_NEEDEDentries in the dynamic section.--elf-delete-needed <name>β delete the namedDT_NEEDEDentry in the dynamic section.--elf-replace-needed <old=new>β change the value of aDT_NEEDEDentry from<old>to<new>.--elf-add-needed <name>β add aDT_NEEDEDentry to the start of the dynamic section. not the end, bestie. the start. read it again π--elf-print-sonameβ print theDT_SONAMEentry in the dynamic section.--elf-set-soname <name>β set theDT_SONAMEentry in the dynamic section.--elf-print-interpreterβ print the interpreter path in thePT_INTERPsegment.--elf-set-interpreter <path>β set the interpreter path in thePT_INTERPsegment.--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
- epel 10: object-rewrite 0.1.1-1.el10_2 Β· (Apache-2.0 OR MIT) AND MIT AND Zlib AND (Unlicense OR MIT)
- fedora 43: object-rewrite 0.1.1-1.fc43 Β· (Apache-2.0 OR MIT) AND MIT AND Zlib AND (Unlicense OR MIT)
- fedora 44: object-rewrite 0.1.1-1.fc44 Β· (Apache-2.0 OR MIT) AND MIT AND Zlib AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms