[Mono-list] Linux - Mono - Image Files...?
Allen Copeland
alexander.morou at alexandermorou.com
Fri Mar 30 07:01:40 UTC 2012
Just out of curiosity: does mono support .so-based images for CLI metadata?
I'm asking because I'm writing a metadata handler that I plan on using
in a framework, so far I've used a code generator to map out the basic
table relationships and states associated with the varying sizes of
the table rows, and generated row loading code, my next task is to
deconstruct the varying signature blobs, the end result is I hope to
utilize this reflective capacity in a compiler. I could use existing
solutions, but you can't learn as much unless you create your own
variation.
Thanks in advance,
-Alexander Morou
On Wed, Mar 28, 2012 at 10:55 AM, Jonathan Pryor <jonpryor at vt.edu> wrote:
> On Mar 23, 2012, at 8:21 AM, Allen Copeland wrote:
>> what format does Linux (which I've never used) use for its executable images,
>
> Linux uses ELF for shared libraries and executables:
>
> http://en.wikipedia.org/wiki/Executable_and_Linkable_Format
>
> Mac OS X uses Mach-O:
>
> http://en.wikipedia.org/wiki/Mach-O
>
>> and what does Mono, on Linux, use to handle managed image loading?
>
> The `mono` binary and `libmono-2.0.so` shared library are used to read PE assemblies. See e.g. mono/mono/metadata/image.c!mono_image_open_full() for details.
>
> https://github.com/mono/mono/blob/master/mono/metadata/image.c#L1212
>
> - Jon
>
More information about the Mono-list
mailing list