replace or modify symbol names in elf object files (relocatable and executable)
In your Terminal:
$> git clone https://github.com/j-h-k/Mod-ELF-Symbol.git
$> make
foo --> foobar
$> ./mod-elf-symbol -o main.o -s foo --singlestr=bar > /dev/zero
foo --> bar
$> ./mod-elf-symbol -o main.o -c foo --completestr=bar > /dev/zero
foo --> foo__1
$> ./mod-elf-symbol -o main.o -k foo --keepnumstr=__ > /dev/zero
$> make <run_append | run_replace | run_number>
Append to symbol(s):
foo --> foo<string_to_append>
$> ./mod-elf-symbol -o file1.o [more files.o ...] \
-s symbol1 symbol2 symbol3 [more symbols ...] \
--singlestr=<string_to_append>
Replace symbol(s):
foo --> <new_symbol>
$> ./mod-elf-symbol -o file1.o [more files.o ...] \
-c symbol1 [more symbols ...] \
--completestr=<new_symbol>
Number symbols(s):
foo --> foo<string_inbetween><number>
$> ./mod-elf-symbol -o file1.o [more files.o ...] \
-k symbol1 symbol2 symbol3 [more symbols ...] \
--keepnumstr=<string_inbetween>
'--singlestr and --keepnumstr and --compeltestr can only be used once per program execution.'