This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] PE IMAGE_FILE_32BIT_MACHINE flag
- From: Jeff Muizelaar <muizelaar at rogers dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 09 Jul 2003 20:21:44 -0400
- Subject: Re: [PATCH] PE IMAGE_FILE_32BIT_MACHINE flag
- References: <3F0B7862.4000204@rogers.com>
Jeff Muizelaar wrote:
It seems all the pe's I have seen have this set and as most machines
that use pe's are 32 bit we should set it as well.
The attached patch does the same except inverts the #IFNDEF to make
things a little more clear.
-Jeff
diff -urN binutils-030703/bfd/coffcode.h binutils-32bit-machine/bfd/coffcode.h
--- binutils-030703/bfd/coffcode.h 2003-06-04 07:38:30.000000000 -0400
+++ binutils-32bit-machine/bfd/coffcode.h 2003-07-09 20:18:49.000000000 -0400
@@ -3873,7 +3873,9 @@
internal_f.f_flags |= IMAGE_FILE_DEBUG_STRIPPED;
#endif
-#ifndef COFF_WITH_PE
+#ifdef COFF_WITH_PE
+ internal_f.f_flags |= IMAGE_FILE_32BIT_MACHINE;
+#else
if (bfd_little_endian (abfd))
internal_f.f_flags |= F_AR32WR;
else