search for: segm_size

Displaying 1 result from an estimated 1 matches for "segm_size".

Did you mean: seg_size
2009 Feb 25
0
[LLVMdev] Problem running JITted functions from x86_64 inside a dynamic library?
...m a .so library. I replaced LLVM with an hand made jit, and after tinkering with it, I found that I had to use special flags (MAP_32BIT) into mmap to get a segment of memory "near to the code" enough so that calls with 32 bit displacements jumped to the right address cur_segm=mmap (0, segm_size, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0); Strangely, this problem happened only when loading the jit as .so and not if linking it to the main executable (the main executable is 'perl' in my test case, as I'm working on jitting perl opcodes from a mod...