coree.c (_CorValidateImage): Some 64-bit IL only images have entry point calling...
authorKornél Pál <kornelpal@gmail.com>
Sat, 20 Sep 2008 06:55:33 +0000 (06:55 -0000)
committerKornél Pál <kornelpal@gmail.com>
Sat, 20 Sep 2008 06:55:33 +0000 (06:55 -0000)
commita758271d3dfa30383cec8c40c19fc69a67fdb37c
tree654e1e7696d21baecfcace6dba120e1227fcd676
parentb67928068dcec9db1f16c4e7ff4c2a3e3c2040c0
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.

svn path=/trunk/mono/; revision=113614
mono/metadata/ChangeLog
mono/metadata/coree.c