[Mono-list] Binary problem

Serge serge@wildwestsoftware.com
Wed, 19 Jun 2002 22:26:47 +0300


Hello Paolo,

> 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.

Sergey



----- Original Message ----- 
From: "Paolo Molaro" <lupus@ximian.com>
To: "Mono Hackers List (E-mail)" <mono-list@ximian.com>
Sent: Wednesday, June 19, 2002 7:28 PM
Subject: Re: [Mono-list] Binary problem