diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-17 16:36:47 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-26 20:58:16 +1000 |
commit | 0c32903197ce9f7119aee75a6bcaa4b49e0cd21a (patch) | |
tree | ad60de240db1a669db240dd9791b88edebeb3e6f /arch/powerpc/kernel/vmlinux.lds.S | |
parent | 9a10ccb29c0a2befa5a9f691ed0ae37ee3e799a8 (diff) | |
download | lwn-0c32903197ce9f7119aee75a6bcaa4b49e0cd21a.tar.gz lwn-0c32903197ce9f7119aee75a6bcaa4b49e0cd21a.zip |
powerpc/64: Remove unused prom_init_toc symbols
Commit 24d33ac5b8ff ("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: 24d33ac5b8ff ("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
Diffstat (limited to 'arch/powerpc/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index fe22d940412f..0f2a10b029e8 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -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 |