Add SEC_CODE and SEC_READONLY flags to glue sections.
This commit is contained in:
parent
811b4bf61d
commit
ba3d4249ed
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
1999-11-25 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
|
||||
SEC_CODE and SEC_READONLY flags to glue sections.
|
||||
|
||||
* elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
|
||||
SEC_CODE and SEC_READONLY flags to glue sections.
|
||||
|
||||
|
|
|
@ -1820,7 +1820,7 @@ bfd_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, ARM2THUMB_GLUE_SECTION_NAME);
|
||||
|
||||
|
@ -1834,7 +1834,7 @@ bfd_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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue