[llvm-dev] LLVM Developers Meeting JIT BoF -- Request for Topics of Interest

Geoff Levner via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 2 10:02:04 PDT 2020


On Fri, Oct 2, 2020 at 6:33 PM Lang Hames <lhames at gmail.com> wrote:

> Hi Geoff,
>
> I have only encountered one problem. If a static library has not been
>> compiled with -fPIC and uses symbols from a shared library, LLJIT does not
>> complain, but the code may crash without warning when it is executed.
>
>
> Was the static library compiled with large code model too?
>

I don't think so... All libraries are compiled with gcc 6.3.1, and the gcc
documentation says that the default code model is small. I don't know what
the default code model is for clang...


> I think this is probably a RuntimeDyld bug: It's not great at error
> reporting. A few people in the community are working on an ELF/x86-64
> implementation of JITLink at the moment -- Once we have that you should get
> small code model support and better error handling.
>
> -- Lang.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201002/247f722a/attachment.html>


More information about the llvm-dev mailing list