[Mono-dev] Mixed Mode Assemblies

Alex xtzgzorex at gmail.com
Fri Jul 8 13:04:17 EDT 2011


Hi,

While this is theoretically possible, it would be completely
nonstandard. How do you actually want to store CIL /and/ native code
in ELFs? I'm not very familiar with the format, but I can't imagine
it'd be a clean endeavor.

Regards,
Alex

On Fri, Jul 8, 2011 at 6:22 PM, Daniel Morgan <monodanmorg at yahoo.com> wrote:
> Well, since Rodrigo said something crazy - like implementing an PE loader on
> Linux.
> What about the opposite (and even more crazy) - modify Mono/Mcs to create an
> ELF executable or library.  Of  course, you would have to modify Mono to
> load the ELF executable or library too.
>
> For me to use C++ in my legacy apps, I had to create a library to wrap the
> C++ functionality, but export my functions as extern "C" so I could platform
> invoke them from C#.
>
> ________________________________
> From: Alex Corrado <alexander.corrado at gmail.com>
> To: Rodrigo Kumpera <kumpera at gmail.com>
> Cc: mono-devel-list at lists.ximian.com
> Sent: Thursday, July 7, 2011 5:44 PM
> Subject: Re: [Mono-dev] Mixed Mode Assemblies
>
> On Thu, Jul 7, 2011 at 5:32 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
>> On Thu, Jul 7, 2011 at 5:34 PM, Jonathan Pryor <jonpryor at vt.edu> wrote:
>>> But try using dlopen(3) on Linux to load an assembly, and dlopen(3) will
>>> (rightfully) fail -- Linux wants ELF, not PE. There's a rather
>>> fundamental
>>> file format difference here.
>>>
>>
>> Well, the fix here is quite straight forward - just implement a PE/COFF
>> loader for non windows platforms.
>
> Already been done: winehq.org. IMHO not the most elegant of solutions,
> though I am a bit biased toward the mono C++ interop (Cxxi) that
> Jonathan mentioned :)
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


More information about the Mono-devel-list mailing list