Recent

Author Topic: [Solved] .so library for Android ARM (TEXTREL)  (Read 4249 times)

turrican

  • Full Member
  • ***
  • Posts: 140
  • Pascal is my life.
    • Homepage
[Solved] .so library for Android ARM (TEXTREL)
« on: June 13, 2017, 12:46:57 pm »
Hi,

I'm using FPC 3.1.1 for ARM to compile a library. I can compile library and run on an Android device without problems.
But compiled library compiles with Text Realocation References.

This realocations can be found @ 0x00000016 (TexRel) with binutils readelf -a

Android N and O are incompatible with Text Realocation libraries. How can avoid Text Realocation? There is a switch on the compiler to avoid this?

Thanks


 
« Last Edit: June 16, 2017, 10:37:52 am by turrican »

hnb

  • Sr. Member
  • ****
  • Posts: 270
Re: .so library for Android ARM (TEXTREL)
« Reply #1 on: June 13, 2017, 01:00:39 pm »
Did you try trunk r36292 or never (see https://bugs.freepascal.org/view.php?id=31764)?
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

turrican

  • Full Member
  • ***
  • Posts: 140
  • Pascal is my life.
    • Homepage
Re: .so library for Android ARM (TEXTREL)
« Reply #2 on: June 13, 2017, 01:11:28 pm »
Thanks for your Quick Response!

What about newpascalgit FPC version? Has the last changes?

turrican

  • Full Member
  • ***
  • Posts: 140
  • Pascal is my life.
    • Homepage
Re: .so library for Android ARM (TEXTREL)
« Reply #3 on: June 13, 2017, 01:44:52 pm »
Also tried to pass -Cg swith (Generate PIC code) without success.

turrican

  • Full Member
  • ***
  • Posts: 140
  • Pascal is my life.
    • Homepage
Re: .so library for Android ARM (TEXTREL)
« Reply #4 on: June 14, 2017, 01:13:53 pm »
Did you try trunk r36292 or never (see https://bugs.freepascal.org/view.php?id=31764)?

Thanks thanks thanks!!

I'm not using last trunk pascal compiler at all.

There is solved!

Final elf headers doesn't show TEXTREL references!!!

Thanks very much! Newpascal is great!

 

TinyPortal © 2005-2018