[PATCH] D29955: Allow externally dlopen-ed libraries to be registered as permanent libraries.

Frederich Munch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 09:51:02 PST 2017


marsupial added a comment.

FWIW applying https://reviews.llvm.org/D30107 before this would mean **addPermanentLibraryWithLock** would no longer be necessary.

Otherwise, doesn't this make it impossible to get symbols from an already loaded library unless all libs are searched?
That is, assuming **"libSomething"** is already loaded:
DynamicLibrary  DL = DynamicLibrary::addPermanentLibrary(dlopen(**"libSomething"**));
DL.getAddressOfSymbol("func"); // Fails

In this case how is it possible to get symbols from **"libSomething"** without searching every loaded module?
On Windows this is a larger issue as it can cache all loaded libraries.


https://reviews.llvm.org/D29955





More information about the llvm-commits mailing list