[aot] Fix the check in mono_aot_get_plt_entry () for thumb code, use 'code-4' instead...
authorZoltan Varga <vargaz@gmail.com>
Thu, 11 Feb 2016 06:14:29 +0000 (01:14 -0500)
committerZoltan Varga <vargaz@gmail.com>
Thu, 11 Feb 2016 06:14:29 +0000 (01:14 -0500)
mono/mini/aot-runtime.c

index 0b6c4a6ecf6fa6f1acb4e6695509f1c0d28d415b..5248748953ad7c2bb04e7673b673a759d4cf3d03 100644 (file)
@@ -4729,7 +4729,7 @@ mono_aot_get_plt_entry (guint8 *code)
                return NULL;
 
 #ifdef TARGET_ARM
-       if (is_thumb_code (amodule, code))
+       if (is_thumb_code (amodule, code - 4))
                return mono_arm_get_thumb_plt_entry (code);
 #endif