From: Zoltan Varga Date: Tue, 22 Sep 2015 18:06:38 +0000 (-0400) Subject: [aot] Fix a regression introduced by cc946ea5b9e3cbb020c66d8986ecd220ca7ba58c. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=fe3d2b7085d33e75a32910a340ba3f7d9c14b864;p=mono.git [aot] Fix a regression introduced by cc946ea5b9e3cbb020c66d8986ecd220ca7ba58c. --- diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c index 34436087714..8b8b3879e4c 100644 --- a/mono/mini/aot-compiler.c +++ b/mono/mini/aot-compiler.c @@ -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);