diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-04-12 18:35:03 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:01 -0700 |
| commit | 3e01ab44af207a2d8c197653e7278083b039a274 (patch) | |
| tree | 14f76fb16e1d7f87912fbc40e6c2b90f76964c9c /scripts/diffconfig | |
| parent | 3787e82a4e3a0a04aeb5543580ee90bed3a36e55 (diff) | |
objtool: Move mark_rodata() to elf.c
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().
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions
