[fpc-devel] About building JNI library for arm-linux
Gennady Agranov
gennadyagranov at gmail.com
Mon Oct 31 21:01:04 CET 2016
Hi,
I have an issue with loading JNI library for Raspberry :(
I do compile with -Cg -WX and stack checking on (and also without).
But even this method is not called :(
function JNI_OnLoad(vm: PJavaVM; reserved: pointer): jint; {$ifdef
linux}cdecl{$else}stdcall{$endif};
begin
writeln('lll');
exit(0);
end;
Any suggestions?
Thanks,
Gennady
Java HotSpot(TM) Client VM warning: You have loaded library
/media/pi/Transcend/cypress-release/pas2jni_policing64/policing64/policing.so
which might have disabled stack guard. The VM will try to fix the stack
guard now.
It's highly recommended that you fix the library with 'execstack -c
<libfile>', or link it with '-z noexecstack'.
[FORMS.PP] ExceptionOccurred
Sender=EStackOverflow
Exception=Stack overflow
Stack trace:
$62E6CF48 fpc_stackcheck, line 832 of
/home/pi/development/fpc/rtl/inc/system.inc
TApplication.HandleException Stack overflow
Stack trace:
$62E6CF48 fpc_stackcheck, line 832 of
/home/pi/development/fpc/rtl/inc/system.inc
Exception at 62E6CF48: EStackOverflow:
Stack overflow.
More information about the fpc-devel
mailing list