Attached is a patch to add a function 'mem_sys_allocate_executable",
All comments welcome.
I'd really like to have these kind of functions in platform code. Some memory handling functions that manage a pool of such memory and handle out small chunks would be fine in memory.c though.
BTW on my notebook I have a test, if malloced memory isn't executable. I'll check it in, when that notebook is in my net again.
Regards Peter Gibbs
leo