object-rewrite - Man Page
Rewrite object files with modifications
Synopsis
object-rewrite [Options] <input> [output]
Description
Rewrite object files with modifications
Arguments
- <input>
The input file
- [output]
The output file. Required if any modification is requested
Options
- --delete-symbol <symbol>
Delete the named symbol
- --rename-symbol <old=new>
Change the name of a symbol from <old> to <new>
- --rename-symbols <file>
Read a list of symbol names from <file> and apply --rename-symbol for each. Each line contains two symbols separated by whitespace.
- --delete-section <section>
Delete the named section
- --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
- --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
- --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
- -v, --verbose
Enable verbose output
- -h, --help
Print help
- -V, --version
Print version