Re: [PATCH v3 1/7] x86/boot/startup: Disable objtool validation for library code

From: Ingo Molnar
Date: Wed Apr 09 2025 - 05:56:00 EST



* Borah, Chaitanya Kumar <chaitanya.kumar.borah@xxxxxxxxx> wrote:

>
> On 4/8/2025 2:22 PM, Ard Biesheuvel wrote:
> > From: Ard Biesheuvel <ardb@xxxxxxxxxx>
> >
> > The library code built under arch/x86/boot/startup is not intended to be
> > linked into vmlinux but only into the decompressor and/or the EFI stub.
> >
> > This means objtool validation is not needed here, and may result in
> > false positive errors for things like missing retpolines.
> >
> > So disable it for all objects added to lib-y
> >
> > Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
>
> Solves https://lore.kernel.org/intel-gfx/CAMj1kXEfBMczOmA2+dMMubuD-qE59GTAiV2E_9m8KNG4-rgP6Q@xxxxxxxxxxxxxx/T/#mbf2913e778475b70617390d4a5d0244295b9cb8c
>
> Tested-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@xxxxxxxxx>

Thank you for the testing!

Ingo