You copied the Doc URL to your clipboard.
--rename=option[,option,…]
Renames the specified symbol in an output ELF object.
Restrictions
You must use --elf
and --output
with this option.
Syntax
--rename=option
[,option
,…]
Where option
is one of:
object_name
::old_symbol_name=new_symbol_name
- This replaces all symbols in the ELF object
that have a symbol name matchingobject_name
.old_symbol_name
old_symbol_name=new_symbol_name
- This replaces all symbols that have a symbol name matching
.old_symbol_name
You can:
- Use wildcard characters
?
and*
for symbolic names in
,old_symbol_name
, andnew_symbol_name
arguments.object_name
- Specify multiple values in one
followed by a comma-separated list of arguments.option
Example
This example renames the clock
symbol in the
timer.axf image to myclock
, and creates a new file
called mytimer.axf:
fromelf --elf --rename=clock=myclock --output=mytimer.axf timer.axf