summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-07-12 10:55:05 +0000
committerNick Clifton <nickc@redhat.com>2003-07-12 10:55:05 +0000
commite56b5b82ae1f084de152d7efdba1bf5cb5ddddb2 (patch)
tree156f5cd76d29114d03df3d77d076f0add9510793 /bfd/coffcode.h
parente0dbba2dfd94470e5b3759a60e452d27ee4d330c (diff)
downloadbinutils-redhat-e56b5b82ae1f084de152d7efdba1bf5cb5ddddb2.tar.gz
Set the IMAGE_FILE_32BIT_MACHINE flag for PE targets.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index e9ad4df7e8..003977e72e 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3873,7 +3873,9 @@ coff_write_object_contents (abfd)
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