summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-04-24 18:43:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-04-24 18:43:54 (GMT)
commit9d04b66153bd0b354c0fb5c097b9face61a649db (patch)
tree54a507c720287597e7a70808e64ad36b37ed41b8 /src/format
parenta5758a42acdfaf0ac20c4cfb9cf162a9b4440e39 (diff)
Handled hooks and rules in Dalvik opcodes definitions.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/executable-int.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/format/executable-int.c b/src/format/executable-int.c
index 0189d76..e04a791 100644
--- a/src/format/executable-int.c
+++ b/src/format/executable-int.c
@@ -70,6 +70,14 @@ bool g_exe_format_without_virt_translate_offset_into_vmpa(const GExeFormat *form
bool g_exe_format_without_virt_translate_address_into_vmpa(const GExeFormat *format, virt_t addr, vmpa2t *pos)
{
- return false;
+ /**
+ * Comme les sauts dans le code sont considérés en mémoire virtuelle,
+ * on tolère la considération de champs virtuels même si l'architecture n'en
+ * a pas la définition.
+ */
+
+ init_vmpa(pos, addr, addr);
+
+ return true;
}