Re: [PATCH] x86/boot: Remove x86_32 PIC using ebx workaround

From: Borislav Petkov
Date: Tue Nov 29 2022 - 03:33:56 EST


On Mon, Nov 28, 2022 at 10:41:11PM -0500, Brian Gerst wrote:
> x86-64 uses a PIC register for the medium and large PIC code models,
> where offsets can be larger than +/- 2GB.

Right but 64-bit is built with -mcmodel=kernel which obviously generates
rip-relative.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette