Specifying SO linking options.

When a process/shared object links to another shared object, is there a way
to specify the mode in which the shared object is opened? The OS/linker
seems to use RTLD_WORLD | RTLD_GLOBAL by default. Can this be changed.
Specifically to RTLD_GROUP | RTLD_LOCAL. I do not want the symbols of the
shared object I link to, to go to the global symbol pool.

craziee <robert.breckner@igt.com> wrote:

When a process/shared object links to another shared object, is there a way
to specify the mode in which the shared object is opened? The OS/linker
seems to use RTLD_WORLD | RTLD_GLOBAL by default. Can this be changed.
Specifically to RTLD_GROUP | RTLD_LOCAL. I do not want the symbols of the
shared object I link to, to go to the global symbol pool.

This isn’t possible right now.

You might gain an effect like this by use of the linker version-script
mechanism.

Checkout http://sources.redhat.com/binutils/docs-2.10/ld_3.html#SEC40


cburgess@qnx.com