When I try to run my .so file on Android 6 I got this message:
Loading Native Audio Library...
03-20 15:07:55.182 19446 19446 : Cannot Load Native Library !!!
03-20 15:07:55.182 19446 19446 : java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.myapp.android.sdk-1/lib/arm/myso.so: has text relocations
From the message I can understand that I have text relocations in my .so file. compile with -fPIC doesn't help since the text relocations are in assembly files that I use to optimize some calculations. How to know where exactly the text relocations are in the source code?