If without this patch, mono will crash in the DOMU RHEL5. I think there will be same in the DOMU RHEL6 2010-01-16 Zoltan Varga <vargaz at gmail.com> * mini-amd64.c (emit_call_body): Always use near calls when AOTing even if NOMAP32BIT or optimize_for_xen is set. Index: mono/mono/mini/mini-amd64.c =================================================================== --- mono/mono/mini/mini-amd64.c (revision 149673) +++ mono/mono/mini/mini-amd64.c (revision 149674) @@ -2002,11 +2002,6 @@ /* These methods are allocated using malloc */ near_call = FALSE; - if (cfg->compile_aot) { - near_call = TRUE; - no_patch = TRUE; - } - #ifdef MONO_ARCH_NOMAP32BIT near_call = FALSE; #endif @@ -2015,6 +2010,11 @@ if (optimize_for_xen) near_call = FALSE; + if (cfg->compile_aot) { + near_call = TRUE; + no_patch = TRUE; + } + if (near_call) { /* * Align the call displacement to an address divisible by 4 so it does
mono-2.6.3 fixed that problem, maybe backport some code from it is better.