summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2026-04-13 04:35:03 +0300
committerJosh Poimboeuf <jpoimboe@kernel.org>2026-05-05 07:16:01 +0300
commit3e01ab44af207a2d8c197653e7278083b039a274 (patch)
tree14f76fb16e1d7f87912fbc40e6c2b90f76964c9c /include/linux
parent3787e82a4e3a0a04aeb5543580ee90bed3a36e55 (diff)
downloadlinux-3e01ab44af207a2d8c197653e7278083b039a274.tar.xz
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 'include/linux')
0 files changed, 0 insertions, 0 deletions