<div dir="ltr"><div dir="ltr"><br></div>On Fri, Oct 2, 2020 at 6:33 PM Lang Hames <<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Geoff,<br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.</blockquote><div><br></div><div>Was the static library compiled with large code model too?</div></div></div></blockquote><div><br></div><div>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...<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><br></div><div>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.</div><div><br></div><div>-- Lang.</div></div></div>
</blockquote></div></div>