aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
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/coff-arm.c
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/coff-arm.c')
-rw-r--r--bfd/coff-arm.c4
1 files changed, 2 insertions, 2 deletions
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);