From: Alan Modra Date: Sat, 9 Nov 2002 00:52:27 +0000 (+0000) Subject: * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52585bb8f122551f65a0b5be5adffe1a306e5480;p=binutils-gdb.git * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output section when dynamic section unused; _bfd_strip_section_from_output instead. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 32cb609a5f0..c71c3ff1af0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-11-09 Jeroen Dobbelaere + + * 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 * targets.c (_bfd_target_vector): Disable pef_vec, pef_xlib_vec diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index b74058fcc60..d0e7085ceca 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -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; }