This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Weird GCJ/CNI Behaviour
On Tue, 2003-02-04 at 07:19, Weiqi Gao wrote:
> On Tue, 2003-02-04 at 04:42, Ranjit Mathew wrote:
> >
> > Does it happen on other platforms as well?
>
> It happens on Lunix (Red Hat 8.0/Athlon) too.
In the case where there is a link error, the symbols do not match:
[weiqi@gao ranjit]$ nm Foo.o | grep bar
U _ZN3Foo3barEP6JArrayIPN4java4lang6StringEEPN4java2io4FileE
[weiqi@gao ranjit]$ nm natFooImpl.o | grep bar
00000000 T _ZN3Foo3barEP6JArrayIPN4java4lang6StringEEPNS1_2io4FileE
In the case where there is no link error, the symbols do match:
[weiqi@gao ranjit]$ nm Foo.o | grep bar
U _ZN3Foo3barEPN4java2io4FileEP6JArrayIPNS0_4lang6StringEE
[weiqi@gao ranjit]$ nm natFooImpl.o | grep bar
00000000 T _ZN3Foo3barEPN4java2io4FileEP6JArrayIPNS0_4lang6StringEE
In both cases, the demangled symbols match.
--
Weiqi Gao
weiqigao@networkusa.net