Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Android - support for API-9~13 devices #23456

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR23457
Status NEW
Importance P normal
Reported by Vince Harron (vince@nethacker.com)
Reported on 2015-05-08 15:02:43 -0700
Last modified on 2015-05-18 07:03:30 -0700
Version unspecified
Hardware PC other
CC tamas@hudson-trading.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

API 21+ requires executables be compiled with -fPIE

So we've enabled -fPIE on lldb-server

Unfortunately, support for PIE only was added to Android in API 14+

We can probably create a trampoline application without PIE that loads the real lldb-server with dlopen and calls main

Quuxplusone commented 9 years ago

Other option for solving this problem is to embedded lldb-server into it's own apk (with one ABI per apk) and then the zygote will behave like a trampoline.