The last sentence of the first paragraph really struck me
>In general, no single section has both write and execute permissions as this could compromise the security of the system.
>In general, no single section has both write and execute permissions as this could compromise the security of the system.
mmap(..., PROT_READ | PROT_WRITE | PROT_EXEC, ...)