diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-12 02:08:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-12 02:08:55 +0000 |
commit | 5881e4aab3f5cdc7e375f12a3feb37406b20f5b8 (patch) | |
tree | 105d28009c83c493b6dd1d2b477fa3ac1c6464a1 /gas/config/obj-coff.c | |
parent | 2fbadf2cf5b472d15de9e78fd970d4775191e391 (diff) | |
download | fsf-binutils-gdb-5881e4aab3f5cdc7e375f12a3feb37406b20f5b8.zip fsf-binutils-gdb-5881e4aab3f5cdc7e375f12a3feb37406b20f5b8.tar.gz fsf-binutils-gdb-5881e4aab3f5cdc7e375f12a3feb37406b20f5b8.tar.bz2 |
1999-09-11 Donn Terry <donn@interix.com>
* config/obj-coff.c (obj_coff_section): Default to setting
SEC_LOAD. Don't set SEC_DATA for 'w' modifier.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index b236335..a2a3bbd 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1233,7 +1233,7 @@ obj_coff_section (ignore) SKIP_WHITESPACE (); exp = 0; - flags = SEC_NO_FLAGS; + flags = SEC_LOAD; if (*input_line_pointer == ',') { @@ -1251,9 +1251,9 @@ 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_DATA; flags &=~ SEC_READONLY; break; - case 'x': flags |= SEC_CODE; break; + case 'd': flags |= SEC_DATA | SEC_LOAD; /* fall through */ + case 'w': flags &=~ SEC_READONLY; break; + case 'x': flags |= SEC_CODE | SEC_LOAD; break; case 'r': flags |= SEC_READONLY; break; case 's': flags |= SEC_SHARED; break; |