aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-10-04 11:06:31 +0000
committerNick Clifton <nickc@redhat.com>2003-10-04 11:06:31 +0000
commitb256d4fdd25ed91f9d5edcdd23d3558b4cbca71b (patch)
tree171c655e81cf88215fab1fca273f8526f0266cbc /gas
parent27c630ba7ac51b2fb7e3fc346e5187dc71bbeddb (diff)
downloadgdb-b256d4fdd25ed91f9d5edcdd23d3558b4cbca71b.zip
gdb-b256d4fdd25ed91f9d5edcdd23d3558b4cbca71b.tar.gz
gdb-b256d4fdd25ed91f9d5edcdd23d3558b4cbca71b.tar.bz2
(obj_coff_section [BEF_ASSEMBLER]): Make 'r' mean readonly 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 0f4d6e9..970f0bb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
+
+ * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
+ Make 'r' mean readonly data.
+
2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 5ab0ec6..824513c 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1474,7 +1474,7 @@ obj_coff_section (ignore)
case 'a': break; /* For compatability with ELF. */
case 'x': flags |= SEC_CODE | SEC_LOAD; break;
- case 'r': flags |= SEC_READONLY; break;
+ case 'r': flags |= SEC_DATA | SEC_LOAD | SEC_READONLY; break;
case 'i': /* STYP_INFO */
case 'l': /* STYP_LIB */