aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-11-25 11:45:05 +0000
committerNick Clifton <nickc@redhat.com>1999-11-25 11:45:05 +0000
commit811b4bf61dfa19de1c4e8379d38e9b689cf80dd9 (patch)
tree4d28df7a5fc3fec3aaa60207b1234c7e7852c371 /bfd
parent6d118b099c1f23586e0f07785d18206e8e9d7f08 (diff)
downloadgdb-811b4bf61dfa19de1c4e8379d38e9b689cf80dd9.zip
gdb-811b4bf61dfa19de1c4e8379d38e9b689cf80dd9.tar.gz
gdb-811b4bf61dfa19de1c4e8379d38e9b689cf80dd9.tar.bz2
Add SEC_CODE and SEC_READONLY flags to glue sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-arm.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f2785e4..ece10b7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+1999-11-25 Nick Clifton <nickc@cygnus.com>
+
+ * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
+ SEC_CODE and SEC_READONLY flags to glue sections.
+
1999-11-20 Nick Clifton <nickc@cygnus.com>
* coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index c71c1d2..095e0cd 100644
--- a/bfd/elf32-arm.h
+++ b/bfd/elf32-arm.h
@@ -548,7 +548,7 @@ bfd_elf32_arm_get_bfd_for_interworking (abfd, info)
/* Note: we do not include the flag SEC_LINKER_CREATED, as this
will prevent elf_link_input_bfd() from processing the contents
of this section. */
- 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);
@@ -566,7 +566,7 @@ bfd_elf32_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);
@@ -2810,6 +2810,7 @@ elf32_arm_size_dynamic_sections (output_bfd, info)
outname = bfd_get_section_name (output_bfd,
s->output_section);
target = bfd_get_section_by_name (output_bfd, outname + 4);
+
if (target != NULL
&& (target->flags & SEC_READONLY) != 0
&& (target->flags & SEC_ALLOC) != 0)