diff options
author | Joel Stanley <joel@jms.id.au> | 2018-11-14 13:32:18 +1030 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-02-05 15:47:16 +1100 |
commit | 98ecc6768e8fdba95da1fc1efa0ef2d769e7fe1c (patch) | |
tree | abd688c89eb9c4aee6a0081b8a31d253922aa4db /arch/powerpc/kernel/vmlinux.lds.S | |
parent | 195482c3633c5ce03c099c3e6b3f283b0ae116d6 (diff) | |
download | lwn-98ecc6768e8fdba95da1fc1efa0ef2d769e7fe1c.tar.gz lwn-98ecc6768e8fdba95da1fc1efa0ef2d769e7fe1c.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 3ae4c959f95b..c3efb972c8c1 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -319,6 +319,7 @@ SECTIONS *(.sdata2) *(.got.plt) *(.got) *(.plt) + *(.branch_lt) } #else .data : AT(ADDR(.data) - LOAD_OFFSET) { |