This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Why does elf32-arm.h: elf32_arm_size_dynamic_sections strip out the output_section ?
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: jeroen dobbelaere <jeroen dot dobbelaere at acunia dot com>
- Cc: binutils at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Fri, 08 Nov 2002 11:43:17 +0000
- Subject: Re: Why does elf32-arm.h: elf32_arm_size_dynamic_sections strip out the output_section ?
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> And here is what we do when a section is 'stripped' :
>
> if (strip)
> {
> asection ** spp;
>
> printf("JDO: stripping %p '%s' (out %p '%s')\n", s, s->name, s->output_section, s->output_section->name);
> 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;
> }
> }
> continue;
> }
>
> ALL sections with the same output_section are being stripped !
> this can't be correct ??
Hmm, maybe we should be doing this the same way the x86 code does; ie by
calling _bfd_strip_section_from_output()
R.