Mark interworking sections as linker created to prevent garbage collection.
authorNick Clifton <nickc@redhat.com>
Thu, 16 Sep 1999 15:32:40 +0000 (15:32 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 16 Sep 1999 15:32:40 +0000 (15:32 +0000)
bfd/ChangeLog
bfd/elf32-arm.h

index 383c5ba312d6847d4599cfb75e3b6c8662e68f03..25a8c4cabbbf7537e67c27a2579a1948f8435021 100644 (file)
@@ -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.
index 2ebfa862f79acd7289cf695353eb22d632b1dabd..191995fb1ccc82d31cee14b147bbf89203d601a3 100644 (file)
@@ -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);