Request for review- RFE 8005716
Alan Bateman
Alan.Bateman at oracle.com
Wed Mar 6 13:14:19 UTC 2013
On 06/03/2013 04:13, BILL PITTORE wrote:
> On 3/5/2013 7:36 PM, Dean Long wrote:
>> If JNI_ONLOAD_SYMBOLS contains something like "_JNI_OnLoad at 8" on
>> Windows, you can't just
>> turn that into "_JNI_OnLoad at 8_" + <libname>. I think it needs to be
>> "_JNI_OnLoad_" + <libname> + "@8"
> I'll look into that. When I built for windows and ran our test, the
> JNI_OnLoad_TestStaticLib was exported without the decoration just
> based on the JNIEXPORT JNICALL specifiers on the function. I didn't do
> anything special to export it. But I recall this problem from another
> project.
> 1 0 00001014 JNI_OnLoad_TestStaticLib =
> @ILT+15(?JNI_OnLoad_TestStaticLib@@YGHPAUJavaVM_@@PAX at Z)
Dean makes a good point, the @8 need be at the end to match the
decoration scheme. Also I think it's 32-bit only although it should just
not be found on 64-bit so it will skip on JNI_OnLoad_L.
-Alan.
More information about the core-libs-dev
mailing list