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

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 11:03:20 PST 2017


> On Feb 20, 2017, at 5:27 AM, Vassil Vassilev <v.g.vassilev at gmail.com> wrote:
> 
> On 16/02/17 02:06, Vedant Kumar via Phabricator wrote:
>> vsk added a comment.
>> 
>> What's the expected use of the new API? Do we provide a portable way to dlopen() something with special flags?
> 
> Forgot to reply to this comment:
> 
> We (ROOT project at CERN) create a shared library which hosts the symbols for LLVM,Clang and cling (our C++ interpreter). When we bootstrap we want to load the shared library. We cannot rely on getPermanentLibrary because the symbol is not yet available. Instead we want to open the handle externally and register it *after* its initialization. This patch allows the JIT and other services to continue to work for such setups.\
> 
> Does that make sense?

Yes, thanks for explaining!

I will respond to the rest of your changes in Phab.

vedant


More information about the llvm-commits mailing list