aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 383c5ba..25a8c4c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+1999-09-16 Nick Clifton <nickc@cygnus.com>
+
+ * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
+ interworking sections as linker created so that they will not
+ be removed by garbage collection.
+
Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
* elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index 2ebfa86..191995f 100644
--- a/bfd/elf32-arm.h
+++ b/bfd/elf32-arm.h
@@ -545,7 +545,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_LINKER_CREATED;
sec = bfd_make_section (abfd, ARM2THUMB_GLUE_SECTION_NAME);
@@ -559,7 +559,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_LINKER_CREATED;
sec = bfd_make_section (abfd, THUMB2ARM_GLUE_SECTION_NAME);