]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
objtool/klp: Add --checksum option to generate per-function checksums
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:57 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:50:17 +0000 (14:50 -0700)
commit0d83da43b1e1c8ce19f2bb10f54a0fdf795364f7
tree2f2ef8f8f2d52d7e02d0ac32c650d97afc8c2cad
parentf6b740ef5f4724f95363ac0d664e88d221343fa1
objtool/klp: Add --checksum option to generate per-function checksums

In preparation for the objtool klp diff subcommand, add a command-line
option to generate a unique checksum for each function.  This will
enable detection of functions which have changed between two versions of
an object file.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/Makefile
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/elf.c
tools/objtool/include/objtool/builtin.h
tools/objtool/include/objtool/check.h
tools/objtool/include/objtool/checksum.h [new file with mode: 0644]
tools/objtool/include/objtool/checksum_types.h [new file with mode: 0644]
tools/objtool/include/objtool/elf.h