From: Mitch D. <md...@po...> - 2000-10-25 06:23:37
|
Adrian Stoica wrote: > > 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: > 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. Immensely. Guys, I understand we want to move to the format name of elf32-sh-linux, but this situation of having a mismatch between the publicly available versions of the kernel and binutils etc is crazy and has gone on for far too long. Unless someone tells me otherwise, I'll be checking Adrian's change into the kernel CVS repository shortly. Then we won't have both new and experienced people scratching their heads. Broken is no fun. When the new tool chain is checked in, THEN we can change the Linux linker script to match. Regards, Mitch. PS: Thank you Adrian for sending in this patch. |