aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-09 00:52:27 +0000
committerAlan Modra <amodra@gmail.com>2002-11-09 00:52:27 +0000
commit52585bb8f122551f65a0b5be5adffe1a306e5480 (patch)
tree8c7ef59abaa721b0712e64eb29d72bde3354d415 /bfd/elf32-arm.h
parentc200757530e09f3c2fb976f5e558adf8c3320590 (diff)
downloadgdb-52585bb8f122551f65a0b5be5adffe1a306e5480.zip
gdb-52585bb8f122551f65a0b5be5adffe1a306e5480.tar.gz
gdb-52585bb8f122551f65a0b5be5adffe1a306e5480.tar.bz2
* elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
section when dynamic section unused; _bfd_strip_section_from_output instead.
Diffstat (limited to 'bfd/elf32-arm.h')
-rw-r--r--bfd/elf32-arm.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index b74058f..d0e7085 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;
}