免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10939 | 回复: 3
打印 上一主题 下一主题

relocation truncated to fit: R_MIPS_26 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-06 08:56 |只看该作者 |倒序浏览
各位大神能够帮帮忙吗,小弟已经在网上找了很久都没有找到答案, relocation truncated to fit: R_MIPS_26是编译之后链接的错误,哪位大哥有解决方案,能不能解释一下,谢谢了

论坛徽章:
0
2 [报告]
发表于 2012-04-06 09:19 |只看该作者
R_MIPS_26指的是这条指令类型是jump相关的,指令跳转范围有26bit宽度,似乎说是某个函数跳转的地址范围超过了26bit宽度,原先我也遇到过这个问题,当时是我的程序需要link一个library,而这个library并不是用我当前的cross-compile编译过的,所以就出了这个问题,能否贴出more detail log?

论坛徽章:
0
3 [报告]
发表于 2012-04-06 09:59 |只看该作者
谢谢啊,下面是更详细的信息:
../../lib/ar/lr33k.a(memtest.o): In function `__ramtest':
memtest.c.text+0x11c: undefined reference to `K9print'
memtest.c.text+0x11c: relocation truncated to fit: R_MIPS_26 against `K9print'
memtest.c.text+0x11d: undefined reference to `K9print'
memtest.c.text+0x11d: relocation truncated to fit: R_MIPS_26 against `K9print'
memtest.c.text+0x11e: undefined reference to `K9print'
memtest.c.text+0x11e: relocation truncated to fit: R_MIPS_26 against `K9print'
../../lib/ar/localc.a(isrprint.o): In function `pdebug':
isrprint.c.text+0x2: undefined reference to `dbg_ip'
isrprint.c.text+0x30): undefined reference to `dbg_ip'
isrprint.c.text+0xb4): undefined reference to `outs'
isrprint.c.text+0xb4): relocation truncated to fit: R_MIPS_26 against `outs'
isrprint.c:(.text+0xc0): undefined reference to `telnet_out'
isrprint.c:(.text+0xc0): relocation truncated to fit: R_MIPS_26 against `telnet_out'
../../lib/ar/localc.a(isrprint.o): In function `cvmx_warn':
isrprint.c:(.text+0x160): undefined reference to `outs'
isrprint.c:(.text+0x160): relocation truncated to fit: R_MIPS_26 against `outs'
isrprint.c:(.text+0x16c): undefined reference to `telnet_out'
isrprint.c:(.text+0x16c): relocation truncated to fit: R_MIPS_26 against `telnet_out'
../../lib/ar/localc.a(isrprint.o): In function `printf':
isrprint.c:(.text+0x20: undefined reference to `outs'
isrprint.c:(.text+0x20: relocation truncated to fit: R_MIPS_26 against `outs'
isrprint.c:(.text+0x214): undefined reference to `telnet_out'
isrprint.c:(.text+0x214): relocation truncated to fit: R_MIPS_26 against `telnet_out'
../../lib/ar/localc.a(isrprint.o): In function `jsrprint':
isrprint.c:(.text+0x2b0): undefined reference to `outs'
isrprint.c:(.text+0x2b0): relocation truncated to fit: R_MIPS_26 against `outs'
isrprint.c:(.text+0x2bc): undefined reference to `telnet_out'
isrprint.c:(.text+0x2bc): relocation truncated to fit: R_MIPS_26 against `telnet_out'

   

论坛徽章:
0
4 [报告]
发表于 2014-06-10 14:26 |只看该作者
刚刚遇到这个问题,还有下文么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP