rc_cumt 发表于 2009-7-26 12:43:25

求助,关于编译gdbserver的问题

我在编译arm上的gdb server时,遇到以下问题,希望高手帮忙解决:
rm -f gdb
arm-linux-gcc -g -O2      \
                -o gdb gdb.o libgdb.a \
                   ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -ltermcap -lm   ../libiberty/libiberty.a-ldl -rdynamic
/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real: libgdb.a(xml-builtin.o): Relocations in generic ELF (EM: 3)
/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real: libgdb.a(xml-builtin.o): Relocations in generic ELF (EM: 3)
/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/bin/ld.real: libgdb.a(xml-builtin.o): Relocations in generic ELF (EM: 3)
libgdb.a: could not read symbols: 文件格式错误
collect2: ld 返回 1
make: *** 错误 1
我用的操作系统是fedora 11,gcc 编译器版本是 4.2.0, arm-linux-gcc 是4.2.1 gdb版本是 6.8
页: [1]
查看完整版本: 求助,关于编译gdbserver的问题