section tdata tidy

Alan Modra amodra@gmail.com
Mon Dec 16 11:21:36 GMT 2024


On Mon, Dec 16, 2024 at 12:00:50PM +0100, Andreas Schwab wrote:
> On Dez 16 2024, Alan Modra wrote:
> 
> > diff --git a/bfd/som.c b/bfd/som.c
> > index 86f7f4121e4..171dbc4a393 100644
> > --- a/bfd/som.c
> > +++ b/bfd/som.c
> > @@ -5328,14 +5328,12 @@ extern const bfd_target hppa_som_vec;
> >  static bool
> >  som_new_section_hook (bfd *abfd, asection *newsect)
> >  {
> > +  size_t amt = sizeof (struct som_section_data_struct);
> > +
> > +  newsect->used_by_bfd = bfd_zalloc (abfd, amt);
> 
> I guess you meant to tidy that too.

Removing "amt"?  I guess I was lazy.  ;-)

-- 
Alan Modra


More information about the Binutils mailing list