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

From: Conor Dooley
Date: Tue May 30 2023 - 16:23:04 EST


On Tue, May 30, 2023 at 08:04:17PM +0200, Alexandre Ghiti wrote:
>
> Ahah, I think we found the culprit!
>
> With CONFIG_RELOCATABLE, vmlinux is actually stripped from all the
> relocations (so that it can be shipped) and vmlinux.relocs is what you
> should use instead, since it is just a copy of vmlinux before the
> removal of the relocations!

That probably makes us both eejits for not realising sooner...

Tested-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> # booted on nezha & unmatched

Thanks for your patience here Alex.

Attachment: signature.asc
Description: PGP signature