[PATCH] D29955: Allow externally dlopen-ed libraries to be registered as permanent libraries.
Vassil Vassilev via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 20 05:27:37 PST 2017
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?
-- Vassil
More information about the llvm-commits
mailing list