ageneau/ecl-android

Support for Android L

Closed this issue · 1 comments

Running the standalone binary ecl on Android L (emulator) causes an error:
error: only position independent executables (PIE) are supported.

This is due to the fact that Android L linker checks if PIE is enabled on the executable when it is loaded into the memory.

It would be great if you would implement the support of PIE for ECL on Android. I am using ecl on android to build Maxima on Android.

I have successfully compiled ECL on Android. At least on L emulator, it run.
I have modified absolutely NOTHING on the ecl-android end. Instead, I modified toolchain side. For gcc and ld included in Android NDK, I have wrapped both commands with shell scripts so that -fPIE / -pie are always added to the argument list.