This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Build shared libraries with -Bsymbolic-functions
H. J. Lu writes:
> On Thu, Jan 11, 2007 at 07:33:21PM +0100, Paolo Bonzini wrote:
> >
> > >config/
> > >
> > >2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
> > >
> > > * ld-symbolic.m4: New.
> >
> > Please name the macro AC_LIB_PROG_LD_GNU_SYMBOLIC, or
> > ACX_PROG_LD_GNU_SYMBOLIC.
> >
> > >libgfortran/
> > >
> > >2007-01-10 H.J. Lu <hongjiu.lu@intel.com>
> > >
> > > * aclocal.m4: Include ../config/lib-ld.m4 and
> > > ../config/ld-symbolic.m4.
> >
> > Also, aclocal.m4 is automatically generated with "aclocal -I ../config"
> > except in libjava.
> >
> > > * configure.ac: Use PROG_LD_GNU_SYMBOLIC. Set
> > > libgcj_ld_symbolic to $SYMBOLIC_LDFLAGS if it isn't set.
> >
> > Please check if libgcj_ld_symbolic is now obsolete in
> > libjava/configure.host.
>
> libjava will use -Bsymbolic on Linux, which is more aggresive than
> -Bsymbol-functions.
libjava doesn't use -Bsymbolic for all of its libraries, just for
libgij, libjvm, and libawt. I'd use -Bsymbolic for libgcj as well,
but (because of copy relocs) we'd have to compile all gcj executables
-fpic.
I presume your patch doesn't change this behaviour.
Andrew.