From: Adrian S. <adr...@po...> - 2000-10-13 16:45:05
|
Hi, I had the same problem as Bryan, i.e. ld was bombing out when attempting to link the kernel. It turned out that the problem was down to lines 7 - 10 in arch/sh/vmlinux.lds.S specifying illegal formats: #ifdef CONFIG_CPU_LITTLE_ENDIAN OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") #else OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-shbig-linux") Running sh-linux-gnu-objdump gives: "supported targets: elf32-sh elf32-shl coff-sh coff-shl coff-sh-small coff-shl-small elf32-little elf32-big srec symbolsrec tekhex binary ihex", there is no "elf32-sh-linux", etc. Replacing the above lines with: #ifdef CONFIG_CPU_LITTLE_ENDIAN OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl") #else OUTPUT_FORMAT("elf32-sh", "elf32-sh", "elf32-sh") #endif fixed the crash in my case. Hope this helps. Adrian |