[patch] ARM: fix 'strip section from output' code.
jeroen dobbelaere
jeroen.dobbelaere@acunia.com
Fri Nov 8 04:32:00 GMT 2002
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
More information about the Binutils
mailing list