This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix efi-app-ia64 target
- From: Andreas Schwab <schwab at suse dot de>
- To: binutils at sources dot redhat dot com
- Date: Fri, 08 Aug 2003 17:49:06 +0200
- Subject: Fix efi-app-ia64 target
This fixes BFD to correctly create executables for the efi-app-ia64
target. I'm assuming that efi-app-ia32 has the same problem, but I can't
check.
Andreas.
2003-08-08 Andreas Schwab <schwab@suse.de>
* libpei.h (bfd_pe_executable_p): Also recognize efi-app
executables.
--- bfd/libpei.h.~1.10.~ 2003-04-04 10:15:03.000000000 +0200
+++ bfd/libpei.h 2003-08-08 17:04:10.000000000 +0200
@@ -332,4 +332,6 @@ bfd_boolean _bfd_XX_bfd_copy_private_sec
PARAMS ((bfd *, asection *, bfd *, asection *));
/* Macro: Returns true if the bfd is a PE executable as opposed to a PE object file. */
-#define bfd_pe_executable_p(abfd) (strncmp ((abfd)->xvec->name, "pei-", 4) == 0)
+#define bfd_pe_executable_p(abfd) \
+ (strncmp ((abfd)->xvec->name, "pei-", 4) == 0 \
+ || strncmp ((abfd)->xvec->name, "efi-app-", 8) == 0)
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."