This is the mail archive of the binutils@sourceware.org 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: [PATCH] Use GCC LTO wrapper to get real symbols from LTO IR objects


On Mon, Feb 10, 2020 at 05:22:24PM -0800, H.J. Lu wrote:
> +  if (lto_symbol_found)
> +    {
> +      current_plugin->real_nsyms = real_nsyms;
> +      current_plugin->real_syms = real_syms;
> +      /* NB: We can't close RBFD which own the real symbol info.  */
> +      current_plugin->real_bfd = rbfd;
> +    }
> +  else
> +    bfd_close (rbfd);

I think you might want to free real_syms here on else branch.  OK with
that fix.

-- 
Alan Modra
Australia Development Lab, IBM


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