mylib.so 有文本重定位.这会浪费内存并且存在安全风险.请修复
我的 Android 应用程序(使用本机库)在 Android 4.4 上打印此警告:
My Android application (using native library) print this warning on Android 4.4 :
链接器 mylib.so 具有文本重定位.这会浪费内存并且存在安全风险.请修复.
linker mylib.so has text relocations. This is wasting memory and is a security risk. Please fix.
您知道它是什么以及如何修复它吗?谢谢,
Have you got an idea of what it is and how to fix it ? Thanks,
这似乎是 https://code.google.com/p/android/issues/detail?id=23203
并声明自 ndk-r8c 起已修复.
and stated there to have been fixed as of ndk-r8c.
似乎最近才添加了对存在问题的库的检查.
It would appear that the check for libraries with the issue has been added only recently.
注意:请不要编辑此帖子以隐藏链接 URL.它是明确的,因为目的地决定了它的权威性.
Note: please do not edit this post to hide the link URL. It is explicit because the destination is what makes it authoritative.
进一步说明 更改 NDK 版本只是在警告是由您的应用程序代码引起的情况下的修复.如果警告出现在 libdvm 等系统组件上,则无效 - 只能通过系统更新来修复.
Further Note Changing NDK versions is only a fix when the warning is due to the code of your application. It will have no effect if the warning is instead on a system component such as libdvm - that can only be fixed by a system update.