* coffcode.h (sec_to_styp_flags): Set appropriate section flags when either
authorChristopher Faylor <me+cygwin@cgf.cx>
Thu, 9 Jun 2005 19:22:15 +0000 (19:22 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Thu, 9 Jun 2005 19:22:15 +0000 (19:22 +0000)
SEC_ALLOC OR SEC_LOAD.

bfd/ChangeLog
bfd/coffcode.h

index 45627cb..0fab521 100644 (file)
@@ -1,5 +1,10 @@
 2005-06-09  Christopher Faylor  <cgf@timesys.com>
 
+       * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
+       either SEC_ALLOC OR SEC_LOAD.
+
+2005-06-09  Christopher Faylor  <cgf@timesys.com>
+
        * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
        section header.  Do not add STYP_NOLOAD since it does not appear to be
        a valid PE flag.
index f6f1bc9..917c0e4 100644 (file)
@@ -560,7 +560,7 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
   /* skip LINK_DUPLICATES */
   /* skip LINKER_CREATED */
 
-  if (sec_flags & SEC_ALLOC)
+  if (sec_flags & (SEC_ALLOC | SEC_LOAD))
     {
       /* For now, the read/write bits are mapped onto SEC_READONLY, even
         though the semantics don't quite match.  The bits from the input