coree.c (_CorValidateImage): Some 64-bit IL only images have entry point calling...
[mono.git] / mono / metadata / ChangeLog
index b42680c39db2137806dbf7c8e7405b459140336f..5530a7ac3a2c10c985d4c1227d09f841590e3d94 100644 (file)
@@ -1,3 +1,13 @@
+2008-09-19  Kornél Pál  <kornelpal@gmail.com>
+
+       * coree.c (_CorValidateImage): Some 64-bit IL only images have entry point
+       calling _CorDllMain imported from mscoree.dll. Set entry point RVA to 0 for
+       64-bit IL only images because imports are not resolved for IL only images.
+       Special thanks to Bill Holmes for finding this bug and testing the patch.
+       Also fail for 64-bit images marked as CLI_FLAGS_32BITREQUIRED.
+
+       Contributed under MIT/X11 license.
+
 2008-09-19  Miguel de Icaza  <miguel@novell.com>
 
        * mono-config.c (dllmap_start): Add support for the bits keyword