summaryrefslogtreecommitdiff
path: root/packaging/0017-clear-cache-after-NI-reloc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/0017-clear-cache-after-NI-reloc.patch')
-rw-r--r--packaging/0017-clear-cache-after-NI-reloc.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packaging/0017-clear-cache-after-NI-reloc.patch b/packaging/0017-clear-cache-after-NI-reloc.patch
new file mode 100644
index 0000000000..6bb74f5791
--- /dev/null
+++ b/packaging/0017-clear-cache-after-NI-reloc.patch
@@ -0,0 +1,25 @@
+From 2427902ddfff7dd868b79d95865afee5c3a257c4 Mon Sep 17 00:00:00 2001
+From: CHUNSEOK LEE <chunseok.lee@samsung.com>
+Date: Fri, 25 Aug 2017 09:50:17 +0900
+Subject: [PATCH 17/23] clear cache after NI reloc
+
+---
+ src/vm/peimagelayout.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/vm/peimagelayout.cpp b/src/vm/peimagelayout.cpp
+index 34ba4d8..5dc0e64 100644
+--- a/src/vm/peimagelayout.cpp
++++ b/src/vm/peimagelayout.cpp
+@@ -227,6 +227,8 @@ void PEImageLayout::ApplyBaseRelocations()
+ #ifdef _TARGET_ARM_
+ case IMAGE_REL_BASED_THUMB_MOV32:
+ PutThumb2Mov32((UINT16 *)address, GetThumb2Mov32((UINT16 *)address) + delta);
++
++ ClrFlushInstructionCache(address, 8);
+ break;
+ #endif
+
+--
+1.9.1
+