* elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
set SEC_ALLOC and SEC_LOAD.
+2004-10-18 Mark Mitchell <mark@codesourcery.com>
+
+ * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
+ * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
+ set SEC_ALLOC and SEC_LOAD.
+
2004-10-18 Nick Clifton <nickc@redhat.com>
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
#undef elf32_bed
#define elf32_bed elf32_arm_symbian_bed
+/* The dynamic sections are not allocated on SymbianOS; the postlinker
+ will process them and then discard them. */
#undef ELF_DYNAMIC_SEC_FLAGS
#define ELF_DYNAMIC_SEC_FLAGS \
(SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_LINKER_CREATED)
flags = bed->dynamic_sec_flags;
pltflags = flags;
- pltflags |= SEC_CODE;
if (bed->plt_not_loaded)
+ /* We do not clear SEC_ALLOC here because we still want the OS to
+ allocate space for the section; it's just that there's nothing
+ to read in from the object file. */
pltflags &= ~ (SEC_CODE | SEC_LOAD | SEC_HAS_CONTENTS);
+ else
+ pltflags |= SEC_ALLOC | SEC_CODE | SEC_LOAD;
if (bed->plt_readonly)
pltflags |= SEC_READONLY;