交叉编译问题relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0

119 views
Skip to first unread message

fly3q.com

unread,
Jul 18, 2010, 10:10:03 PM7/18/10
to china-li...@googlegroups.com



求助montavista交叉编译问题,代码编译都没有问题,但是在连接的时候release没有问题,但是链接debug的时候出现了如下的问题
/opt/montavista/pro/devkit/ppc/85xx/bin/../lib/gcc/powerpc-hardhat-linuxspe/3.4.1/../../../../powerpc-hardhat-linuxspe/bin/ld: skipping incompatible ./debug/libdb-4.2.a when searching for -ldb-4.2
/opt/montavista/pro/devkit/ppc/85xx/bin/../target/usr/lib/crt1.o(.text+0x20): In function `_start':
../sysdeps/powerpc/powerpc32/elf/start.S:48: relocation truncated to fit: R_PPC_REL24 __libc_start_main@@GLIBC_2.0
/opt/montavista/pro/devkit/ppc/85xx/bin/../target/usr/lib/crti.o(.text+0x10): In function `call_gmon_start':
/var/tmp/BUILD/glibc-2.3.2/objdir/csu/crti.S:16: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffc
./debug/dchaf.o(.text+0x90): In function `a0ft_ixl_init':
../../intface/a0ftxi.c:40: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0xa4):../../intface/a0ftxi.c:40: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x1084):../../intface/a0ftxi.c:402: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x1154): In function `axl_initialize':
../../libs/dummyaxl/axldmy.c:66: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x1168):../../libs/dummyaxl/axldmy.c:66: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x14b0):../../libs/dummyaxl/axldmy.c:93: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x1570): In function `axl_set_native_flag':
../../libs/dummyaxl/axldmy.c:122: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x1584):../../libs/dummyaxl/axldmy.c:122: relocation truncated to fit: R_PPC_REL24 strncpy@@GLIBC_2.0
./debug/dchaf.o(.text+0x16d0):../../libs/dummyaxl/axldmy.c:128: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status

有解决方案的麻烦告知了,谢谢。

topeak

unread,
Jul 26, 2010, 8:52:42 PM7/26/10
to china-li...@googlegroups.com
不知道你编译的是啥东西。
skipping incompatible ./debug/libdb-4.2.a when searching for -ldb-4.2。
换其他的版本的db试试。


--
您收到此邮件是因为您订阅了 Google 网上论坛的“China Linux Fans”论坛。
要向此网上论坛发帖,请发送电子邮件至 china-li...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 china-linux-fa...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/china-linux-fans?hl=zh-CN 访问此网上论坛。

Reply all
Reply to author
Forward
0 new messages