]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Reject binutils 2.24 when building little endian
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Apr 2015 07:27:12 +0000 (17:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 May 2015 10:00:00 +0000 (20:00 +1000)
commit603aecf9de00cf396ca883676013703cf62c9bd8
tree98951d818f988287ff21cc1e10c135537c890d9c
parent57a6b8a363f9f338a74d34699605de8de00a3da2
powerpc: Reject binutils 2.24 when building little endian

There is a bug in binutils 2.24 which causes miscompilation if we're
building little endian and using weak symbols (which the kernel does).

It is fixed in binutils commit 57fa7b8c7e59 "Correct elf_merge_st_other
arguments for weak symbols", which is in binutils 2.25 and has been
backported to the binutils 2.24 branch and has been picked up by most
distros it seems.

However if we're running stock 2.24 (no extra version) then the bug is
present, so check for that and bail.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile