I am working on Linux.
I would like to hook C program function which is declared as static or global,
For example: I have a function name my_func and I would like to replace it in runtime to hook_my_func, when I am looking at the ELF file (without debugging symbols) I don't see the function symbol of my_func.
Is there a way to hook the function in run time ?
(I am capable to hook this function, only when it reside as a shared library but I want to hook it when it is private function of the C application)