This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: Arguments to native functions (?) [a bit long]


>>>>> "Simon" == Simon Gornall <simon@unique-id.com> writes:

Simon> Anyway, if I call a native function with more than 3 arguments
Simon> I get a compile-time error saying the linker can't find the
Simon> native function.

I see this too.  (And, Andrew, using -fvtable-thunks doesn't help.)

Here is what I see when I run nm on your failing test (modified to
have 4 arguments and not 5):

    creche. nm nTest.o | grep calltest
    00000000 T calltest__4testPQ34java4lang6StringiT1T1
    creche. nm test.o | grep calltest
    00000096 d _Utf7calltest
             U calltest__4testPQ34java4lang6StringiN21

To me it looks like there is some kind of bug in name mangling.

Tom

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