This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Hide boehm-gc/libffi/fdlibm etc. symbols in libgcj.so.*


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]