Merge patch series "riscv: improve link and support ARCH_WANT_LD_ORPHAN_WARN"
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 Feb 2023 00:29:10 +0000 (16:29 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 Feb 2023 01:21:49 +0000 (17:21 -0800)
commitf3af3b0039fe4760fe89a05beb4a0bebbda25ac8
tree5645326efe7295230aefaafb8460723a5b0c039b
parent130aee3fd9981297ff9354e5d5609cd59aafbbea
parentf4b71bff8d8580eaaf56ec6c5305542a3d3a04bd
Merge patch series "riscv: improve link and support ARCH_WANT_LD_ORPHAN_WARN"

Jisheng Zhang <jszhang@kernel.org> says:

This series tries to improve link time handling of riscv:
patch1 adds the missing RUNTIME_DISCARD_EXIT as suggested by Masahiro.

Similar as other architectures such as x86, arm64 and so on, enable
ARCH_WANT_LD_ORPHAN_WARN to enable linker orphan warnings to prevent
from missing any new sections in future. So the following two patches
are preparation ones, and the last patch finally selects
ARCH_WANT_LD_ORPHAN_WARN

* b4-shazam-merge:
  riscv: select ARCH_WANT_LD_ORPHAN_WARN for !XIP_KERNEL
  riscv: vmlinux.lds.S: explicitly catch .init.bss sections from EFI stub
  riscv: vmlinux.lds.S: explicitly catch .riscv.attributes sections
  riscv: vmlinux.lds.S: explicitly catch .rela.dyn symbols
  riscv: lds: define RUNTIME_DISCARD_EXIT

Link: https://lore.kernel.org/r/20230119155417.2600-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig