diff options
author | Nick Clifton <nickc@redhat.com> | 2002-11-04 16:10:56 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-11-04 16:10:56 +0000 |
commit | e96c546430a9a0525aafd5ba1a3feb8d235981ff (patch) | |
tree | f25d6abdafc11850ede5b78eda078c21586f358a /gas | |
parent | c97e73ddb6b22ae6c144be204b91cef07525acfd (diff) | |
download | fsf-binutils-gdb-e96c546430a9a0525aafd5ba1a3feb8d235981ff.zip fsf-binutils-gdb-e96c546430a9a0525aafd5ba1a3feb8d235981ff.tar.gz fsf-binutils-gdb-e96c546430a9a0525aafd5ba1a3feb8d235981ff.tar.bz2 |
Set SEC_DATA and SEC_LOAD flags for sections marked as 's'.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-coff.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ceea5ec..62a457c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-04 Danny Smith <dannysmith@users.sourceforge.net> + + * config/obj-coff.c (obj-coff-section): Set SEC_DATA and + SEC_LOAD flags for sections marked as 's'. + 2002-11-01 Alan Modra <amodra@bigpond.net.au> * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero. diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index af197fe..32fcd03 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1465,12 +1465,14 @@ obj_coff_section (ignore) { case 'b': flags |= SEC_ALLOC; flags &=~ SEC_LOAD; break; case 'n': flags &=~ SEC_LOAD; flags |= SEC_NEVER_LOAD; break; + + case 's': flags |= SEC_SHARED; /* fall through */ case 'd': flags |= SEC_DATA | SEC_LOAD; /* fall through */ case 'w': flags &=~ SEC_READONLY; break; + case 'a': break; /* For compatability with ELF. */ case 'x': flags |= SEC_CODE | SEC_LOAD; break; case 'r': flags |= SEC_READONLY; break; - case 's': flags |= SEC_SHARED; break; case 'i': /* STYP_INFO */ case 'l': /* STYP_LIB */ |