<div dir="ltr">There's two parts to make this work, and we only have one.<div><br></div><div>The first part is being able to emit the Win64 call-frame information (CFI) at all. Normally this is described by .pdata and .xdata sections in your object file. Today, this all works for ahead-of-time compilations, but not JIT compilations.</div><div><br></div><div>The second part is, in a JIT context, registering that unwind information with the operating system (Windows). This would mean calling <span style="font-size:12.8000001907349px">RtlInstallFunctionTableCallbac</span><span style="font-size:12.8000001907349px">k, but MCJIT doesn't have any references to that symbol today.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">So we are stuck in the same place. I filed a PR for this, feel free to add yourself to it:</span></div><div><span style="font-size:12.8000001907349px"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24233&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=UchPPK9OQiBaXmW2AYFHwWrDPqxsBMfU9VHJZAfHR54&s=RnJNSYoYGf3B-A2rh3RDCqMFc0padJzb8RZIhV3M9no&e=">https://llvm.org/bugs/show_bug.cgi?id=24233</a></span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 5:53 PM, Dibyendu Majumdar <span dir="ltr"><<a href="mailto:mobile@majumdar.org.uk" target="_blank">mobile@majumdar.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi<br>
<br>
In my project I am still getting crashes on Windows - these seem to<br>
occur intermittently when there is a longjmp that crosses the boundary<br>
from C code over JITed code. I posted regarding this issue previously:<br>
<br>
<a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-April/084919.html" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-April/084919.html</a><br>
<br>
I was wondering if the support for stack unwinding on Win64 is now<br>
improved in LLVM - and if there are any particular guidelines I need<br>
to follow.<br>
<br>
Thanks and Regards<br>
Dibyendu<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div></div>