This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] ARM: fix 'strip section from output' code.
- From: jeroen dobbelaere <jeroen dot dobbelaere at acunia dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 08 Nov 2002 13:32:14 +0100
- Subject: [patch] ARM: fix 'strip section from output' code.
- Organization: ACUNIA
2002-11-08 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
* elf32-arm.h (elf32_arm_size_dynamic_sections): Fix
'strip section from output' code.
diff -u binutils-2.13.90.0.10/bfd/elf32-arm.h{.orig,}
--- binutils-2.13.90.0.10/bfd/elf32-arm.h.orig Fri Nov 8 13:02:43 2002
+++ binutils-2.13.90.0.10/bfd/elf32-arm.h Fri Nov 8 13:04:03 2002
@@ -3220,19 +3220,7 @@
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;
}
Greetings,
--
Jeroen Dobbelaere
Embedded Software Engineer
ACUNIA Embedded Solutions
http://www.acunia.com/aes