Re: [PATCH v2 35/53] objtool/klp: Create empty checksum sections for function-less object files

Miroslav Benes <[email protected]>
Newsgroups org.kernel.vger.live-patching,org.kernel.vger.linux-kernel
Message-ID <177798070551.9921.11609701398522102213.b4-review@b4>
On Thu, 30 Apr 2026 21:08:23 -0700, Josh Poimboeuf <[email protected]> wrote:
> If an object file has no functions, objtool has nothing to checksum, so
> it doesn't create the .discard.sym_checksum symbol.
> 
> Then when 'objtool klp diff' reads symbol checksums, it errors out due
> to the missing .discard.sym_checksum section.
> 
> Instead, just create an empty checksum section to signal to
> read_sym_checksums() that the file has been processed.
> 
> [...]

Reviewed-by: Miroslav Benes <[email protected]>

-- 
Miroslav
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.