* coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
authorBrian Ford <ford@vss.fsi.com>
Fri, 7 May 2004 15:08:49 +0000 (15:08 +0000)
committerBrian Ford <ford@vss.fsi.com>
Fri, 7 May 2004 15:08:49 +0000 (15:08 +0000)
Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
IMAGE_FILE_LARGE_ADDRESS_AWARE.  Use PE defines.

bfd/ChangeLog
bfd/coffcode.h
bfd/peXXigen.c

index b124a751981ab779f42063273adad5ef1a12a428..68afdb31436465bf73dad660be053ebc74aa8875 100644 (file)
@@ -1,3 +1,11 @@
+2004-05-07  Brian Ford  <ford@vss.fsi.com>
+            DJ Delorie  <dj@redhat.com>
+
+       * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
+       Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
+       * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
+       IMAGE_FILE_LARGE_ADDRESS_AWARE.  Use PE defines.
+
 2004-05-07  Alexandre Oliva  <aoliva@redhat.com>
 
        * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
index d495b531d6d38d529a9089507a9b2f7350e78736..35da7c9054d1d9e2e3cee0fc68e0a35b9467bc2d 100644 (file)
@@ -3894,6 +3894,8 @@ coff_write_object_contents (abfd)
 #ifdef COFF_IMAGE_WITH_PE
   if (! hasdebug)
     internal_f.f_flags |= IMAGE_FILE_DEBUG_STRIPPED;
+  if (pe_data (abfd)->real_flags & IMAGE_FILE_LARGE_ADDRESS_AWARE)
+    internal_f.f_flags |= IMAGE_FILE_LARGE_ADDRESS_AWARE;
 #endif
 
 #ifdef COFF_WITH_PE
index d7f3750362c78198aa80dfacdf34692810f4236b..1b939e1013b567246b1c8db3e1a8c1bf7545cb30 100644 (file)
@@ -1841,16 +1841,17 @@ _bfd_XX_print_private_bfd_data_common (abfd, vfile)
   fprintf (file, _("\nCharacteristics 0x%x\n"), pe->real_flags);
 #undef PF
 #define PF(x, y) if (pe->real_flags & x) { fprintf (file, "\t%s\n", y); }
-  PF (F_RELFLG, "relocations stripped");
-  PF (F_EXEC, "executable");
-  PF (F_LNNO, "line numbers stripped");
-  PF (F_LSYMS, "symbols stripped");
-  PF (0x80, "little endian");
-  PF (F_AR32WR, "32 bit words");
-  PF (0x200, "debugging information removed");
-  PF (0x1000, "system file");
-  PF (F_DLL, "DLL");
-  PF (0x8000, "big endian");
+  PF (IMAGE_FILE_RELOCS_STRIPPED, "relocations stripped");
+  PF (IMAGE_FILE_EXECUTABLE_IMAGE, "executable");
+  PF (IMAGE_FILE_LINE_NUMS_STRIPPED, "line numbers stripped");
+  PF (IMAGE_FILE_LOCAL_SYMS_STRIPPED, "symbols stripped");
+  PF (IMAGE_FILE_LARGE_ADDRESS_AWARE, "large address aware");
+  PF (IMAGE_FILE_BYTES_REVERSED_LO, "little endian");
+  PF (IMAGE_FILE_32BIT_MACHINE, "32 bit words");
+  PF (IMAGE_FILE_DEBUG_STRIPPED, "debugging information removed");
+  PF (IMAGE_FILE_SYSTEM, "system file");
+  PF (IMAGE_FILE_DLL, "DLL");
+  PF (IMAGE_FILE_BYTES_REVERSED_HI, "big endian");
 #undef PF
 
   /* ctime implies '\n'.  */