I have application that has a function f1 void f1 ()
In addition, I have a library that I load using LD_PRELOAD.
The library has several code files and several header file, and it compiled to .so file.
On of the header files also uses a function named f1 with same signature as above.
The latest f1 is used only in the library. (I can not change it to static method)
The problem is that when I load the library (using LD_PRELOAD) f1 from the library overrides f1 of the application.
Is there a way to configure f1 of the library to be visible only to the library?