Re: [PATCH 05/48] objtool: Move mark_rodata() to elf.c

From: Miroslav Benes

Date: Fri Apr 24 2026 - 07:39:25 EST


On Wed, 22 Apr 2026 21:03:33 -0700, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
> Move the sec->rodata marking from check.c to elf.c so it's set during
> ELF reading rather than during the check pipeline. This makes the
> rodata flag available to all objtool users, including klp-diff which
> reads ELF files directly without running check().
>
> Add an is_rodata_sec() helper to elf.h for consistency with
> is_text_sec() and is_string_sec().
>
> [...]

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

--
Miroslav