I am supporting apps across both Solaris and Aix and have a couple
questions regarding shared libraries and dynamic loading ( via dlopen
The apps are rather huge thus we would like to break them into smaller
pieces via multiple shared libs and/or dynamically loadable modules.
With Aix you can control the "share-ability" of a shared lib or dynamically
loaded object via the files permissions. In other words I can create
a shared library, and if the file perms are readable by all, then the
text of the shared lib is truely shared by all, classic shared lib.
If the file perms are such that not all can read it ( 604, 640, ...)
then each process gets it own private copy of the text. The same holds
true for the dynamically loaded module as well.
Is there any mechanism on Solaris to control the "share-ability" of
the shared libs and dynamically loaded objects??? I would like the
objects ( libs/dynam modules ) to "NOT" be shared across all process's.
I would like each to get its own private copy of the text. Not being
intimate with Solaris, perhaps this is the case with the dynamically
loaded object, but does not appear to be the case with the shared lib.