On 11/1/2016 3:42 AM, Gennady Agranov wrote:
Why do you use LCL in your JNI library?
Try a simple library without LCL and check if it loads.

It works!

Great Thanks!

Does anyone know what to do about:

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'.

Should I run execstack?

Should I run every time I build a shared object - or there is a better way?

Just pass this option the linker using the following FPC switch:
-k"-z noexecstack"

Yury.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to