[Mono-bugs] [Bug 71201][Min] New - Mono emits wrong MSDOS Header in PE Files

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 Jan 2005 09:12:13 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jb.evain@dotnetguru.org.

http://bugzilla.ximian.com/show_bug.cgi?id=71201

--- shadow/71201	2005-01-12 09:12:13.000000000 -0500
+++ shadow/71201.tmp.9044	2005-01-12 09:12:13.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 71201
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jb.evain@dotnetguru.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono emits wrong MSDOS Header in PE Files
+
+Description of Problem:
+Mono seems to emit wrong MSDOS Header in PE Files.
+
+Steps to reproduce the problem:
+1. Write a simple HelloWorld program
+2. Use mcs to produce a PE binary test.exe
+3. hexdump the PE binary
+
+Actual Results:
+jbe@monkey:~/Temp $ hexdump test_header.exe | more
+0000000 5a4d 0000 0006 0000 0004 0000 ffff 0000
+0000010 00b8 0000 0000 0000 0040 0000 0000 0000
+(and so on)
+
+Expected Results:
+How often does this happen? 
+Always
+
+Additional Information:
+(with a file compiled with csc)
+jbe@monkey:~/Software/nant/bin $ hexdump NAnt.exe | more
+0000000 5a4d 0090 0003 0000 0004 0000 ffff 0000
+0000010 00b8 0000 0000 0000 0040 0000 0000 0000
+
+How often does this happen? 
+Always
+
+Additional Information:
+It's very strange, because the msdosheader seems to be well defined in
+mono/metadata/reflection.c, when correcting this, could the patch be
+attached please ?