From nobody Sat Jun 13 22:01:06 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF4DC43CEC3; Tue, 5 May 2026 10:56:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978578; cv=none; b=cDJlxqlMR57AZSMbuU6CDu2P2I1YOHgbxgdG9RBR//J9CnyzFKA9mZMCw8Xubo8/VQSYtCWJ8JJVU1VsQYw4/g000r8dKS/mJ7My1rkEXZjxNI0T+rAU9FwGj9/byLLMmCx68H7Dsyn8RaTukWaCUpQ6AGq5StLa0iXDCyY3o38= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978578; c=relaxed/simple; bh=tPKX5zmtPnHUk2g/Lc5EFqn+O79y8BgX9anZGbONcZQ=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=Or5/in0c/nnB3McjEioQf3niegpOr8HWDEs6CTpSY/CJAwFqOOncMLc4VQt3lLo6fCsJ9LyQUZ0+zz1NQyDmTetkU0d3COD5NtI7qwK0SFCH7l7i2vsMXkun3NG4NhuUBfIc5WZ6zBQ02E/rYH8k9eyKrG3j2Xzp/HqFFOQp9Ok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RaIyJvDZ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=DxKauycA; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RaIyJvDZ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DxKauycA" Date: Tue, 05 May 2026 10:56:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978574; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/HUsgrPpflvpaVu5oUS/Wff8Sii1L1tFfh0FHp8lwUU=; b=RaIyJvDZwmL9QNhktDpEnM3gdyth9+buRJI+y+7Oy6rl0HlvxvkFYyOpj9adKfcWBjP9rf z1c7m78sZM0GT6s+19K+EqTkLpc8cjMdI92Ha1DknTafCKWqjWyPXNAOAIe64Ymk8I4Acn zQkQZmEIyLju595jv7ehhag1EUz6Bu8YwmIDb4pUtAV/QUGbyYHuHQal7Vtvabf3bgPJXI si/HbfOPt7kOD8O9tSwtmaKN8nwyZWykghl1TMjaUsLsV8gvXABWq1ekIw8vy05Lh9hzzs HIDZFE5qDni50QE/A8IjmWnqKYG5cF7T5sc1oGdCjbiU9PWMIWGViNAEw19Ing== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978574; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/HUsgrPpflvpaVu5oUS/Wff8Sii1L1tFfh0FHp8lwUU=; b=DxKauycARllHz0HCpvCfe/atsCjYpPYb94INAziZGgI/KxhZ2EMRgsz7RxEIlDRBZidjd5 sKYlxpNHj2qVIEBw== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool/klp: Create empty checksum sections for function-less object files Cc: Song Liu , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177797857331.424702.2725000057004178345.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/core branch of tip: Commit-ID: 9e4512d7de5ab27c1b0c3891f7a0e9202a5a2eef Gitweb: https://git.kernel.org/tip/9e4512d7de5ab27c1b0c3891f7a0e9202= a5a2eef Author: Josh Poimboeuf AuthorDate: Mon, 30 Mar 2026 21:50:46 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:16:04 -07:00 objtool/klp: Create empty checksum sections for function-less object files 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. Acked-by: Song Liu Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index e7579c4..f020f21 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -1044,9 +1044,6 @@ static int create_sym_checksum_section(struct objtool= _file *file) if (sym->csum.checksum) idx++; =20 - if (!idx) - return 0; - sec =3D elf_create_section_pair(file->elf, ".discard.sym_checksum", entsi= ze, idx, idx); if (!sec)