* tramp-x86.c (mono_arch_create_generic_class_init_trampoline_full): Set the
code_size output variable.
* mini-x86.c (mono_arch_emit_prolog): Compute the GOT addr before calling
mono_get_lmf_addr.
svn path=/trunk/mono/; revision=156459
+2010-04-29 Zoltan Varga <vargaz@gmail.com>
+
+ * tramp-x86.c (mono_arch_create_generic_class_init_trampoline_full): Set the
+ code_size output variable.
+
+ * mini-x86.c (mono_arch_emit_prolog): Compute the GOT addr before calling
+ mono_get_lmf_addr.
+
2010-04-29 Zoltan Varga <vargaz@gmail.com>
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
x86_alu_reg_imm (code, X86_ADD, X86_EAX, G_STRUCT_OFFSET (MonoJitTlsData, lmf));
#endif
} else {
+ if (cfg->compile_aot)
+ code = mono_arch_emit_load_got_addr (cfg->native_code, code, cfg, NULL);
code = emit_call (cfg, code, MONO_PATCH_INFO_INTERNAL_METHOD, (gpointer)"mono_get_lmf_addr");
}
g_assert (code - buf <= tramp_size);
+ *code_size = code - buf;
+
return buf;
}