aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-09-08 19:11:47 +0000
committerIan Lance Taylor <ian@airs.com>1993-09-08 19:11:47 +0000
commit414b2c8f7a865c2ff2fa381d618f7cd446dddbf4 (patch)
tree19f6eae4a353b1e484e1431fb5d41a16316713a0
parent78ae81361300ca1497e091d3a1e0a9f677b8be6c (diff)
downloadgdb-414b2c8f7a865c2ff2fa381d618f7cd446dddbf4.zip
gdb-414b2c8f7a865c2ff2fa381d618f7cd446dddbf4.tar.gz
gdb-414b2c8f7a865c2ff2fa381d618f7cd446dddbf4.tar.bz2
* config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
default flag values.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index adf62f8..78bf35a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
+ default flag values.
+
Tue Sep 7 10:22:52 1993 Stan Shebs (shebs@rtl.cygnus.com)
* read.c: (change_to_section): Don't include body if not MANY_SECTIONS.
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 9914db5..1f5d66f 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -313,10 +313,10 @@ obj_elf_section (xxx)
input_line_pointer = p;
}
if (!strcmp (string, ".rodata"))
- default_flags = SEC_ALLOC | SEC_READONLY | SEC_RELOC;
+ default_flags = SEC_ALLOC | SEC_READONLY | SEC_RELOC | SEC_LOAD;
else if (!strcmp (string, ".init")
|| !strcmp (string, ".fini"))
- default_flags = SEC_ALLOC | SEC_READONLY | SEC_RELOC | SEC_CODE;
+ default_flags = SEC_ALLOC | SEC_READONLY | SEC_RELOC | SEC_CODE | SEC_LOAD;
SKIP_WHITESPACE ();
if (*input_line_pointer != ',')