Skip to content

Commit f4b71bf

Browse files
xhackerustcpalmer-dabbelt
authored andcommitted
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 <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 0ed0031 commit f4b71bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ config RISCV
4646
select ARCH_WANT_FRAME_POINTERS
4747
select ARCH_WANT_GENERAL_HUGETLB
4848
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT
49+
select ARCH_WANT_LD_ORPHAN_WARN if !XIP_KERNEL
4950
select ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE
5051
select BINFMT_FLAT_NO_DATA_START_OFFSET if !MMU
5152
select BUILDTIME_TABLE_SORT if MMU

0 commit comments

Comments
 (0)