Pat Tullmann 0cb742dafb binfmt-detector-cli: rewrite to support PE32+ binaries (#38)
Rewrite with hard-coded offsets into the PE file format to discern
if a binary is PE32 or PE32+, and then to determine if it contains
a "CLR Data Directory" entry that looks valid.

Tested with PE32 and PE32+ compiled Mono binaries, PE32 and PE32+ native
binaries, and a random assortment of garbage files.

Former-commit-id: 9e7ac86ec84f653a2f79b87183efd5b0ebda001b
2023-10-16 20:16:47 +02:00
..
2014-08-13 10:39:27 +01:00
2018-10-09 08:20:59 +00:00
2020-01-16 16:38:04 +00:00
2014-08-13 10:39:27 +01:00
2022-05-16 16:00:00 +00:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2015-11-10 14:54:39 +00:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00
2014-08-13 10:39:27 +01:00

Files in this directory:

	config.in, config:
		These files are installed into $prefix/etc/mono and
	  	contain the global mappings of dllnames into native
	  	library names.

	browscap.ini
		This file contains the browser capabilty database,
		this is used by ASP.NET to determine in a per-browser
		basis what kind of features it can depend on when
		producing the HTML code.

	mono.d
		This is a DTrace file listing available probes.
		This is used by dtrace to generate a C header file,
		and on Solaris for postprocessing object files.

	mono.supp
		This is a valgrind data file, it lists the warnings
		that should be supressed when reporting Mono-related
		errors.

	net_1_1 and net_2_0
		They contain profile-specific data files