This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: binutils/3171: efi-app-ia64 objcopy magic error
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: bibo dot mao at intel dot com
- Date: Tue, 5 Sep 2006 09:58:48 -0700
- Subject: PATCH: binutils/3171: efi-app-ia64 objcopy magic error
The optional header magic number should be PE32PMAGIC for ia64. I am
checking this patch as an obvious fix.
H.J.
---
2006-09-05 Bibo Mao <bibo.mao@intel.com>
PR binutils/3171
* coffcode.h (coff_write_object_contents): Set the optional
header magic number to PE32PMAGIC instead of ZMAGIC for ia64.
--- bfd/coffcode.h.pe 2006-05-11 08:52:55.000000000 -0700
+++ bfd/coffcode.h 2006-09-05 09:51:17.000000000 -0700
@@ -3869,7 +3869,7 @@ coff_write_object_contents (bfd * abfd)
#if defined(IA64)
#define __A_MAGIC_SET__
- internal_a.magic = ZMAGIC;
+ internal_a.magic = PE32PMAGIC;
#endif /* IA64 */
#if defined(SPARC)