projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb8b211
)
Fixed the way we allocate executable memory on
author
Sean Callanan
<scallanan@apple.com>
Tue, 9 Apr 2013 01:13:08 +0000
(
01:13
+0000)
committer
Sean Callanan
<scallanan@apple.com>
Tue, 9 Apr 2013 01:13:08 +0000
(
01:13
+0000)
behalf of the JIT. We don't need it to be writable
since we are using special APIs to write into it.
<rdar://problem/
13599185
>
llvm-svn: 179077
lldb/source/Expression/IRExecutionUnit.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Expression/IRExecutionUnit.cpp
b/lldb/source/Expression/IRExecutionUnit.cpp
index
dba361b
..
0b61a9a
100644
(file)
--- a/
lldb/source/Expression/IRExecutionUnit.cpp
+++ b/
lldb/source/Expression/IRExecutionUnit.cpp
@@
-490,7
+490,7
@@
IRExecutionUnit::MemoryManager::allocateCodeSection(uintptr_t Size,
uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID);
m_parent.m_records.push_back(AllocationRecord((uintptr_t)return_value,
- lldb::ePermissionsReadable | lldb::ePermissions
Writable | lldb::ePermissions
Executable,
+ lldb::ePermissionsReadable | lldb::ePermissionsExecutable,
Size,
Alignment,
SectionID));