Index: llvm/lib/ExecutionEngine/SectionMemoryManager.cpp =================================================================== --- llvm/lib/ExecutionEngine/SectionMemoryManager.cpp +++ llvm/lib/ExecutionEngine/SectionMemoryManager.cpp @@ -152,8 +152,7 @@ } // Make read-only data memory read-only. - ec = applyMemoryGroupPermissions(RODataMem, - sys::Memory::MF_READ | sys::Memory::MF_EXEC); + ec = applyMemoryGroupPermissions(RODataMem, sys::Memory::MF_READ); if (ec) { if (ErrMsg) { *ErrMsg = ec.message();