Re: [PATCH] livepatch/klp-build: Require Clang assembler >= 20
From: Song Liu
Date: Wed Jan 28 2026 - 16:42:22 EST
On Tue, Jan 27, 2026 at 5:12 PM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> Some special sections specify their ELF section entsize, for example:
>
> .pushsection section, "M", @progbits, 8
>
> The entsize (8 in this example) is needed by objtool klp-diff for
> extracting individual entries.
>
> Clang assembler versions older than 20 silently ignore the above
> construct and set entsize to 0, resulting in the following error:
>
> .discard.annotate_data: missing special section entsize or annotations
>
> Add a klp-build check to prevent the use of Clang assembler versions
> prior to 20.
>
> Fixes: 24ebfcd65a87 ("livepatch/klp-build: Introduce klp-build script for generating livepatch modules")
> Reported-by: Song Liu <song@xxxxxxxxxx>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Acked-by: Song Liu <song@xxxxxxxxxx>