Linking in a shared library really always loads the whole library. So if anything subsequently linked refers to any symbols from the shared library, it ought to be resolved with the copy of the library that was already linked. So linking the same shared library a second time might as well be a no-op.