]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 9 May 2017 06:19:40 +0000 (08:19 +0200)
commit3bd7a64caab850def8988a5f4ff5550b97bb1e93
treead097bf20c21ccf2bc8fb396184b74ce2dbea901
parent36d08048a7d5b5c56d3f2f9d1b90997f5c44a25e
powerpc: Reject binutils 2.24 when building little endian

commit 60e065f70bdb0b0e916389024922ad40f3270c96 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/powerpc/Makefile