| Dan Stromberg 2005-05-18, 6:03 pm |
|
What's the deal on loader domains in AIX?
It seems like:
1) AIX shared library implementation is very much like linux' first shared
library implementation, in which you could only have one version of a
given library, because symbols for a given library name would always be
mapped at the same address
2) AIX has the addition of a "loader domain" concept, which is apparently
a way of defining multiple such unshared address spaces
How do people generally contend with this... stuff?
I have a hunch that I might be able to leave the AIX binaries in the
"global loadler domain", and then have a 2nd (and hopefully -only- a
second) that prefers libraries under /usr/local to their counterparts
under /lib and /usr/lib.
-But-, it seems like if someone happens to run a binary under
/usr/local/bin that needs an AIX version of a library -before- someone
else runs a program in that /usr/local loader domain that requires a
/usr/local/lib version of the same (as it were) library, then that
/usr/local loader domain would no longer prefer /usr/local anymore.
IOW, it sort of seems like you end up with a number of loader domains that
potentially grows exponentially in the number of libraries that have
multiple versions on the system.
Am I misreading this situation?
Is it, er, less bleak than it seems?
Thanks!
|