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

2015-09-09 Thread 크레딕스 최원식
MoreTesting

-TestEnv.
FPC3.1.1(svn31577)

Case1.JavaLoadingSharedLib(JNI)
untiltargetSdkVersion=22->OK,
whentargetSdkVersion=23->Crash

Case2.JavaLoadingCSharedObj(JNI)
andCSharedLibloadingPascalLibbydlOpen

untiltargetSdkVersion=22->OK,
whentargetSdkVersion=23->Crash(UntilCSharedLibOK,But,dlOpentoPascalObj->Crash)

-OtherUsefullLink(?)
http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html

-InMyTestResult
Android6.0can'tloadingsofilewhensofilehastextrelocations

(Dynamicsectionatoffset0x42f424contains32entries:
TagTypeName/Value
0x0016(TEXTREL)0x0

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

2015-09-09 Thread Michael Van Canneyt


Hello,

Can you please send your mails as plain text ? 
The below is totally unreadable in my text-based mail client :(


Michael.

On Thu, 10 Sep 2015, 크레딕스 최원식 wrote:


MoreTesting

-TestEnv.
FPC3.1.1(svn31577)

Case1.JavaLoadingSharedLib(JNI)
untiltargetSdkVersion=22->OK,
whentargetSdkVersion=23->Crash

Case2.JavaLoadingCSharedObj(JNI)
andCSharedLibloadingPascalLibbydlOpen

untiltargetSdkVersion=22->OK,
whentargetSdkVersion=23->Crash(UntilCSharedLibOK,But,dlOpentoPascalObj->Crash)

-OtherUsefullLink(?)
http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html

-InMyTestResult
Android6.0can'tloadingsofilewhensofilehastextrelocations

(Dynamicsectionatoffset0x42f424contains32entries:
TagTypeName/Value
0x0016(TEXTREL)0x0

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

2015-09-09 Thread Yury Sidorov

Hello,

It seems Android 6.0 forces usage of PIC-enabled shared libraries only.
Currently the Android FPC target is not PIC compatible, since the 
startup assembler code is needed to be converted to PIC.


You need to use targetSdkVersion <= 22 until PIC is fixed for the 
Android target.


Yury Sidorov.

On 9/9/2015 10:43 PM, Dmitry Boyarintsev wrote:

On Wed, Sep 9, 2015 at 3:40 PM, Maciej Izak > wrote:

still unreadable ... :(

 needs to be replaced with the space, obviously
2015-09-09 18:35 GMT+02:00 크레딕스 최원식 >:

Oh Sorry

More Testing

- Test Env.
  FPC 3.1.1 (svn 31577)

  Case 1. Java Loading  Shared Lib  (JNI)
  until targetSdkVersion = 22 -> OK,
  when targetSdkVersion = 23 -> Crash

  Case 2. Java Loading C Shared Obj (JNI)
  and  C Shared Lib loading Pascal Lib by dlOpen

  2.1  targetSdkVersion <= 22
   All Works

  2.2. targetSDKVersion = 23
   - Java Load C Library
   - C Library Loading Pascal Library ( dlOpen / Fail )

- Other Helpful Link
http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html


- In My Result
 Android 6.0 can't loading so file when so file has text relocations

 // Dynamic section at offset 0x42f424 contains 32 entries:
 //   TagTypeName/Value
 //  0x0016 (TEXTREL) 0x0// If TEXTREL exists
then Crash


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


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

2015-09-09 Thread 크레딕스 최원식
OhSorry


MoreTesting

-TestEnv.
FPC3.1.1(svn31577)

Case1.JavaLoadingSharedLib(JNI)
untiltargetSdkVersion=22->OK,
whentargetSdkVersion=23->Crash

Case2.JavaLoadingCSharedObj(JNI)
andCSharedLibloadingPascalLibbydlOpen

2.1targetSdkVersion<=22
AllWorks

2.2.targetSDKVersion=23
-JavaLoadCLibrary
-CLibraryLoadingPascalLibrary(dlOpen/Fail)

-OtherHelpfulLink
http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html


-InMyResult
Android6.0can'tloadingsofilewhensofilehastextrelocations

//Dynamicsectionatoffset0x42f424contains32entries:
//TagTypeName/Value
//0x0016(TEXTREL)0x0//IfTEXTRELexiststhenCrash

Iwanttobelievethatmytestingresultiswrong,
butIfandroidapp'spolicywillbechanged,
It'sbigproblem.orjustMymistake?

CanIfixtheprobleminmanual(orfixwithtrickymethodfortemporary?)


BestRegards
Simon,Choi___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


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

2015-09-09 Thread Maciej Izak
2015-09-09 18:35 GMT+02:00 크레딕스 최원식 :

> OhSorry
>
> MoreTesting
>
> -TestEnv.
> FPC3.1.1(svn31577)
>
>
> Case1.JavaLoadingSharedLib(JNI)
>

still unreadable ... :(

-- 
Best regards,
Maciej Izak
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


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

2015-09-09 Thread Dmitry Boyarintsev
On Wed, Sep 9, 2015 at 3:40 PM, Maciej Izak  wrote:

> still unreadable ... :(
>
>  needs to be replaced with the space, obviously
2015-09-09 18:35 GMT+02:00 크레딕스 최원식 :

Oh Sorry

More Testing

- Test Env.
 FPC 3.1.1 (svn 31577)

 Case 1. Java Loading  Shared Lib  (JNI)
 until targetSdkVersion = 22 -> OK,
 when targetSdkVersion = 23 -> Crash

 Case 2. Java Loading C Shared Obj (JNI)
 and  C Shared Lib loading Pascal Lib by dlOpen

 2.1  targetSdkVersion <= 22
  All Works

 2.2. targetSDKVersion = 23
  - Java Load C Library
  - C Library Loading Pascal Library ( dlOpen / Fail )

- Other Helpful Link

http://slowbutdeadly.blogspot.kr/2015/09/javalangunsatisfiedlinkerror-dlopen.html


- In My Result
Android 6.0 can't loading so file when so file has text relocations

// Dynamic section at offset 0x42f424 contains 32 entries:
//   TagTypeName/Value
//  0x0016 (TEXTREL) 0x0// If TEXTREL exists then
Crash
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel