This is an archive of the discontinued LLVM Phabricator instance.

Search for loaded modules recursively in all system library sub-directories on Android
AbandonedPublic

Authored by ovyalov on Mar 13 2015, 5:51 PM.

Details

Reviewers
tberghammer
Summary

Search for loaded modules recursively in all system lib sub-directories on Android.
Android native application may load modules from such directories: /system/lib, /system/lib/egl (libEGL_emulation.so,..), /system/lib/hw (gralloc.goldfish.so).

Diff Detail

Event Timeline

ovyalov updated this revision to Diff 21977.Mar 13 2015, 5:51 PM
ovyalov retitled this revision from to Search for loaded modules recursively in all system library sub-directories on Android.
ovyalov updated this object.
ovyalov edited the test plan for this revision. (Show Details)
ovyalov added a reviewer: tberghammer.
ovyalov added a subscriber: Unknown Object (MLST).
labath added a subscriber: labath.Mar 14 2015, 8:23 AM

How does the dynamic linker find the shared libraries to load? Does it also
perform this recursive directory search? Seems like an odd design choice...

How does the dynamic linker find the shared libraries to load? Does it also
perform this recursive directory search?

Number of subdirectories is pretty small and I believe it's acceptable strategy to traverse all child directories in order to find a match - if new library subdirectories will be added in future such logic will still work without need to change.

Seems like an odd design choice...

What approach would you suggest here?

tberghammer edited edge metadata.Mar 23 2015, 1:27 PM

Please abandon it as D8547 will fix this issue

ovyalov abandoned this revision.Mar 23 2015, 1:40 PM