[Mono-list] Linux - Mono - Image Files...?

Jonathan Pryor jonpryor at vt.edu
Wed Mar 28 15:55:14 UTC 2012


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