This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52405] undefined references in shared library when linking the shared library with -flto
- From: "doko at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Feb 2012 13:35:17 +0000
- Subject: [Bug lto/52405] undefined references in shared library when linking the shared library with -flto
- Auto-submitted: auto-generated
- References: <bug-52405-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52405
Matthias Klose <doko at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #2 from Matthias Klose <doko at gcc dot gnu.org> 2012-02-28 13:35:17 UTC ---
binutils from the 2.22 release branch is used.
yes, using the linker plugin.
options to build the shared library (see build.sh)
-m64 -fpic -fno-rtti -fno-exceptions -fcheck-new -fvisibility=hidden -m64 -flto
-flto-partition=none -g -O3 -fno-strict-aliasing -fno-omit-frame-pointer
-Xlinker -O1 -Wl,-Bsymbolic-functions -Xlinker -z -Xlinker noexecstack
-shared -Xlinker --version-script=mapfile_reorder -Xlinker -soname=libjvm.so -o
libjvm.so
reducing these to
-m64 -fpic -fno-rtti -fno-exceptions -fcheck-new -fvisibility=hidden -flto
-flto-partition=none -g -O3 -fno-strict-aliasing -fno-omit-frame-pointer
-Wl,-Bsymbolic-functions -Xlinker -z -shared -Xlinker -soname=libjvm.so -o
libjvm.so
doesn't change things.
-fno-use-linker-plugin doesn't change things.
-flto-partition=none doesn't change things.