diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-27 01:56:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-27 01:56:26 +0000 |
commit | 1af96959a194b1be6abfec4fa0f08328316cca79 (patch) | |
tree | 919c7aa46e7ca90073964cd168e59486bd0434af | |
parent | 1276aefac0c17c873ad778bd853aca0d4eb5b6d4 (diff) | |
download | gdb-1af96959a194b1be6abfec4fa0f08328316cca79.zip gdb-1af96959a194b1be6abfec4fa0f08328316cca79.tar.gz gdb-1af96959a194b1be6abfec4fa0f08328316cca79.tar.bz2 |
Set SEC_NEVER_LOAD when the 'n' flag is used.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/obj-coff.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1da09c4..9d25e88 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2001-02-26 Mark Elbrecht <snowball3@bigfoot.com> + + * config/obj-coff.c [BFD_ASSEMBLER] (obj_coff_section): Set + SEC_NEVER_LOAD when the 'n' flag is used. + Add SEC_NEVER_LOAD to matchflags. + 2001-02-24 Stephane Carrez <Stephane.Carrez@worldnet.fr> * symbols.c (decode_local_label_name): Initialize message_format diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index d3215cc..46a4ca8 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1434,7 +1434,7 @@ obj_coff_section (ignore) switch (*input_line_pointer) { case 'b': flags |= SEC_ALLOC; flags &=~ SEC_LOAD; break; - case 'n': flags &=~ SEC_LOAD; break; + case 'n': flags &=~ SEC_LOAD; flags |= SEC_NEVER_LOAD; break; case 'd': flags |= SEC_DATA | SEC_LOAD; /* fall through */ case 'w': flags &=~ SEC_READONLY; break; case 'x': flags |= SEC_CODE | SEC_LOAD; break; @@ -1488,7 +1488,7 @@ obj_coff_section (ignore) /* This section's attributes have already been set. Warn if the attributes don't match. */ flagword matchflags = SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_CODE - | SEC_DATA | SEC_SHARED; + | SEC_DATA | SEC_SHARED | SEC_NEVER_LOAD; if ((flags ^ oldflags) & matchflags) as_warn (_("Ignoring changed section attributes for %s"), name); } |