aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Piggin2022-09-16 14:07:54 +1000
committerMichael Ellerman2022-09-26 20:58:17 +1000
commit1e9eca485a840985a663080eb049c420272d4bdd (patch)
treed7e276e66f0319e7df801a95f4ff80d70dcda550
parentc787fed11890babda1e4882cd3b6efaf412e1bde (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.S3
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)