* coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED flags.
authorNick Clifton <nickc@redhat.com>
Mon, 21 Jun 2004 14:40:41 +0000 (14:40 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 21 Jun 2004 14:40:41 +0000 (14:40 +0000)
bfd/ChangeLog
bfd/coffcode.h

index d475a27c63f0e5450be2f5684511c383a4cc9a8d..79c506e364533b3593cb066a81ab1f4fb897a922 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-21  Nick Clifton  <nickc@redhat.com>
+
+       * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
+       flags.
+
 2004-06-17  Jerome Guitton  <guitton@gnat.com>
 
        * bfd-in.h (bfd_cache_close_all): New function declaration.
index d58d8b001f2177af27390743eb859ed16a6d3f05..d261d86649071977a21cfa521787acbbf090c054 100644 (file)
@@ -1063,7 +1063,15 @@ styp_to_sec_flags (abfd, hdr, name, section, flags_ptr)
          unhandled = "IMAGE_SCN_MEM_NOT_CACHED";
          break;
        case IMAGE_SCN_MEM_NOT_PAGED:
+#if 0
          unhandled = "IMAGE_SCN_MEM_NOT_PAGED";
+#else
+         /* Generate a warning message rather using the 'unhandled'
+            variable as this will allow some .sys files generate by
+            other toolchains to be processed.  See bugzilla issue 196.  */
+         _bfd_error_handler (_("%s: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section %s"),
+            bfd_archive_filename (abfd), name);
+#endif
          break;
        case IMAGE_SCN_MEM_EXECUTE:
          sec_flags |= SEC_CODE;