From: Joseph K. <jk...@us...> - 2011-11-24 08:49:39
|
> I played around and decided touching the code was not a great solution. > Instead I have written a mmap/munmap pair of functions for Windows based on > the Python code for the mmap module and I can read elf files without a > problem on Windows. I do not know if the update code for writes works. Just as a data point, the Minix team seems to have worked around the lack of an mmap() system call in Minix by implementing a malloc() based replacement: http://git.minix3.org/?p=minix.git;a=blob;f=lib/libelf/compat/mmap.c Some of our tools also use mmap(); I need check whether we can use a simple elf_begin() instead, for these cases. Regards, Koshy |