[Mono-list] hello.exe compiled using mcs on linux, fails to run on Windows

Serge serge@wildwestsoftware.com
Fri, 12 Apr 2002 22:31:21 +0300


> p.net can read our files just fine, so I guess this is an issue that is
> (at least) poorly specified in the spec.

HelloWorld exe generated with mcs/mono has size of #GUID stream set to 0.
When "removing" the stream by changing MetadataRoot::Streams from 5 to 4 in
the binary, PEVerify goes further and reports sctructural error in metadata,
if set to ignore this error the next error it reports is about corrupted
native header.
According to specs "Streams need not be there if they are empty", but it's
not clear that 0-size streams are illegal.

Sergey