Re: [PATCH 40/46] x86/livepatch, lto: Disable live patching with gcc LTO
From: Song Liu
Date: Thu Nov 17 2022 - 15:00:23 EST
On Mon, Nov 14, 2022 at 3:48 AM Jiri Slaby (SUSE) <jirislaby@xxxxxxxxxx> wrote:
>
> From: Andi Kleen <andi@xxxxxxxxxxxxxx>
>
> It is not supported by gcc 12 so far, so it causes compiler "sorry"
> messages.
>
> Other than the compiler support, there shouldn't be any barriers for
> live patching LTOed kernels, although it might be more difficult to
> create patches for larger functions.
A loosely related question: does livepatch work with CLANG LTO?
AFAICT, kpatch-build doesn't support it. But the kernel side should
work just fine?
Thanks,
Song
[...]