Ares
Ares

Reputation: 1461

Dragonboard 8094 | Android L | application fails PIE check

I have a Dragonboard 8094 (Snapdragon 810) that came with Android L pre-loaded.

I'm trying to run the calculator sample application that came with the Hexagon SDK v1.2.2, however it seems to be slightly out-dated.

Android L introduced some new security measures, including a PIE (Position-independent executables) check for all binaries. When I try to run the calculator binary on the dragonboard I get the following error:

error: only position independent executables (PIE) are supported.

I can't rebuild Android to disable the PIE check because the source code from Intrystic will not able available until the end of February.

Is there a way to modify the makefile of the calculator example to build a position-independent executable.

Is there anything else that I can do?

Thank you

Upvotes: 0

Views: 215

Answers (1)

Lex Hsieh
Lex Hsieh

Reputation: 1

Add these lines in Android.mk and recompile the sample application may solve your problem.

LOCAL_CFLAGS += -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE

Upvotes: 0

Related Questions