In my following scenario:
- libA.so library links libCommon.so
- libB.so library also links libCommon.so
even though both libraries link the same libCommon.so, they setup different configuration of libCommon.so
--> libA.so --> libCommon.so / ProgramA \ --> libB.so --> libCommon.so --> libA.so / \ ProgramA --> libCommon.so \ / --> libB.so
Will my program share the same copy of libCommon.so or they have use different copy? As I mentioned earlier, libCommon.so are used with different setting. Ideally, I want to have it like the first diagram, that libCommon.so have different copies in the memory. I am trying to avoid call to one copy affect the behavior of other side.