relocations专题

关于 targetSdkVersion=23 底层动态库报错: has text relocations

从 API 23 开始,共享对象将不得包含文本重定位。也就是说,代码必须按原样加载,不得对其进行修改。 问题就是:当android studio的targetSdkVersion = 23时,之前能用的动态库在代用的时候会报错,错误信息包含has text relocations .... 官方给出的解决方案:wiki.gentoo.org/wiki/Hardened/Textrels_Gui

Relocations for this machine are not implemented,IDA版本过低导致生成汇编代码失败

目录 1、问题描述 2、安卓app发生崩溃,需要查看汇编代码上下文去辅助分析 3、使用IDA打开.so动态库文件,提示Relocations for this machine are not implemented 4、IDA版本较老,不支持ARM64的指令集,使用7.0版本就可以了 5、找到崩溃的那条汇编指令在目标函数中的位置 6、通过阅读汇编代码上下文,找到崩溃的那条汇编指令对应的