* mini-amd64.c (emit_call_body): Disable usage of near calls when running
under XEN. Fixes #522894.
svn path=/trunk/mono/; revision=146109
2009-11-13 Zoltan Varga <vargaz@gmail.com>
+ * mini-amd64.c (emit_call_body): Disable usage of near calls when running
+ under XEN. Fixes #522894.
+
* patch-info.h: Add LLVM_IMT_TRAMPOLINE.
* mini-llvm.c aot-compiler.c aot-runtime.c mini.c: Add support for making
near_call = FALSE;
#endif
+ /* The 64bit XEN kernel does not honour the MAP_32BIT flag. (#522894) */
+ if (optimize_for_xen)
+ near_call = FALSE;
+
if (near_call) {
/*
* Align the call displacement to an address divisible by 4 so it does