Re: [PATCH -fixes] riscv: Fix relocatable kernels with early alternatives using -fno-pie

From: Palmer Dabbelt
Date: Wed May 31 2023 - 11:04:03 EST



On Fri, 26 May 2023 17:46:30 +0200, Alexandre Ghiti wrote:
> Early alternatives are called with the mmu disabled, and then should not
> access any global symbols through the GOT since it requires relocations,
> relocations that we do before but *virtually*. So only use medany code
> model for this early code.
>
>

Applied, thanks!

[1/1] riscv: Fix relocatable kernels with early alternatives using -fno-pie
https://git.kernel.org/palmer/c/8dc2a7e8027f

Best regards,
--
Palmer Dabbelt <palmer@xxxxxxxxxxxx>