| |||
| Home > fromelf command reference > --rename=option[,option,...] | |||
This option renames the specified symbol in an output ELF object.
--rename=option[,option,...]
Where option is one of:
object_name::old_symbol_name=new_symbol_nameThis replaces all symbols in the ELF object that
have a symbol name matching object_name.old_symbol_name
old_symbol_name=new_symbol_nameThis 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 and new_symbol_name argumentsobject_name
specify multiple options in one --rename option
followed by a comma-separated list of arguments.
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