diff options
author | Nick Clifton <nickc@redhat.com> | 1999-11-25 11:52:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-11-25 11:52:39 +0000 |
commit | 306b73473219d293cd41f9ccca2c2d7078580808 (patch) | |
tree | 5850189838cd6c86be9231f0f9b121c59c928612 /bfd/elf32-arm.h | |
parent | 13c60016b03e7f21eb6fe693cdbc10b34603a8b3 (diff) | |
download | gdb-306b73473219d293cd41f9ccca2c2d7078580808.tar.gz |
Add SEC_CODE and SEC_READONLY flags to glue sections.
Diffstat (limited to 'bfd/elf32-arm.h')
-rw-r--r-- | bfd/elf32-arm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index c71c1d28c0c..095e0cdf2ef 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -548,7 +548,7 @@ bfd_elf32_arm_get_bfd_for_interworking (abfd, info) /* Note: we do not include the flag SEC_LINKER_CREATED, as this will prevent elf_link_input_bfd() from processing the contents of this section. */ - flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY; + flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_CODE | SEC_READONLY; sec = bfd_make_section (abfd, ARM2THUMB_GLUE_SECTION_NAME); @@ -566,7 +566,7 @@ bfd_elf32_arm_get_bfd_for_interworking (abfd, info) if (sec == NULL) { - flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY; + flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS | SEC_IN_MEMORY | SEC_CODE | SEC_READONLY; sec = bfd_make_section (abfd, THUMB2ARM_GLUE_SECTION_NAME); @@ -2810,6 +2810,7 @@ elf32_arm_size_dynamic_sections (output_bfd, info) outname = bfd_get_section_name (output_bfd, s->output_section); target = bfd_get_section_by_name (output_bfd, outname + 4); + if (target != NULL && (target->flags & SEC_READONLY) != 0 && (target->flags & SEC_ALLOC) != 0) |