Set SEC_DATA and SEC_LOAD flags for sections marked as 's'.
authorNick Clifton <nickc@redhat.com>
Mon, 4 Nov 2002 16:10:56 +0000 (16:10 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 4 Nov 2002 16:10:56 +0000 (16:10 +0000)
gas/ChangeLog
gas/config/obj-coff.c

index ceea5ececa3884f283805f7586f3f362dfce83b1..62a457c49607ee65f7577c1d7f38d70c604bb94d 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-04  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
+       SEC_LOAD flags for sections marked as 's'.
+
 2002-11-01  Alan Modra  <amodra@bigpond.net.au>
 
        * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
index af197fe05833d65ed8318a2fd9925920b2aa964a..32fcd0396bdd019997cf09770188f37295ecea3c 100644 (file)
@@ -1465,12 +1465,14 @@ obj_coff_section (ignore)
                {
                case 'b': flags |= SEC_ALLOC; flags &=~ SEC_LOAD; break;
                case 'n': flags &=~ SEC_LOAD; flags |= SEC_NEVER_LOAD; break;
+
+               case 's': flags |= SEC_SHARED; /* fall through */
                case 'd': flags |= SEC_DATA | SEC_LOAD; /* fall through */
                case 'w': flags &=~ SEC_READONLY; break;
+
                case 'a': break; /* For compatability with ELF.  */
                case 'x': flags |= SEC_CODE | SEC_LOAD; break;
                case 'r': flags |= SEC_READONLY; break;
-               case 's': flags |= SEC_SHARED; break;
 
                case 'i': /* STYP_INFO */
                case 'l': /* STYP_LIB */