This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Bug: libjava + cross compiler (ARM) + Runtime.loadLibrary()
- From: Tom Tromey <tromey at redhat dot com>
- To: Bob Fischer <bob dot fischer17 at earthlink dot net>
- Cc: java-patches at gcc dot gnu dot org
- Date: 26 Feb 2004 18:15:04 -0700
- Subject: Re: Bug: libjava + cross compiler (ARM) + Runtime.loadLibrary()
- References: <1077681660.10398.0.camel@wolfgang.local>
- Reply-to: tromey at redhat dot com
>>>>> "Bob" == Bob Fischer <bob.fischer17@earthlink.net> writes:
Bob> Normally, GCC turns off libltdl support for cross compilers. However, I
Bob> needed this for JNI (used by java-gnome, which I compiled for the
Bob> ARM).
Nice!
Bob> Somewhere along the line, the
Bob> string (char *) containing the name of the library gets munged; this is
Bob> before any calls to ltdl are made.
Hmm.
Like you, I suspect a compiler bug. You'd probably need to derive a
smaller example for submission. Or you could look at the generated
assembly to see if something is out of whack.
If ARM has hardware watchpoints (I don't know), you could debug into
that function and then set a watchpoint on the buffer to find out
exactly where it changes. You could do this without software
watchpoint as well, it would just be slower.
Reducing the test case may not be easy, unfortunately. I can give you
a few pointers on things that you might have to include in the new
code if that would help.
Tom