]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool/klp: Fix reloc corruption in convert_reloc_sym_to_secsym()
authorJosh Poimboeuf <jpoimboe@kernel.org>
Thu, 30 Apr 2026 04:54:41 +0000 (21:54 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:02 +0000 (21:16 -0700)
commit5f49ec82b9f65507c262a6e3f1b53663f79eedce
treeb4a3194c240919530494093f9d024193bf0bd027
parent51e1dfce24c8f4b1cdfa614a43ee195088901eca
objtool/klp: Fix reloc corruption in convert_reloc_sym_to_secsym()

Use the section symbol's index instead of the old symbol's index when
updating the ELF relocation entry in convert_reloc_sym_to_secsym().

Found by Sashiko review.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/klp-diff.c