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
This commit is contained in:
Nicholas Piggin 2022-09-16 14:07:54 +10:00 committed by Michael Ellerman
parent c787fed118
commit 1e9eca485a

View file

@ -173,8 +173,7 @@ SECTIONS
}
.got : AT(ADDR(.got) - LOAD_OFFSET) ALIGN(256) {
*(.got)
*(.toc)
*(.got .toc)
}
SOFT_MASK_TABLE(8)