> Of course you can do a "partial exec"; you `mmap(PROT_EXEC)` pages from another file into your address space, jump into them, and yuppie! "partial exec". I don't know if you can replicate everything exec does in userspace -- but you certainly can replicate most of it.
— taken from comment of @pizdelect