]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Include .branch_lt in data section
authorJoel Stanley <joel@jms.id.au>
Wed, 14 Nov 2018 03:02:18 +0000 (13:32 +1030)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Feb 2019 04:47:16 +0000 (15:47 +1100)
commitb5da9ff2f4d281b445443befdcae24756f9ab141
treeabd688c89eb9c4aee6a0081b8a31d253922aa4db
parent607a7b406ba9531c3fadbc93dbfffef728fe37d0
powerpc/32: Include .branch_lt in data section

When building a 32 bit powerpc kernel with Binutils 2.31.1 this warning
is emitted:

 powerpc-linux-gnu-ld: warning: orphan section `.branch_lt' from
 `arch/powerpc/kernel/head_44x.o' being placed in section `.branch_lt'

As of binutils commit 2d7ad24e8726 ("Support PLT16 relocs against local
symbols")[1], 32 bit targets can produce .branch_lt sections in their
output.

Include these symbols in the .data section as the ppc64 kernel does.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=2d7ad24e8726ba4c45c9e67be08223a146a837ce
Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Alan Modra <amodra@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/vmlinux.lds.S