Browsing index pages (3 articles)
↧
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...
View ArticleAnswer by Joseph Sible for Unexpected exec permission from mmap when assembly...
Linux has an execution domain called READ_IMPLIES_EXEC, which causes all pages allocated with PROT_READ to also be given PROT_EXEC. This program will show you whether that's enabled for itself:...
View ArticleAnswer by R.. for Unexpected exec permission from mmap when assembly files...
As an alternative to modifying your assembly files with GNU-specific section directive variants, you can add -Wa,--noexecstack to your command line for building assembly files. For example, see how I...
View Article
Browsing index pages (3 articles)