Ralf Baechle wrote:
So it looks as if gcc 4.2.2 is broken for kernel builds resulting in the
following error message with binutils 2.18:
It seems to be a GCC problem, not binutils related.
Have you successfully built with 4.2.0 or 4.2.1?
If it is a regression from a previous gcc-4.2.x version I would be
inclined to fix it. But if all gcc-4.2.x are broken, I might recommend
skipping this version and using 4.3 when it is released.
mipsel-linux-ld: drivers/mtd/.tmp_mtd_blkdevs.o: Can't find matching LO16 reloc
against `$LC6' for R_MIPS_HI16 at 0x9e0 in section `.text'
Older binutils throw a more cryptic error message about the bad assembler
code generated by gcc:
mipsel-linux-ld: final link failed: Bad value
make: *** [drivers/mtd/mtd_blkdevs.o] Error 1
make: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2
Just as heads up ...