Sign in Join

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

Mailing lists / fpc-devel / 2014-10

Android "Text Relocations"

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Den

Hiya!

I'm working on an Cross Platform Project, and when compiling to Android-ARM and getting it onto the Android Device, in ADB Logcat it shows library has "Text Relocations", and that I should get rid of them and it's a security risk.. AFAIK I don't have any units that are compiled with PIC.. May I ask how to remove these text Relocations, and possibly a bit more information about them and why they're being included without PIC?

Thank you!

- Dennis

Reply by email

Jonas Maebe
to Den
Den wrote 5 lines
I'm working on an Cross Platform Project, and when compiling to Android-ARM and getting it onto the Android Device, in ADB Logcat it shows library has "Text Relocations", and that I should get rid of them and it's a security risk.. AFAIK I don't have any units that are compiled with PIC..

I guess you mean "without PIC"?

May I ask how to remove these text Relocations, and possibly a bit more information about them and why they're being included without PIC?

At first sight, the RTL startup code contains non-PIC assembly (rtl/ android/arm/prt0.as and rtl/android/arm/dllprt0.as)

Jonas

Reply by email

Den
to Jonas Maebe

Hi Jonas,

I guess you mean "without PIC"?

Yep, I did mean without PIC, my apologies (we're trying to get RID of relocations! I had written the email in a hurry).

At first sight, the RTL startup code contains non-PIC assembly (rtl/android/arm/prt0.as and rtl/android/arm/dllprt0.as)

Thanks for the heads up, should've thought to look there. :p

- Dennis Fehr

Reply by email