mylib.so 有文本重定位.这会浪费内存并且存在安全风险.请修复 [英] mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

查看:29
本文介绍了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.

这篇关于mylib.so 有文本重定位.这会浪费内存并且存在安全风险.请修复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆