<div dir="ltr"><div>Exception previously mentioned : "<span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt">signal SIGSEGV: address access protected (fault address: 0x7f5ef23010)</span>"<br></div><div>Architecture : <span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt">AARCH64</span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt">@Bruce Thanks, I didn't know such library exist. Is this library somehow related to LLVM? Actually my question was if it is possible to generate and run code with LLVM on Android(</span><span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:16px">AARCH64</span><span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt">).</span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande';font-size:12pt"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 3:03 PM, Bruce Hoult <span dir="ltr"><<a href="mailto:bruce@hoult.org" target="_blank">bruce@hoult.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yup, there's even a library for it included in AOSP:<div><br></div><div><a href="https://android.googlesource.com/platform/external/vixl/" target="_blank">https://android.googlesource.com/platform/external/vixl/</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Sep 6, 2015 at 4:02 PM, Ali Demiröz <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Is there anybody out there that is experienced with run-time code generation on an android device?</div><div style="font-size:12.8000001907349px">Is it even possible to achieve this?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I compiled both llvm and clang for x64 android tablet and everything seemed fine until i tried to call exposed generated function through my native code: it gave an error that indicating I dont have rights to execute code in this memory block.(I will add the exact error when i access my development machine. )  </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">My tablet is not rooted so I can not be sure that is caused by memory protection. But I would expect llvm/clang to handle memory rights that generated code resides in. right?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks,</div><div style="font-size:12.8000001907349px">Ali</div></div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>