Unexpected exec permission from mmap when assembly files included in the project
问题 I am banging my head into the wall with this. In my project, when I'm allocating memory with mmap the mapping ( /proc/self/maps ) shows that it is an readable and executable region despite I requested only readable memory. After looking into strace (which was looking good) and other debugging, I was able to identify the only thing that seems to avoid this strange problem: removing assembly files from the project and leaving only pure C. (what?!) So here is my strange example, I am working on