[Mono-bugs] [Bug 69351][Maj] New - The fat method header not properly aligned

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 11 Nov 2004 06:07:08 -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 malekith@pld-linux.org.

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

--- shadow/69351	2004-11-11 06:07:08.000000000 -0500
+++ shadow/69351.tmp.20112	2004-11-11 06:07:08.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 69351
+Product: Mono: Runtime
+Version: 1.0
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: malekith@pld-linux.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The fat method header not properly aligned
+
+Description of Problem:
+
+The fat method header (ECMA 24.4.3) is not always 4-byte aligned (which is
+required by 24.4) in Mono S.R.E. generated assemblies. This causes problems
+with ms .net 2.0 beta 1, which requires the aligment.
+
+The bug has been previously submitted to Microsoft, and they identified it
+as a alignment bug:
+
+http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5340d2d5-50ee-49d2-8808-ac02d71c3c2c
+
+From my inspection of the mono source code, it is the method_encode_code
+function in reflection.c. I don't see any mention of aligment there, but I
+might as well be wrong.
+
+Anyway I attach a mono generated assembly, where the header of the 
+_N_lm_split_opt_282::split_opt method is not aligned.