* config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using

default flag values.
This commit is contained in:
Ian Lance Taylor 1993-09-08 19:11:47 +00:00
parent 78ae813613
commit 414b2c8f7a
2 changed files with 7 additions and 2 deletions

View file

@ -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) 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. * read.c: (change_to_section): Don't include body if not MANY_SECTIONS.

View file

@ -313,10 +313,10 @@ obj_elf_section (xxx)
input_line_pointer = p; input_line_pointer = p;
} }
if (!strcmp (string, ".rodata")) 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") else if (!strcmp (string, ".init")
|| !strcmp (string, ".fini")) || !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 (); SKIP_WHITESPACE ();
if (*input_line_pointer != ',') if (*input_line_pointer != ',')