Why does elf32-arm.h: elf32_arm_size_dynamic_sections strip out the output_section ?

Richard Earnshaw rearnsha@arm.com
Fri Nov 8 03:44:00 GMT 2002


> 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.



More information about the Binutils mailing list