On Wed, 29 Mar 2023 06:53:23 +0200, Alexandre Ghiti wrote: > After multiple attempts, this patchset is now based on the fact that the > 64b kernel mapping was moved outside the linear mapping. > > The first patch allows to build relocatable kernels but is not selected > by default. That patch is a requirement for KASLR. > The second and third patches take advantage of an already existing powerpc > script that checks relocations at compile-time, and uses it for riscv. > > [...] Applied, thanks! [1/6] riscv: Prepare EFI header for relocatable kernels https://git.kernel.org/palmer/c/55de1e4ad43b [2/6] riscv: Move .rela.dyn outside of init to avoid empty relocations https://git.kernel.org/palmer/c/69a90d2fe107 [3/6] riscv: Introduce CONFIG_RELOCATABLE https://git.kernel.org/palmer/c/39b33072941f [4/6] powerpc: Move script to check relocations at compile time in scripts/ https://git.kernel.org/palmer/c/47981b5cc687 [5/6] riscv: Check relocations at compile time https://git.kernel.org/palmer/c/c2dea0bc5339 [6/6] riscv: Use --emit-relocs in order to move .rela.dyn in init https://git.kernel.org/palmer/c/559d1e45a16d Best regards, -- Palmer Dabbelt <palmer@xxxxxxxxxxxx>