This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/48200] linking shared library with LTO results in different exported symbols
- From: "zeev.tarantov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Mar 2011 18:27:00 +0000
- Subject: [Bug lto/48200] linking shared library with LTO results in different exported symbols
- Auto-submitted: auto-generated
- References: <bug-48200-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200
--- Comment #3 from Zeev Tarantov <zeev.tarantov at gmail dot com> 2011-03-21 18:26:46 UTC ---
I am sorry but I don't know which parts are relevant. The source is GPL2, I
just ran "make SHARED=yes CFLAGS="-fPIC -O2 -flto" lib/libpci.so.3.1.7" and
then linked the SO a second time with -Wl,-flto (as if it was in the LDFLAGS)
and attached a tarball with the result. You can compare the two (renamed)
shared objects, built from the same object files and version script.
I'll try to construct a minimal (single file, single symbol) test case.