diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-09-16 06:07:54 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-26 12:58:17 +0200 |
commit | 1e9eca485a840985a663080eb049c420272d4bdd (patch) | |
tree | d7e276e66f0319e7df801a95f4ff80d70dcda550 | |
parent | powerpc/64/build: only include .opd with ELFv1 (diff) | |
download | linux-1e9eca485a840985a663080eb049c420272d4bdd.tar.xz linux-1e9eca485a840985a663080eb049c420272d4bdd.zip |
powerpc/64/build: merge .got and .toc input sections
Follow the binutils ld internal linker script and merge .got and .toc
input sections in the .got output section.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916040755.2398112-7-npiggin@gmail.com
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 4c38406384a9..e68eb9381066 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -173,8 +173,7 @@ SECTIONS } .got : AT(ADDR(.got) - LOAD_OFFSET) ALIGN(256) { - *(.got) - *(.toc) + *(.got .toc) } SOFT_MASK_TABLE(8) |