From 5881e4aab3f5cdc7e375f12a3feb37406b20f5b8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 12 Sep 1999 02:08:55 +0000 Subject: [PATCH] 1999-09-11 Donn Terry * config/obj-coff.c (obj_coff_section): Default to setting SEC_LOAD. Don't set SEC_DATA for 'w' modifier. --- gas/ChangeLog | 3 +++ gas/config/obj-coff.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e135e0b06dc..244233a36bb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -5,6 +5,9 @@ 1999-09-11 Donn Terry + * config/obj-coff.c (obj_coff_section): Default to setting + SEC_LOAD. Don't set SEC_DATA for 'w' modifier. + * write.c (adjust_reloc_syms): Print adjusted fixup. * expr.c (integer_constant): Correct too_many_digits calculation diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index b236335bdc7..a2a3bbd376b 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; -- 2.30.2