This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]