libxx.so has text relocations. This is wasting memory and prevents security hardening. Please fix
2016-04-06 13:24
811 查看
Root cause:
using the scanelf to scan the library, you can find the fllowing issue:
#scanelf -R . -qt
TEXTREL ./libxx.so
before the Android M(6.0), it is only one warning, while on Android N, it will cause the dlopen return failed.
1. first you should add the compile arg: -fPIC. (create the position independent code)
if it still have the TEXTREL section. you must tune your code, it s related with assembly code.
refer:
http://quabr.com/34691970/ffmpeg-for-android-neon-build-has-text-relocations
http://stackoverflow.com/questions/32346402/libavcodec-so-has-text-relocations
https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide
using the scanelf to scan the library, you can find the fllowing issue:
#scanelf -R . -qt
TEXTREL ./libxx.so
before the Android M(6.0), it is only one warning, while on Android N, it will cause the dlopen return failed.
1. first you should add the compile arg: -fPIC. (create the position independent code)
if it still have the TEXTREL section. you must tune your code, it s related with assembly code.
refer:
http://quabr.com/34691970/ffmpeg-for-android-neon-build-has-text-relocations
http://stackoverflow.com/questions/32346402/libavcodec-so-has-text-relocations
https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide
相关文章推荐
- Android禁止横竖屏切换或禁止横竖屏切换时重启Activity
- 史上最全WebView使用,附送Html5Activity一份
- h5-10 canvas 简易祖玛
- 移动端基于HTML模板和JSON数据的JavaScript交互
- 运算符
- iOS 开发证书显示 此证书签发者无效 解决办法
- iOS报错 - If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variabl
- 2016.4.6
- 使用ChannelFactory类实现动态调用WCF地址
- 待验证设想(1)
- Android报error -1073741819 libcocos2dxinternal.a
- 第二天整理的笔记
- 汽车 http://www.chinawebinar.com/lobbyPage.do?eventId=100210&utm_source=CW&utm_medium=CW_eDM_1027&utm_
- C语言学习-指针-3.24
- 设备\Device\Harddisk1\DR1 有一个不对的区块
- h5-9 canvas
- EGLImage in SurfaceFlinger
- LeetCode Container With Most Water
- 理解和正确使用Java中的断言(assert) - Leichelle的专栏 - 博客频道 - CSDN.NET http://blog.csdn.net/leichelle/article/deta
- C语言函数-笔记-2016-3-28