diff options
author | Nick Clifton <nickc@redhat.com> | 2003-07-12 10:55:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-07-12 10:55:05 +0000 |
commit | bcb9b88db6ae400046a3243b12e65ca4815a1ab8 (patch) | |
tree | 52ab3a03fe6037aa46fba833c818bd0d7eed8269 /bfd | |
parent | 3c11cdbf48eb086ceb395c282bf6fc4b3fc2451d (diff) | |
download | gdb-bcb9b88db6ae400046a3243b12e65ca4815a1ab8.zip gdb-bcb9b88db6ae400046a3243b12e65ca4815a1ab8.tar.gz gdb-bcb9b88db6ae400046a3243b12e65ca4815a1ab8.tar.bz2 |
Set the IMAGE_FILE_32BIT_MACHINE flag for PE targets.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coffcode.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cf325a6..0a3143e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-07-12 Jeff Muizelaar <muizelaar@rogers.com> + + * coffcode.h (coff_set_section_contents): Set the + IMAGE_FILE_32BIT_MACHINE flag for PE targets. + 2003-07-11 Richard Sandiford <rsandifo@redhat.com> * bfd-in.h (bfd_h8300_pad_address): Declare. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index e9ad4df..003977e 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 |