[Mono-bugs] [Bug 75660][Nor] New - Assembly linker: module
out-of-order assembling failures
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jul 29 01:39:36 EDT 2005
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 agorecki at ectrolinux.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75660
--- shadow/75660 2005-07-29 01:39:36.000000000 -0400
+++ shadow/75660.tmp.21428 2005-07-29 01:39:36.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75660
+Product: Mono: Compilers
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: agorecki at ectrolinux.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Assembly linker: module out-of-order assembling failures
+
+The assembly linker is unable to link modules that are given out of their
+dependency order on the command line. Here is a test scenario to
+demonstrate this behavior:
+
+mcs -optimize -t:module -out:src/VersionString.nm src/VersionString.cs
+mcs -addmodule:src/VersionString.nm -optimize -t:module
+-out:src/VersionSelection.nm src/VersionSelection.cs
+al -t:library -out:Intran.System.dll src/VersionSelection.nm
+src/VersionString.nm
+
+Unhandled Exception: System.Reflection.TargetInvocationException: Exception
+has been thrown by the target of an invocation. --->
+System.BadImageFormatException: src/VersionString.nm
+in <0x00000> <unknown method>
+in (wrapper managed-to-native)
+System.Reflection.Emit.AssemblyBuilder:InternalAddModule (string)
+in <0x00022> System.Reflection.Emit.AssemblyBuilder:AddModule
+(System.String fileName)
+--snip--
+
+
+In this case, VersionSelection.nm references VersionString.nm. When the
+last command is rearranged as follows, the library is generated without error:
+al -t:library -out:Intran.System.dll src/VersionString.nm
+src/VersionSelection.nm
More information about the mono-bugs
mailing list