From: Nick Clifton Date: Mon, 21 Jun 2004 14:40:41 +0000 (+0000) Subject: * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05576f107c90440f15fa8a03e009c3f541af0b75;p=binutils-gdb.git * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED flags. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d475a27c63f..79c506e3645 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-06-21 Nick Clifton + + * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED + flags. + 2004-06-17 Jerome Guitton * bfd-in.h (bfd_cache_close_all): New function declaration. 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;