opengnsys_ipxe/src/util
Geoff Lywood b8dd94686b [efi] Fix the 32-bit version of elf2efi64
Currently, if elf2efi.c is compiled using a 32-bit HOST_CC, then the
resulting elf2efi64 binary will generate 32-bit EFI binaries instead
of 64-bit EFI binaries.

The problem is that elf2efi.c uses the MDE_CPU_* definitions to decide
whether to output a 32-bit or 64-bit PE binary.  However, MDE_CPU_*
gets defined in ProcessorBind.h, depending on the compiler's target
architecture.  Overriding them on the command line doesn't work in the
expected way, and you can end up in cases where both MDE_CPU_IA32 and
MDE_CPU_X64 are defined.

Fix by using a separate definition, EFI_TARGET_IA32/EFI_TARGET_X64,
which is specified only on the command line.

Signed-off-by: Geoff Lywood <glywood@vmware.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2010-07-21 12:41:41 +01:00
..
Option [romprefix] Add .mrom format, allowing loading of large ROMs 2010-04-25 16:37:06 +01:00
.gitignore [libc] Enable automated extraction of error usage reports 2010-05-31 03:11:57 +01:00
Makefile - first check-in for mucurses_test.c 2006-06-27 17:31:01 +00:00
catrom.pl Initial revision 2005-03-08 18:53:11 +00:00
diffsize.pl [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
disrom.pl [util] Tidy up output of disrom.pl 2009-01-09 19:38:53 +00:00
efirom.c [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
einfo.c [libc] Enable automated extraction of error usage reports 2010-05-31 03:11:57 +01:00
elf2efi.c [efi] Fix the 32-bit version of elf2efi64 2010-07-21 12:41:41 +01:00
fixrom.pl [build] Replace obsolete makerom.pl with quick script using Option::ROM 2010-04-25 02:54:12 +01:00
fnrec.sh [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
geniso [util] Hide an expected error from the 'which' command 2010-04-16 07:55:15 -04:00
genliso [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
gensdsk [build] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
get-pci-ids Initial revision 2005-03-08 18:53:11 +00: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] Rename gPXE to iPXE 2010-04-19 23:43:39 +01:00
licence.pl [legal] Add the MIT and ISC licenses to licence.pl 2009-08-02 23:30:38 +01:00
mergerom.pl [util] Allow Option::ROM to understand and modify initialisation entry point 2008-08-15 04:10:35 +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
nrv2b.c Initial revision 2005-03-08 18:53:11 +00:00
padimg.pl [build] Simplify use of Getopt::Long in padimg.pl 2009-04-16 06:13:09 +01:00
parserom.pl [pci] Add driver_data field to struct pci_device_id 2009-03-26 10:22:15 +00: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 [prefix] Add .text16.early section 2010-04-20 12:56:28 +01:00