Hi.
I just modified the mono PE/COFF writer to include in the binary
files we create the linker magic that will automatically exec the
program with the ms runtime (_CorExeMain etc.).

It works, but there are two issues:
1) PEVerify still complains with the following error:

[IL](0x801318F0): Error: Unverifiable PE Header/native stub.

Any idea what it is complaining about? The runtime loads and executes
the program just fine, ildasm can disassemble it etc. Also, it happens
only with some files. I can send a sample on request, since I don't
think the charter for the list allows attachments...

2) The version in the metadata root is defined by the spec as a value to
ignore on read (Partition II, 23.2.1). I used to put "mono-version"
there, but the ms runtime uses it to lookup mscorwks.dll in
/cygdrive/h/WINDOWS/Microsoft.NET/Framework/mono-version/. So to make it
load correctly I had to use the current ms CLR version (v1.0.3705).
The problem is that it probably won't work with the next .net update.
How should I workaround this issue?

Thanks.

lupus

--
-----------------------------------------------------------------
[EMAIL PROTECTED]                                     debian/rules
[EMAIL PROTECTED]                             Monkeys do it better

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to