This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Hide boehm-gc/libffi/fdlibm etc. symbols in libgcj.so.*
- From: Andrew Haley <aph at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 29 Jan 2007 17:45:26 +0000
- Subject: Re: [PATCH] Hide boehm-gc/libffi/fdlibm etc. symbols in libgcj.so.*
- References: <20070126192022.GV29911@devserv.devel.redhat.com>
Jakub Jelinek writes:
> libgcj.so.* ATM exports many symbols that really shouldn't be exported,
> which results in problems e.g. because some of the fdlibm math functions
> conflict override libm symbols for the whole application, etc.
> When ld supports anonymous version script this is easily solvable.
> Tested on x86_64-linux (and on redhat/gcc-4_1-branch I've been using this
> for several months already on 7 architectures).
>
> Ok for trunk?
>
> 2007-01-26 Jakub Jelinek <jakub@redhat.com>
>
> * configure.ac (libjava_cv_anon_version_script): New test.
> (ANONVERSCRIPT): New AM_CONDITIONAL.
> * configure: Rebuilt.
> * Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
> if ANONVERSCRIPT.
> * Makefile.in: Rebuilt.
> (libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
> * libgcj.ver: New file.
Yeah. If you've tested it well, this can go in.
Andrew.