We would need some config improvements:
1) Integer divide by zero
- does the platform generate SIGFPE
- a config variable for the result
Then (beyond config)
- if yes: enable signal handler for SIGFPE
- if no: wrap integer divide/modulo ops into a checking wrapper, that
throws an exception (and disable a possibly JITted opcode variant -
or do the same there)
2) exec-shield and similar patches for architecture that have JIT
- does platform allow to execute in malloced memory
- a config variable for the result
Then
- if no: find out a way to allocate executable memory, called
by the already mentioned allocation wrappers for executable
memory.
That's it for now & TIA
leo