Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2016-11

About building JNI library for arm-linux

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gennady Agranov
>> 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?

Thanks!

Reply by email

Yury Sidorov
to Gennady Agranov
Gennady Agranov wrote 19 lines
>>> 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.

Reply by email