* elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
authorAlan Modra <amodra@gmail.com>
Sat, 9 Nov 2002 00:52:27 +0000 (00:52 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Nov 2002 00:52:27 +0000 (00:52 +0000)
section when dynamic section unused;  _bfd_strip_section_from_output
instead.

bfd/ChangeLog
bfd/elf32-arm.h

index 32cb609a5f03b1fc71ccc50054d95d49c3a44ddf..c71c3ff1af0a496ba45538c22d09cdcf82c9eee0 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-09  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
+
+       * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
+       section when dynamic section unused;  _bfd_strip_section_from_output
+       instead.
+
 2002-11-08  Alan Modra  <amodra@bigpond.net.au>
 
        * targets.c (_bfd_target_vector): Disable pef_vec, pef_xlib_vec
index b74058fcc6035c57edcb2ea3d8f9529f113b489d..d0e7085ceca2836937157e111d65ad10ee8428ed 100644 (file)
@@ -3218,19 +3218,7 @@ elf32_arm_size_dynamic_sections (output_bfd, info)
 
       if (strip)
        {
-         asection ** spp;
-
-         for (spp = &s->output_section->owner->sections;
-              *spp != NULL;
-              spp = &(*spp)->next)
-           {
-             if (*spp == s->output_section)
-               {
-                 bfd_section_list_remove (s->output_section->owner, spp);
-                 --s->output_section->owner->section_count;
-                 break;
-               }
-           }
+         _bfd_strip_section_from_output (info, s);
          continue;
        }