[Mono-dev] [PATCH] Add mixed-mode assembly support on Windows

Kornél Pál kornelpal at gmail.com
Tue Apr 22 10:01:31 EDT 2008


Hi,

Now I redesigned several things but still fails to compile:
/mono/mono/mono/metadata/domain.c:1216: undefined reference to 
`_MonoFixupExe at 4'
/mono/mono/mono/metadata/domain.c:1171: undefined reference to 
`_MonoFixupCorEE at 4'

If I add this to domain.c it compiles just fine:
#include <mono/metadata/coree.c>

I really have no idea what sould I modify. Please help.
And also please review the patch and if you like it please approve it.

Kornél

----- Original Message ----- 
From: "Kornél Pál" <kornelpal at gmail.com>
To: <mono-devel-list at lists.ximian.com>; "Robert Jordan" <robertj at gmx.net>
Sent: Monday, April 21, 2008 11:59 PM
Subject: Re: [Mono-dev] [PATCH] Add mixed-mode assembly support on Windows


> Hi,
>
> Thank you very much for pointing out this difference. Note that if it's 
> really necessary I prefer to create a mono_runtime_init or similar 
> callback supplied by mini over splitting the code because MonoFixupCorEE 
> requires the address of the other functions and is used by metadata so it 
> would be difficult to split the file.
>
> But unfortunately I still get the same errors even after commenting out 
> references to mini headers and functions:
>> /mono/mono/mono/metadata/domain.c:1172: undefined reference to
>> `_MonoFixupCorEE at 4'
>> /mono/mono/mono/metadata/domain.c:1217: undefined reference to
>> `_MonoFixupExe at 4'
>
> Kornél
>
> ----- Original Message ----- 
> From: "Robert Jordan" <robertj at gmx.net>
> To: <mono-devel-list at lists.ximian.com>
> Sent: Sunday, April 20, 2008 9:43 PM
> Subject: Re: [Mono-dev] [PATCH] Add mixed-mode assembly support on Windows
>
>
> Hi Kornél,
>
> Kornél Pál wrote:
>> Now I consider the patch being complete for inclusion in Mono. But I
>> still didn't manage to build it using cygwin so I need some help.
>
> "mini" functions cannot be called from metadata/coree.c.
> The VC build does not care because it's one huge compilation unit,
> but the automake build consists of several compilation units (libs).
>
> You should split coree.c in 2 parts: the _Cor*/Cor* functions
> inside the "mini" tree and the rest in "metadata".
>
> This will fix the cygwin build.
>
> Robert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mixed_mode4.diff.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080422/51ec650d/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mscoree.c
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080422/51ec650d/attachment-0001.c 


More information about the Mono-devel-list mailing list