Android – how to load shared library?

柔情痞子 提交于 2019-12-05 03:30:58

The Bionic linker-loader (android/bionic/linker/linker.c in the AOSP source, if you want to check) seems to completely ignore RPATH in the ELF. It only considers LD_LIBRARY_PATH and a hardcoded array of "/vendor/lib" and "/system/lib".

This is based on a cursory scan of the code on the Ice Cream Sandwich tree I have checked out.

This would explain the behavior you are seeing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!