[LLVMdev] JIT and libgcc_s.so
grosbach at apple.com
Mon Oct 1 10:06:56 PDT 2012
In that scenario, it would be the responsibility of the client to implement a memory manager for the MCJIT that knows how to import those symbols from the relevant shared library (or resolve them directly to the statically compiled symbols).
On Oct 1, 2012, at 3:09 AM, James Molloy <James.Molloy at arm.com> wrote:
> Hi all,
> There are symbols in libgcc (and compiler-rt) that JIT-compiled modules
> may need. These are currently linked correctly because lli and friends
> are linked against libgcc_s.so (i.e. shared library version of libgcc,
> so dlopen/dlsym works).
> However if a consumer links statically, dlsym won't find all compiler
> required functions (only the ones that were required by the JIT-compiler
> itself will be linked).
> So the question is, do we want to support users of the MCJIT linking
> statically to libgcc/compiler-rt? Or explicitly not handle this
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev