如何解决make时报错crti. o: unrecognized relocation (0x2a) in section `.init
这个问题困扰了我好长时间,网上查了好长时间,这个问题的解决方法,就是将binultils升级到2.26。
造成这个问题的原因是gcc和binultils版本不匹配,gcc对应的版本较高,gcc编译后,ld(由binultils决定)进行链接,结果由于binultils版本较低,
无法识别。
解决方法:
1.从https://pkgs.org/download/binutils-2.26下载对应的版本,
wget 下载网址
2.安转
sudo dpkg -i 对应的deb包
3.修改PATH环境变量
export PATH="/usr/lib/binutils-2.26/bin:"$(PATH)
转载于:https://www.cnblogs.com/JsonZhangAA/p/10512753.html
如何解决make时报错crti. o: unrecognized relocation (0x2a) in section `.init相关推荐
- 解决unrecognized relocation (0x2a) in section `.text`
解决unrecognized relocation (0x2a) in section .text 问题: /usr/bin/ld: -/deps/zw/lib/libdmsdk.a(http.o): ...
- unrecognized relocation (0x2a) in section `.text`
问题 今天使用的一个库更新了,升级新的版本之后,在服务器上编译linux-x86-64版本的时候会出现错误: /usr/bin/ld: libsdk.a(Imagexxx.cpp.o): unreco ...
- go unrecognized relocation (0x2a) in section `.text‘问题
问题现象 [root@localhost main]# go run -race mrsequential.go wc.so pg*.txt # command-line-arguments /roo ...
- 解决上传图片时报错Uncaught (in promise) DOMException: Failed to execute ‘put‘ on ‘IDBObjectStore‘
最近项目中遇到一个小问题,系统在前端页面上传图片时,后台报400错误:Uncaught (in promise) DOMException: Failed to execute 'put' on 'I ...
- 解决pod时报错“Authentication token is invalid or unverified. Either verify it with the email that…”问题
执行pod trunk push时报了下面这个错误: [!] Authentication token is invalid or unverified. Either verify it with ...
- FastDfs上传图片时报错configparser.NoOptionError: No option ‘connect_timeout‘ in section: ‘__config__‘
这个问题有两个原因: ①fastdfs没安装好. ②/etc/fdfs/下面的配置文件都是默认的.sample文件,这种情况下就会导致这种报错.
- CentOS7 service network start命令启动时报错解决方法
service network start命令启动时报错: [root@localhost network-scripts]# service network start Starting netwo ...
- pip安装kolla-ansible时报错Cannot install ‘PyYAML‘的解决方法
pip安装kolla-ansible时报错Cannot install 'PyYAML'的解决方法 参考文章: (1)pip安装kolla-ansible时报错Cannot install 'PyYA ...
- 解决ThinkPHP关闭调试模式时报错的问题汇总
解决ThinkPHP关闭调试模式时报错的问题汇总 参考文章: (1)解决ThinkPHP关闭调试模式时报错的问题汇总 (2)https://www.cnblogs.com/ZDPPU/p/584881 ...
最新文章
- MultipartFile 使用 记录
- npm包开发测试与发布
- Python第三周 学习笔记(2)
- 数据结构与算法之美02
- C# 2.0 套接字编程实例初探
- 再获绿色等级5A称号!揭开腾讯数据中心节能环保黑科技
- Vant中List组件immediate-check=false无效
- AndroidStudio个人中心个人信息修改
- 无限磁力_给力的磁力搜索网站你都知道吗?
- 解决Glide 4.8.0 圆角与CenterCrop 的冲突问题
- java base64转图片打不开_解决通过 Base64 解码得到的图片无法打开查看的问题
- 使用计算机键盘的基本步骤,电脑如何用键盘开机_台式电脑键盘开机方法-win7之家...
- [hdu5285]wyh2000 and pupil
- C语言删除字符串中的单词
- STM32学习笔记——OLED的使用
- 学习BLE蓝牙一个月总结
- 论文阅读:SuMa++
- 【STC单片机学习】第十一课:蜂鸣器
- 最新QQ防洪跳转网站源码 带后台 可用版本
- 数字音频技术:混音器