This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: Bug: libjava + cross compiler (ARM) + Runtime.loadLibrary()


>>>>> "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


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