This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
-findirect-dispatch and -Bsymbolic
- From: Andrew Haley <aph at redhat dot com>
- To: java at gcc dot gnu dot org, overholt at redhat dot com
- Date: Mon, 24 Jan 2005 17:30:52 +0000
- Subject: -findirect-dispatch and -Bsymbolic
It's come to my attention that people out there are trying to build
shared libraries using -findirect-dispatch but without using the
linker option -Bsymbolic.
This won't work.
I don't want to go into all the gory details, but you can look at the
"man ld" page to see what Bsymbolic does.
I really need to do some configury hacking to make this automatic, but
in the meantime, hear this:
If you are using "-findirect-dispatch" and "-shared" you MUST also add
"-Wl,-Bsymbolic" when you creat the shared object.
OK?
Andrew.