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

Conor Dooley conor at kernel.org
Tue May 30 13:22:54 PDT 2023


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 at microchip.com> # booted on nezha & unmatched

Thanks for your patience here Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20230530/da5e2125/attachment.sig>


More information about the linux-riscv mailing list