]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/64: Remove unused prom_init_toc symbols
authorMichael Ellerman <mpe@ellerman.id.au>
Sat, 17 Sep 2022 06:36:47 +0000 (16:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:16 +0000 (20:58 +1000)
Commit fe783ad4a1b7 ("powerpc/64s: Make prom_init require RELOCATABLE")
made prom_init depend on CONFIG_RELOCATABLE.

But it missed cleaning up a case in the linker script for RELOCATABLE=n,
and associated symbols. Remove them now.

Fixes: fe783ad4a1b7 ("powerpc/64s: Make prom_init require RELOCATABLE")
Reported-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220920131157.1032707-1-mpe@ellerman.id.au
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/prom_init_check.sh
arch/powerpc/kernel/vmlinux.lds.S

index 183e6b8af392dcc3daf79538a64ca55d230685dd..babda2677b30b597e0a19379aca495dfb88ce670 100644 (file)
@@ -32,9 +32,6 @@ extern long kvm_flush_link_stack;
 extern char __start_interrupts[];
 extern char __end_interrupts[];
 
-extern char __prom_init_toc_start[];
-extern char __prom_init_toc_end[];
-
 #ifdef CONFIG_PPC_POWERNV
 extern char start_real_trampolines[];
 extern char end_real_trampolines[];
index dfa5f729f774d6607f6e417bb5ca379430b96257..311890d71c4c9870ac7f5bf10f8dc2572f9300af 100644 (file)
@@ -26,8 +26,7 @@ _end enter_prom $MEM_FUNCS reloc_offset __secondary_hold
 __secondary_hold_acknowledge __secondary_hold_spinloop __start
 logo_linux_clut224 btext_prepare_BAT
 reloc_got2 kernstart_addr memstart_addr linux_banner _stext
-__prom_init_toc_start __prom_init_toc_end btext_setup_display TOC.
-relocate"
+btext_setup_display TOC. relocate"
 
 NM="$1"
 OBJ="$2"
index fe22d940412fda1a0aec1dd01ba36b9b8875de1b..0f2a10b029e8572db8f7f25da03148bd1bb1a766 100644 (file)
@@ -337,11 +337,6 @@ SECTIONS
 
        .got : AT(ADDR(.got) - LOAD_OFFSET) ALIGN(256) {
                *(.got)
-#ifndef CONFIG_RELOCATABLE
-               __prom_init_toc_start = .;
-               arch/powerpc/kernel/prom_init.o*(.toc)
-               __prom_init_toc_end = .;
-#endif
                *(.toc)
        }
 #endif