[Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector
aph at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 9 17:25:00 GMT 2006
------- Comment #20 from aph at gcc dot gnu dot org 2006-01-09 17:25 -------
This breaks java on s390.
# LD_PRELOAD=/usr/lib/jvm/java-gcj/jre/lib/s390/pr13212.so /bin/echo
/bin/echo: symbol lookup error: /usr/lib/libgcj.so.7: undefined symbol:
__data_start
This is because pr13212.so requires libgcj.so.7, and libgcj.so.7 requires
__data_start to be provided by the executable. /bin/echo does not define
__data_start.
This fixes things on s390:
extern int __data_start __attribute__((weak));
int __data_start;
but it doesn't seem like a good idea in general. This LD_PRELOAD hack seems to
make every child of /usr/bin/java load libgcj.so.7 and so potentially breaks
all manner of things.
--
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212
More information about the Java-prs
mailing list