powerpc/64/build: merge .got and .toc input sections
authorNicholas Piggin <npiggin@gmail.com>
Fri, 16 Sep 2022 04:07:54 +0000 (14:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:17 +0000 (20:58 +1000)
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
arch/powerpc/kernel/vmlinux.lds.S

index 4c38406..e68eb93 100644 (file)
@@ -173,8 +173,7 @@ SECTIONS
        }
 
        .got : AT(ADDR(.got) - LOAD_OFFSET) ALIGN(256) {
-               *(.got)
-               *(.toc)
+               *(.got .toc)
        }
 
        SOFT_MASK_TABLE(8)