illegal text-relocation错误解决
来源:互联网 发布:java redis作用 编辑:程序博客网 时间:2024/06/10 07:12
出现下列类似问题
设置Build Settting ->Other linker flag 为 -read_only_relocs suppress
当然,这只能强制忽略错误,错误还是在的
有兴趣的可以查下other linker flags 的各种命令含义,
-read_only_relocs suppress 意思就是relocs(重定位) suppress(压制) ,不显示重定位错误
如果需要解决,那么armv7上32位的编译问题,上述的other linker就不要改了!!!!,使用下面
尝试修改xcode中的Generate Position-Dependent Code项
如果不能解决问题,修改Build Settings中的Strip style
将其置为Non-Global Symbols 。
如果不行的话多试下,All symbols是工程默认,动态库默认为DeBugging Symbols,意思是symbols需要加载以使用Debug模式下的各种错误日志信息,以及定位信息
官方文档中对Strip Style的描述:
Defines the level of symbol stripping to be performed on the linked product of the build. The default value is defined by the target’s product type. [STRIP_STYLE]
All Symbols - Completely strips the binary, removing the symbol table and relocation information. [all, -s]
Non-Global Symbols - Strips non-global symbols, but saves external symbols. [non-global, -x]
Debugging Symbols - Strips debugging symbols, but saves local and global symbols. [debugging, -S]
- illegal text-relocation错误解决
- illegal text-relocation
- 解决illegal attempt to错误问题
- arm平台编译动态库报 relocation R_ARM_MOVW_ABS_NC 错误解决
- 解决firebug报“illegal character"错误的问题
- openwrt 编译node.js功能(解决Illegal instruction错误)
- HEW3工程链接错误(L2330 (E) Relocation size overflow )及解决
- HEW3工程链接错误(L2330 (E) Relocation size overflow )及解决
- 解决pyv8的sublime text 错误。
- illegal instruction错误
- illegal character: '\ufeff' 错误
- Relocation
- 对"converting to execution character set illegal sequence"错误的解决
- 'FILE' : illegal use of this type as an expression编译错误的解决
- 关于mysql错误:Illegal mix of collations for operation '='的解决
- 关于mysql错误:Illegal mix of collations for operation '='的解决
- 解决illegal to have multiple occurrences of contentType with different values错误
- 腾讯开放平台——client id is illegal(100008)!错误解决
- java网络编程之TFTP(二)
- putty 中文乱码解决方法
- Android开发之浅谈OOM
- Spark之Scala学习之路(一)
- c函数实现将一个整数转为任意进制的字符串输出
- illegal text-relocation错误解决
- jdk源码分析红黑树——插入篇
- Hadoop是什么
- 使用NGUI在两点之间作线
- 【web】获取文件类型
- 杭电HDOJ1012 u Calculate e
- android studio 构建项目一直卡在gradle build running
- ASP Literal控件 分页
- NIO Socket实现非阻塞通信示例