[PATCH] Hide boehm-gc/libffi/fdlibm etc. symbols in libgcj.so.*
Andrew Haley
aph@redhat.com
Mon Jan 29 17:45:00 GMT 2007
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.
More information about the Java-patches
mailing list