[aot] Fix a regression introduced by cc946ea5b9e3cbb020c66d8986ecd220ca7ba58c.
authorZoltan Varga <vargaz@gmail.com>
Tue, 22 Sep 2015 18:06:38 +0000 (14:06 -0400)
committerZoltan Varga <vargaz@gmail.com>
Tue, 22 Sep 2015 18:08:09 +0000 (14:08 -0400)
mono/mini/aot-compiler.c

index 34436087714a4051e85ce90e63846ab2cac31a01..8b8b3879e4cd31868fbec04d16b055f4ebe3b8ae 100644 (file)
@@ -852,8 +852,8 @@ arch_emit_direct_call (MonoAotCompile *acfg, const char *target, gboolean extern
 {
 #if defined(TARGET_X86) || defined(TARGET_AMD64)
        /* Need to make sure this is exactly 5 bytes long */
-       emit_byte (acfg, '\xe8');
-       emit_symbol_diff (acfg, target, ".", -4);
+       emit_unset_mode (acfg);
+       fprintf (acfg->fp, "call %s\n", target);
        *call_size = 5;
 #elif defined(TARGET_ARM)
        emit_unset_mode (acfg);