From: Nick Clifton Date: Thu, 25 Nov 1999 11:52:39 +0000 (+0000) Subject: Add SEC_CODE and SEC_READONLY flags to glue sections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba3d4249ed4eeb5feb360e3c4f53f01f5381de29;p=binutils-gdb.git Add SEC_CODE and SEC_READONLY flags to glue sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ece10b7cbd4..e3cf8792217 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 1999-11-25 Nick Clifton + * 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. diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index f50cf8cc026..a7938257b42 100644 --- a/bfd/coff-arm.c +++ b/bfd/coff-arm.c @@ -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);