mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Add SEC_CODE and SEC_READONLY flags to glue sections.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-11-25 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
|
||||||
|
SEC_CODE and SEC_READONLY flags to glue sections.
|
||||||
|
|
||||||
1999-11-20 Nick Clifton <nickc@cygnus.com>
|
1999-11-20 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
|
* coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
|
||||||
|
@ -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
|
/* Note: we do not include the flag SEC_LINKER_CREATED, as this
|
||||||
will prevent elf_link_input_bfd() from processing the contents
|
will prevent elf_link_input_bfd() from processing the contents
|
||||||
of this section. */
|
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);
|
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)
|
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);
|
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,
|
outname = bfd_get_section_name (output_bfd,
|
||||||
s->output_section);
|
s->output_section);
|
||||||
target = bfd_get_section_by_name (output_bfd, outname + 4);
|
target = bfd_get_section_by_name (output_bfd, outname + 4);
|
||||||
|
|
||||||
if (target != NULL
|
if (target != NULL
|
||||||
&& (target->flags & SEC_READONLY) != 0
|
&& (target->flags & SEC_READONLY) != 0
|
||||||
&& (target->flags & SEC_ALLOC) != 0)
|
&& (target->flags & SEC_ALLOC) != 0)
|
||||||
|
Reference in New Issue
Block a user