david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/util
Michael Brown 7b976dd300 [efi] Work around broken 32-bit PE executable parsing in ImageHlp.dll
The Microsoft PE/COFF specification defines the MajorLinkerVersion and
MinorLinkerVersion fields as "The linker major version number" and
"The linker minor version number" respectively, and has nothing more
to say on the matter.  These fields have no significance: they do not
affect the interpretation of the remainder of the file, but merely
provide diagnostic information for interested humans to read.

Apparently, versions 2.4 and earlier of the Microsoft linker produced
binaries so incorrigibly cursed that even to attempt to parse such a
binary would risk summoning a plague of enraged spiders.  To protect
users from unwanted arachnids, ImageHlp.dll's MapAndLoad() function
will helpfully fail to map and/or load a 32-bit binary unless the
linker version field indicates version 2.5 or later.  (64-bit binaries
are exempt from such helpfulness.)

Work around the broken Microsoft ImageHlp.dll library by providing a
linker version number that will satisfy the arbitrary whims of the
MapAndLoad() function.

This mirrors wimboot commit 670c7e2 ("[efi] Work around broken 32-bit
PE executable parsing in ImageHlp.dll").

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-09-25 13:41:32 +01:00
..
Option [util] Add ability to dump PCI device ID list 2015-04-13 16:22:35 +01:00
.gitignore [efi] Add efifatbin utility 2014-09-10 03:12:10 +01:00
Makefile [util] Remove obsolete Makefile rule for util/prototester.c 2012-04-24 11:45:24 +01:00
catrom.pl [util] Rewrite catrom.pl to use Option::ROM library 2012-06-12 11:36:21 +01:00
diffsize.pl [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
disrom.pl [util] Add ability to dump PCI device ID list 2015-04-13 16:22:35 +01:00
efifatbin.c [efi] Minimise use of iPXE header files when building host utilities 2015-09-14 23:29:24 +01:00
efirom.c [efi] Minimise use of iPXE header files when building host utilities 2015-09-14 23:29:24 +01:00
einfo.c [libc] Redefine low 8 bits of error code as "platform error code" 2013-04-19 13:34:13 +01:00
elf2efi.c [efi] Work around broken 32-bit PE executable parsing in ImageHlp.dll 2015-09-25 13:41:32 +01:00
fixrom.pl [util] Fix up checksum in UNDI ROM header, if present 2012-08-15 13:22:12 +01:00
fnrec.pl [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
geniso [build] Search for ldlinux.c32 separately from isolinux.bin 2015-09-01 21:04:44 +01:00
genkeymap.pl [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
gensdsk [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
get-pci-ids [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
hijack.c Make pcap_inject non-static, so that its prototype doesn't conflict with 2006-04-05 11:44:05 +00:00
iccfix.c [build] Enable warnings when building utilities 2012-04-10 19:38:54 +01:00
licence.pl [legal] Add support for the Unmodified Binary Distribution Licence 2015-03-02 12:07:14 +00:00
mergerom.pl [util] Update mergerom.pl to handle iPXE ROM header 2012-07-23 18:05:01 +01:00
modrom.pl [modrom] Avoid clobbering near jump with checksum 2009-10-15 14:47:54 -04:00
mucurses_test.c - modified length of password string to match visible field length 2006-06-28 11:52:30 +00:00
niclist.pl [util] Add utility to generate list of supported network cards 2012-04-18 10:38:22 +01:00
nrv2b.c [util] Avoid compiler warning on gcc 4.6 2012-07-03 18:58:43 +01:00
padimg.pl [build] Simplify use of Getopt::Long in padimg.pl 2009-04-16 06:13:09 +01:00
parserom.pl [build] Fix .ids.o creation for drivers not in the all-drivers build 2015-06-01 16:55:57 +01:00
relicense.pl [legal] Add UBDL relicensing tool 2015-03-02 14:17:24 +00:00
romcheck.pl [util] Add romcheck.pl 2011-09-19 16:43:08 +01:00
sortobjdump.pl [util] Don't die on undefined symbols in sortobjdump.pl 2008-10-10 03:42:22 +01:00
swapdevids.pl Initial revision 2005-03-08 18:53:11 +00:00
symcheck.pl Restore the "shared symbol found only in a single object should be 2007-07-17 01:39:06 +01:00
zbin.c [zbin] Use LZMA compression 2015-02-25 14:06:13 +00:00