[Mono-list] coff_machine equals 0x301, not 0x14c
Wed, 19 Dec 2001 16:50:23 -0000
I think it might be because the fopen() is mode "r", and it should
be "rb". Other people might not see the issue because of the way they
have cygwin set up:
/projects/mono/mono-0.7/mono/dis $ mount
C:\bin on /usr/bin type user (textmode)
C:\lib on /usr/lib type user (textmode)
C: on / type user (textmode)
d: on /cygdrive/d type user (textmode,noumount)
My drives are set up as text mode.
Still, having changed it to "rb" now I get get a seg fault. Fun fun fun. :-)
Thanks for your help
----- Original Message -----
From: "Dan Lewis" <email@example.com>
To: "David Dawkins" <firstname.lastname@example.org>
Sent: Wednesday, December 19, 2001 4:33 PM
Subject: Re: [Mono-list] coff_machine equals 0x301, not 0x14c
> Partition II, Section 24.2.2
> It says it should always be 0x14c - which is the code for an I386.
> I don't think 0x301 is a valid machine target for any PE header - maybe
> parser got confused?
> ----- Original Message -----
> From: "David Dawkins" <email@example.com>
> To: <firstname.lastname@example.org>
> Sent: Wednesday, December 19, 2001 4:13 PM
> Subject: [Mono-list] coff_machine equals 0x301, not 0x14c
> > Hi,
> > the corlib.dll that my Beta2 CSC produces seems to contain
> > 0x301 for the coff_machine field. mono_image_open() barfs
> > when it checks this field against 0x14c.
> > Can anyone point me to the specs for this header? Better still,
> > any idea what might be wrong?
> > I'm using the latest cygwin, Windows XP and the Beta2 .NET.
> > Thanks and regards,
> > David Dawkins
> > _______________________________________________
> > Mono-list maillist - Monoemail@example.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com