交叉编译问题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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to china-li...@googlegroups.com
不知道你编译的是啥东西。 skipping incompatible ./debug/libdb-4.2.a when searching for -ldb-4.2。 换其他的版本的db试试。