riscv: select ARCH_WANT_LD_ORPHAN_WARN for !XIP_KERNEL
authorJisheng Zhang <jszhang@kernel.org>
Thu, 19 Jan 2023 15:54:17 +0000 (23:54 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 Feb 2023 00:29:07 +0000 (16:29 -0800)
commitf4b71bff8d8580eaaf56ec6c5305542a3d3a04bd
treefcd8eb0d166f557ae3a5821729e9df3d6a128722
parent0ed0031b093b19ee46afc0a5517184932401e074
riscv: select ARCH_WANT_LD_ORPHAN_WARN for !XIP_KERNEL

Now, after that all the sections are explicitly described and
declared in vmlinux.lds.S, we can enable ld orphan warnings for
!XIP_KERNEL to prevent from missing any new sections in future.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230119155417.2600-6-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig