yousuozi 发表于 2014-02-19 17:56

求教relocation truncated to fit: R_MIPS_26 against错误解决方法

参考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+0xea38): undefined reference to `uart_write_wakeup'
:5350_uart.c:(.text+0xea38): 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+0xf1b8): undefined reference to `uart_suspend_port'
:5350_uart.c:(.text+0xf1b8): 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+0x9e8): undefined reference to `uart_add_one_port'
:5350_uart.c:(.init.text+0x9e8): 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+0xa38): undefined reference to `uart_register_driver'
:5350_uart.c:(.init.text+0xa38): 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: *** Error 1
make: Leaving directory `/home/sdk/RT288x_SDK/source/linux-2.6.21.x'
make: *** Error 1


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

yousuozi 发表于 2014-02-20 08:59

555 肿么木人理我:cry:
页: [1]
查看完整版本: 求教relocation truncated to fit: R_MIPS_26 against错误解决方法