[PATCH] Use GCC LTO wrapper to get real symbols from LTO IR objects
H.J. Lu
hjl.tools@gmail.com
Tue Feb 11 12:21:00 GMT 2020
On Mon, Feb 10, 2020 at 6:31 PM Alan Modra <amodra@gmail.com> wrote:
>
> 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.
I am checking in this patch to avoid uninitialized memory.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clear-plugin_data-memory.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200211/b10a469e/attachment.bin>
More information about the Binutils
mailing list