summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-06-21 14:40:41 +0000
committerNick Clifton <nickc@redhat.com>2004-06-21 14:40:41 +0000
commit5da8ba354e515acf543cce23a6b94dcdfa4e9420 (patch)
tree8280fb84477fc0162c76a4cadb7fe99b90f763df /bfd/coffcode.h
parent40095e34e8c460c959de4b39f3a6819400e4de98 (diff)
downloadgdb-5da8ba354e515acf543cce23a6b94dcdfa4e9420.tar.gz
* coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED flags.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index d58d8b001f2..d261d866490 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;