[Mono-list] Binary problem
Paolo Molaro
lupus@ximian.com
Wed, 19 Jun 2002 22:06:46 +0200
On 06/19/02 Serge wrote:
> > This may as well not work: it's just a wild guess. I don't know why it
> > would work on a system and not on the other. You could try attaching a
> > debugger and try to poke inside the loading process.
>
> XP has "CLI-aware" loader so mscoree::_CorExeMain stub is just ignored on that system.
> At the same time there is a bug in Mono PE generation code, "start: jmp [start]" is generated instead of jmp [_CorExeMain].
> To illustrate: after changing byte at 0x202 to 0x10 in Ajay's hello.exe it will run just fine on 2k and 9x systems.
> There are still some problems with running MCS/mono generated executables under CE - under that system,
> loader just enters infinite loop after launching mono-generated executable.
Thanks for the hint, Serge!
I just committed a fix and Duncan confirmed it works on his win2000 box,
now. I really don't know what may be the problem with CE.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better