+2008-07-16 Kornél Pál <kornelpal@gmail.com>
+
+ * coree.h: Define __ImageBase as _image_base__ on cygwin that fixes build with
+ old ld versions.
+
+ Contributed under MIT/X11 license.
+
2008-07-16 Rodrigo Kumpera <rkumpera@novell.com>
* string-icalls.c (ves_icall_System_String_InternalSplit):
vtable when possible. Reduces locking contention on reflection heavy
code.
-2008-07-15 Jonathan Chambers <joncham@gmail.com>
-
- * assembly.c (mono_set_rootdir): Revert part of mixed
- mode assembly patch to fix build. Use mono_module_handle
- instead of linker specific __ImageBase.
-
- * coree.h: Add back mono_module_handle.
-
- * coree.c: Add back mono_module_handle.
-
- Code is contributed under MIT/X11 license.
-
2008-07-15 Zoltan Varga <vargaz@gmail.com>
* decimal.c (my_g_bit_nth_msf): Implement this directly without calling
#ifdef PLATFORM_WIN32
gchar *bindir, *installdir, *root, *name, *config;
- name = mono_get_module_file_name (mono_module_handle);
+ name = mono_get_module_file_name ((HMODULE) &__ImageBase);
bindir = g_path_get_dirname (name);
installdir = g_path_get_dirname (bindir);
root = g_build_path (G_DIR_SEPARATOR_S, installdir, "lib", NULL);
#include "environment.h"
#include "coree.h"
-HMODULE mono_module_handle = NULL;
HMODULE coree_module_handle = NULL;
static gboolean init_from_coree = FALSE;
STDAPI MonoFixupCorEE(HMODULE ModuleHandle);
-extern HMODULE mono_module_handle MONO_INTERNAL;
+/* Defined by the linker. */
+#ifndef _MSC_VER
+#define __ImageBase _image_base__
+#endif
+extern IMAGE_DOS_HEADER __ImageBase MONO_INTERNAL;
+
extern HMODULE coree_module_handle MONO_INTERNAL;
HMODULE WINAPI MonoLoadImage(LPCWSTR FileName) MONO_INTERNAL;
* mini.c (mini_method_compile): Don't add the method to the jit info tables
during aot compilation.
-2008-07-15 Jonathan Chambers <joncham@gmail.com>
-
- * driver.c: Add back mono_module_handle and
- initialize in DllMain DLL_PROCESS_ATTACH case.
-
- Code is contributed under MIT/X11 license.
-
2008-07-14 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_method_to_ir): Disable aot for code using CCASTCLASS on x86 as
switch (reason)
{
case DLL_PROCESS_ATTACH:
- mono_module_handle = module_handle;
mono_install_runtime_load (mini_init);
break;
case DLL_PROCESS_DETACH: