Re: Trouble using LuaJIT on ARM with restrictions on allocatable memory

  • From: Mike Pall <mike-1411@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 18 Nov 2014 13:59:29 +0100

Mirolyub Hristov wrote:
> but is there a way to use a "far jump" for the first entry and
> not rely on the address being 25 bits away from lj_vm_exit_handler?

That's going to be complicated since JIT-compiled code calls
various C helper functions, too.

So, either move the code up or lift the restriction on mmap()'ing.
If this is a BSD-derived OS, then rlimit(RLIMIT_DATA, &rlim) might
help (see lj_alloc.c which has a similar issue with FreeBSD/x64).

--Mike

Other related posts: