免费注册 查看新帖 |

Chinaunix

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

求教relocation truncated to fit: R_MIPS_26 against错误解决方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-02-19 17:56 |只看该作者 |倒序浏览
参考8250.c写了个rt5350的串口驱动程序,编译时各种错误如下:


arch/mips/rt2880/built-in.o: In function `prom_init_serial_port': undefined reference to `early_serial_setup'
arch/mips/rt2880/built-in.o: In function `prom_init_serial_port': relocation truncated to fit: R_MIPS_26 against `early_serial_setup'
arch/mips/rt2880/built-in.o: In function `prom_init_serial_port': undefined reference to `early_serial_setup'
arch/mips/rt2880/built-in.o: In function `prom_init_serial_port': relocation truncated to fit: R_MIPS_26 against `early_serial_setup'
drivers/built-in.o: In function `serial5350_uart_tx_chars':5350_uart.c.text+0xea3: undefined reference to `uart_write_wakeup'
:5350_uart.c.text+0xea3: relocation truncated to fit: R_MIPS_26 against `uart_write_wakeup'
drivers/built-in.o: In function `serial5350_uart_set_termios':5350_uart.c.text+0xee64): undefined reference to `uart_get_baud_rate'
:5350_uart.c.text+0xee64): relocation truncated to fit: R_MIPS_26 against `uart_get_baud_rate'
:5350_uart.c.text+0xee80): undefined reference to `uart_update_timeout'
:5350_uart.c.text+0xee80): relocation truncated to fit: R_MIPS_26 against `uart_update_timeout'
drivers/built-in.o: In function `serial5350_uart_suspend':5350_uart.c.text+0xf1b: undefined reference to `uart_suspend_port'
:5350_uart.c.text+0xf1b: relocation truncated to fit: R_MIPS_26 against `uart_suspend_port'
drivers/built-in.o: In function `serial5350_uart_resume':5350_uart.c.text+0xf1e4): undefined reference to `uart_resume_port'
:5350_uart.c.text+0xf1e4): relocation truncated to fit: R_MIPS_26 against `uart_resume_port'
drivers/built-in.o: In function `serial5350_uart_probe':5350_uart.c:(.init.text+0x9e: undefined reference to `uart_add_one_port'
:5350_uart.c:(.init.text+0x9e: relocation truncated to fit: R_MIPS_26 against `uart_add_one_port'
drivers/built-in.o: In function `serial5350_init_module':5350_uart.c:(.init.text+0xa3: undefined reference to `uart_register_driver'
:5350_uart.c:(.init.text+0xa3: relocation truncated to fit: R_MIPS_26 against `uart_register_driver'
:5350_uart.c:(.init.text+0xacc): undefined reference to `uart_unregister_driver'
:5350_uart.c:(.init.text+0xacc): relocation truncated to fit: R_MIPS_26 against `uart_unregister_driver'
drivers/built-in.o: In function `serial5350_exit_module':5350_uart.c:(.exit.text+0xd0): undefined reference to `uart_unregister_driver'
:5350_uart.c:(.exit.text+0xd0): additional relocation overflows omitted from the output
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory `/home/sdk/RT288x_SDK/source/linux-2.6.21.x'
make: *** [linux] Error 1


百度了一下午也没啥头绪,不知是程序本身的问题还是内核配置不对,请各位大侠指教,非常感谢!!

论坛徽章:
0
2 [报告]
发表于 2014-02-20 08:59 |只看该作者
555 肿么木人理我
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP