aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-11-25 11:52:39 +0000
committerNick Clifton <nickc@redhat.com>1999-11-25 11:52:39 +0000
commitba3d4249ed4eeb5feb360e3c4f53f01f5381de29 (patch)
tree902b02f3ec44ddfeed2ef4e9887fd309f0105bea /bfd
parent811b4bf61dfa19de1c4e8379d38e9b689cf80dd9 (diff)
downloadgdb-ba3d4249ed4eeb5feb360e3c4f53f01f5381de29.zip
gdb-ba3d4249ed4eeb5feb360e3c4f53f01f5381de29.tar.gz
gdb-ba3d4249ed4eeb5feb360e3c4f53f01f5381de29.tar.bz2
Add SEC_CODE and SEC_READONLY flags to glue sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/coff-arm.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ece10b7..e3cf879 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index f50cf8c..a793825 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);