[fpc-devel] FPC app crash with "has text relocations" / android 6.0

크레딕스 최원식 simonsayz at naver.com
Wed Sep 9 02:04:26 CEST 2015


Sorry for the Question.

FPC (svn 31577 )
maybe , I think It's same situation using older version.

AndroidManifest.xml
<uses-sdk android:minSdkVersion       = "10"  
	         android:targetSdkVersion    = "23" />

Until targetSdkVersion <= 22 , Application can run with warning.
But when targetSdkVersion = "23" (Android 6.0) , App can't run , 
Crashed with following message

-------------------------------------------------------------------------------------------------
Fatal Exception
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/app.test/lib/arm/libfpc.so: has text relocations
-------------------------------------------------------------------------------------------------

Only I found the article 

"At first sight, the RTL startup code contains non-PIC assembly (rtl/ android/arm/prt0.as and rtl/android/arm/dllprt0.as) Jonas" 
http://lists.freepascal.org/fpc-devel/2014-October/034526.html


Can I fix the problem (or fix with tricky method ?)

Thanks

Simon,Choi


More information about the fpc-devel mailing list