内核编译初期问题,大家指教
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
CC init/do_mounts_md.o
LD init/mounts.o
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
ld: init/do_mounts.o: Relocations in generic ELF (EM: 40)
init/do_mounts.o: could not read symbols: File in wrong format
make[1]: *** [init/mounts.o] Error 1
make: *** [init] Error 2
以上是错误提示。
之前已经设置了
export CC=arm-linux-gcc
export AR=arm-linux-ar
export AS=arm-linux-as
export LD=arm-linux-ld
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib
export STRIP=arm-linux-strip
export SIZE=arm-linux-size
这些环境变量,并取消了kernel menuconfig上的elf
目标板为2440,编译器应该是没问题,请问高人问题在哪里?