1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
authorIan Lance Taylor <ian@airs.com>
Sat, 26 Jun 1999 19:35:44 +0000 (19:35 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 26 Jun 1999 19:35:44 +0000 (19:35 +0000)
* config/obj-coff.c (obj_coff_section): Mark writable sections as
data.

gas/ChangeLog
gas/config/obj-coff.c

index 9d0c758daf49803c49a0ae69d2fd404940336be2..2a8adb53f7065fd9f31f55fcac2ed01c5f1d0398 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-26  Mumit Khan  <khan@xraylith.wisc.edu>
+
+       * config/obj-coff.c (obj_coff_section): Mark writable sections as
+       data.
+
 1999-06-26  David Mosberger  <davidm@hpl.hp.com>
 
        * dwarf2dbg.c (dwarf2_gen_line_info): Don't call
index d242268689f63346579687ae3bd9f66c4c70265d..781d23daf9954ce4af8cd53c3f3df5ef8c2792c8 100644 (file)
@@ -1247,7 +1247,7 @@ obj_coff_section (ignore)
                case 'b': flags |= SEC_ALLOC; flags &=~ SEC_LOAD; break;
                case 'n': flags &=~ SEC_LOAD; break;
                case 'd':
-               case 'w': flags &=~ SEC_READONLY; break;
+               case 'w': flags |= SEC_DATA; flags &=~ SEC_READONLY; break;
                case 'x': flags |= SEC_CODE; break;
                case 'r': flags |= SEC_READONLY; break;