This is an archive of the discontinued LLVM Phabricator instance.

Fix "process load" on new android targets
AbandonedPublic

Authored by labath on Feb 28 2017, 7:11 AM.

Details

Summary

On older android targets, we needed a dlopen rename workaround to get
"process load" working. Since API 25 this is not required as the targets
have a proper libdl so with the function names one would expect.

To make this work I've had to remove the const qualifier from the
GetLibdlFunctionDeclarations function (as now the declarations can
depend on the connected target). Since I was already modifying the
prototype (and the lower levels were already converted to StringRef) I
took the oportunity to convert this function as well.

Event Timeline

labath created this revision.Feb 28 2017, 7:11 AM
labath abandoned this revision.Feb 28 2017, 7:50 AM

The sdk version I used here is incorrect. Shelve this until we can get the right version here.