diff options
author | Nicholas Piggin | 2022-09-16 14:07:54 +1000 |
---|---|---|
committer | Michael Ellerman | 2022-09-26 20:58:17 +1000 |
commit | 1e9eca485a840985a663080eb049c420272d4bdd (patch) | |
tree | d7e276e66f0319e7df801a95f4ff80d70dcda550 | |
parent | c787fed11890babda1e4882cd3b6efaf412e1bde (diff) |
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) |