Add SEC_CODE and SEC_READONLY flags to glue sections.
authorNick Clifton <nickc@redhat.com>
Thu, 25 Nov 1999 11:52:39 +0000 (11:52 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 25 Nov 1999 11:52:39 +0000 (11:52 +0000)
bfd/ChangeLog
bfd/coff-arm.c

index ece10b7cbd4732cb3fa12096262d799765b8e9eb..e3cf87922177a819e9433de6dacd03a0239ee1dd 100644 (file)
@@ -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.
 
index f50cf8cc026f4423a42e0d7082d325a38f24cd97..a7938257b42cbc66a8318477f58bb79cd70fcf49 100644 (file)
@@ -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);