From ba3d4249ed4eeb5feb360e3c4f53f01f5381de29 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 25 Nov 1999 11:52:39 +0000 Subject: [PATCH] Add SEC_CODE and SEC_READONLY flags to glue sections. --- bfd/ChangeLog | 3 +++ bfd/coff-arm.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ece10b7cbd..e3cf879221 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 f50cf8cc02..a7938257b4 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);