[fpc-devel] About building JNI library for arm-linux
Yury Sidorov
jura at cp-lab.com
Tue Nov 1 11:27:22 CET 2016
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.
More information about the fpc-devel
mailing list