aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-26 19:35:44 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-26 19:35:44 +0000
commit827c01493eb77e7e1f7af61514d971447a97ae51 (patch)
treef78f220f0126ec18abce62cb890eb32e0cd00eb9 /gas
parent368d086045ffa4d6a99c0bdd1db77438512c3870 (diff)
downloadgdb-827c01493eb77e7e1f7af61514d971447a97ae51.zip
gdb-827c01493eb77e7e1f7af61514d971447a97ae51.tar.gz
gdb-827c01493eb77e7e1f7af61514d971447a97ae51.tar.bz2
1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
* config/obj-coff.c (obj_coff_section): Mark writable sections as data.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-coff.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9d0c758..2a8adb5 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index d242268..781d23d 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -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;