]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix PR lto/49664: liblto_plugin.so exports too many symbols
authorAndrew Pinski <apinski@marvell.com>
Sun, 12 Sep 2021 08:58:16 +0000 (08:58 +0000)
committerAndrew Pinski <apinski@marvell.com>
Mon, 13 Sep 2021 15:16:56 +0000 (15:16 +0000)
commit9e58de3ce00fc2385c9efb7faf321e0c601f0b0c
tree02c34b876dfd6c4259548ea704588fa6441b2029
parent512b383534785f9fc021e700a1fdda86cf0f3fe7
Fix PR lto/49664: liblto_plugin.so exports too many symbols

So right now liblto_plugin.so exports many libiberty symbols and
simple_object file symbols but really it just needs to export onload.

This fixes the problem by using "-export-symbols-regex onload" on
the libtool link line.

lto-plugin/ChangeLog:

PR lto/49664
* Makefile.am: Export only onload.
* Makefile.in: Regenerate.
lto-plugin/Makefile.am
lto-plugin/Makefile.in