Re: [RFC 29/31] objtool: Calculate function checksums

2024-09-04 Thread Josh Poimboeuf
On Wed, Sep 04, 2024 at 09:54:33AM +0200, Peter Zijlstra wrote: > > +LIBXXHASH_FLAGS := $(shell $(HOSTPKG_CONFIG) libxxhash --cflags > > 2>/dev/null) > > +LIBXXHASH_LIBS := $(shell $(HOSTPKG_CONFIG) libxxhash --libs 2>/dev/null > > || echo -lxxhash) > > This was not installed on my system and I

Re: [RFC 29/31] objtool: Calculate function checksums

2024-09-04 Thread Peter Zijlstra
On Mon, Sep 02, 2024 at 09:00:12PM -0700, Josh Poimboeuf wrote: > Calculate per-function checksums based on the functions' content and > relocations. This will enable objtool to do binary diffs. > > Signed-off-by: Josh Poimboeuf > --- > scripts/Makefile.lib| 1 + > tools/o

[RFC 29/31] objtool: Calculate function checksums

2024-09-02 Thread Josh Poimboeuf
Calculate per-function checksums based on the functions' content and relocations. This will enable objtool to do binary diffs. Signed-off-by: Josh Poimboeuf --- scripts/Makefile.lib| 1 + tools/objtool/Makefile | 7 +- tools/objtool/builtin-check.c