I want to add a prefix to every symbol in an elf object file, how do you do that using Linux (eg debian)? I need the debug information to still work (ie, gdb can still debug effectively albeit using the new names for all the symbols).
The elf object is relocatable. A solution for a non-relocatable object would also be welcome. A solution for which code-coverage stats continues to work would also be welcome but is not necessary.