binutils/ld: "Sort relocs output by ld -r" breaks mips cross compilation of linux

Manuel Lauss
Mon Dec 8 15:30:00 GMT 2014

Hi Alan,

your patch to binutils/ld "Sort relocs output by ld -r" causes a lot of
the following warnings when I cross-compile the linux kernel for
little-endian mips32 on an x64 host:

mipsel-softfloat-linux-gnu-ld: init/mounts.o: Can't find matching LO16
reloc against `$LC2' for R_MIPS_HI16 at 0x4e8 in section `.text'

If I revert that patch the kernel build succeeds without warnings and boots.
(I wrongly blamed a patch by Andrew Bennett before which turns out
 to be innocent).

      Manuel Lauss

More information about the Binutils mailing list