Re: [PATCH 0/2] x86/purgatory: Avoid kexec runtime warning with LLVM 18

From: Borislav Petkov
Date: Thu Apr 18 2024 - 07:15:52 EST


On April 17, 2024 11:53:44 PM GMT+02:00, Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>Hi all,
>
>After LLVM commit d8a04398f949 ("Reland [X86] With large code model, put
>functions into .ltext with large section flag (#73037)") [1], which
>landed in the 18.x cycle, there is a runtime warning when loading a
>kernel via kexec due to the presence of two text sections (.text and
>.ltext).

How much of this silliness should we expect now for other parts of the kernel?

Can we turn this off?

Why does llvm enforce .ltext for large code models and why gcc doesn't do that? Why does llvm need to do that, what requirement dictates that?

Thx.

--
Sent from a small device: formatting sucks and brevity is inevitable.