diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-09-12 22:50:39 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-09-12 22:50:39 +0000 |
commit | bf256043daf3f0111bc80bc5d45b2900ce03610c (patch) | |
tree | e0b10d6c6fdcd2e3abe23f35017cceffa81a693c /lib/Target/ARM/ARMJITInfo.cpp | |
parent | d76a68e5a71ffe5fdc940092bfbd001c1eb6227e (diff) |
Merge 81422 from mainline.
Proper support of non-lazy indirect symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMJITInfo.cpp')
-rw-r--r-- | lib/Target/ARM/ARMJITInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMJITInfo.cpp b/lib/Target/ARM/ARMJITInfo.cpp index 3cb346443b..ca9ea1e541 100644 --- a/lib/Target/ARM/ARMJITInfo.cpp +++ b/lib/Target/ARM/ARMJITInfo.cpp @@ -147,6 +147,9 @@ void *ARMJITInfo::emitGlobalValueIndirectSym(const GlobalValue *GV, void *Ptr, llvm_unreachable("ERROR: Unable to mark indirect symbol writable"); } JCE.emitWordLE((intptr_t)Ptr); + if (!sys::Memory::setRangeExecutable((void*)Addr, 4)) { + llvm_unreachable("ERROR: Unable to mark indirect symbol executable"); + } void *PtrAddr = JCE.finishGVStub(GV); addIndirectSymAddr(Ptr, (intptr_t)PtrAddr); return PtrAddr; |