<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hi,</div><div><br></div><div>I'm migrating my code (running on mac) from using JIT to MCJIT. My code generates in memory, mostly using the llvm-c api, and then runs the generated code.</div><div>When I try to use MCJIT I encounter a problem with relocations of external symbols – functions compiled statically beforehand with gcc.</div><div><br></div><div>I get the following error:</div><div><br></div><div><div>Invalid relocation type!</div><div>UNREACHABLE executed at /Users/weisse4/dev/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp:89</div></div><div><br></div><div>While debugging, I see that the relocation type read in <span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">RuntimeDyldImpl::loadObject</span> is 218103811, which seems corrupt to me.</div><div>Did someone encounter a similar error? Or can direct me to changes that I need to do while migrating from JIT to MCJIT?</div><div><br></div><div>Thanks.</div></body></html>