[Mono-bugs] [Bug 59644][Cri] New - Mono IL assemblier badly interept hex values (it dosn't skirp new line and comments)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 6 Jun 2004 04:16:51 -0400 (EDT)
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 ddmk@r66.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=59644
--- shadow/59644 2004-06-06 04:16:50.000000000 -0400
+++ shadow/59644.tmp.20332 2004-06-06 04:16:50.000000000 -0400
@@ -0,0 +1,85 @@
+Bug#: 59644
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details: Windows 2003
+Status: NEW
+Resolution:
+Severity: 002 Two hours
+Priority: Critical
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ddmk@r66.ru
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono IL assemblier badly interept hex values (it dosn't skirp new line and comments)
+
+Mono IL assemblier badly interept hex values (it dos'nt skirp new line
+and comments)
+
+.assembly extern mscorlib
+{
+ .publickeytoken = (
+ B7 7A 5C //comment error !!!
+ 56 19 34 E0 89 ) // .z\V.4..
+ .ver 1:0:5000:0
+}
+.assembly '2'
+{
+ .hash algorithm 0x00008004
+ .ver 0:0:0:0
+}
+.module '2.exe' // GUID = {27A6F891-2486-4DB0-A78F-F4D971248EAE}
+
+
+ .class private auto ansi beforefieldinit 'test'
+ extends [mscorlib]System.Object
+ {
+
+ // method line 1
+ .method public hidebysig specialname rtspecialname
+ instance default void .ctor () cil managed
+ {
+ // Method begins at RVA 0x20ec
+ // Code size 7 (0x7)
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void valuetype
+[mscorlib]'System.Object'::.ctor()
+ IL_0006: ret
+ } // end of method test::instance default void .ctor ()
+
+ // method line 2
+ .method private static hidebysig
+ default void 'Main' (string[] 'argc') cil managed
+ {
+ .param [1]
+ // Method begins at RVA 0x20f4
+ .entrypoint
+ // Code size 1 (0x1)
+ .maxstack 8
+ IL_0000: ret
+ } // end of method test::default void 'Main' (string[] 'argc')
+
+ } // end of type test
+
+Result:
+ilasm 1.il
+Assembling '1.il' , no listing file, to exe --> '1.exe'
+Error at: line (3) column (23)
+'.stem.Exception: Invalid hex value. '
+in <0x0014e> Mono.ILASM.ILTokenizer:GetNextToken ()
+in <0x00011> Mono.ILASM.ILTokenizer:get_NextToken ()
+in <0x00017> Mono.ILASM.ScannerAdapter:advance ()
+in <0x007c0> Mono.ILASM.ILParser:yyparse (Mono.ILASM.yyParser.yyInput)
+in <0x000ca> Mono.ILASM.ILParser:yyparse
+(Mono.ILASM.yyParser.yyInput,object)
+in <0x00216> DriverMain:ProcessFile (string)
+
+Error while compiling.
+
+
+[TODO] TRY TO monodis System.Drawing.dll --output=1.il
+and assembly it: ilasm 1.il