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

From: Josh Poimboeuf
Date: Wed Sep 04 2024 - 12:11:46 EST


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 got a nasty build fail. Should
> we make all this depend on CONFIG_LIVEPATCH or force world+dog to
> install this as yet another kernel build dependency?

Hm, that would be nice, but as of now the objtool build is independent
of the CONFIG stuff and I'm not sure how to integrate them cleanly.

Maybe it could only link to the library if it exists, and then complain
later at runtime when the feature gets specified on the cmdline?

Or we could try dlopen?

--
Josh