From nobody Sat Jun 13 21:02:57 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 B5E1748A2D1; Tue, 5 May 2026 10:56:53 +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=1777978615; cv=none; b=h9vbxhzq9eQE3mwp4KKYdf4yziTQtunxpxuvQ5phdcZ6XehZGUQvZxG9NaGtEdYaLfOpp7rJZXIR+q1tAX8BsHTGcPtvRcG6H0rql5qRmb0bDMuoa4ukOPiXcgZqrMmYKLVQ5I2eRBTSImyI6PyWSFcS6q2ciMGpWTNCzfJIHdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978615; c=relaxed/simple; bh=2cpn0GWgDgwoQJhC8guTp7W6iaATBr7r/AmZcc097+8=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=eJsg6zyfp5e+LjXSxFdT6vv0+0cqnALmtCQXE8krhu7mOmf4FbUhPS24YyTydGAK8pXawgfh2+8b0V+GEHGenhQ0iNxUSekyeO+p/QHQHEh6hqzijQrSDHCAca5oUexSfsIMUbKWyDdeYHcn4QdIGGtqeag4AbFFx4HTEx5dIW8= 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=yM8DzeWC; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9sI3gCT/; 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="yM8DzeWC"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9sI3gCT/" Date: Tue, 05 May 2026 10:56:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978612; 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=zpabTaITulXlpF/5uACeqODRN/tQohBCgW9/JqFeASo=; b=yM8DzeWCTyFtyN7X7sSoHTpLPJ6S4PvT+HGZn8tVateUxEW1/vtQAUgmd7K2woFTWtkroD TvhV8rMToChJhZ/vmgnKM2iVeuirz07UT3dLLZH7RZsKtLQmS+r6SpaVG3wdwiv0lrRkTG yRikhLjfMlOpbt0B0c5UzrdW4uKpU9SiaC1AhtIyXkFobixK6FIEslLsCS3Q8T8Hjzc3YW HMkkzAGAAYkFrIWWvqdk7rmR+O1LWLk7/ceNIky9ILVxkRiCMuVHEWGwWQOxStrEQlF9JS /4qz5m9yRAR2bn5gaZyufOVlNHOfdftMUTQDevHwC6xVcRQiKwB8SK+MhpxcCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978612; 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=zpabTaITulXlpF/5uACeqODRN/tQohBCgW9/JqFeASo=; b=9sI3gCT/x7lWqwY1ABKkpL4HMuQeq/WBLPWxOULlnxUXnnxpNRXcDCEfj5upIf/ntJeK0y Pa34ufKVu6i4QsCQ== 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: Don't correlate __ADDRESSABLE() symbols Cc: Miroslav Benes , 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: <177797861116.424702.7414555979876109374.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: 8edec016255dcc74146b0486639f756f0ce75bf5 Gitweb: https://git.kernel.org/tip/8edec016255dcc74146b0486639f756f0= ce75bf5 Author: Josh Poimboeuf AuthorDate: Sat, 11 Apr 2026 12:23:07 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:15:59 -07:00 objtool/klp: Don't correlate __ADDRESSABLE() symbols Symbols created by __ADDRESSABLE() are only used to convince the toolchain not to optimize out the referenced symbol. Reviewed-by: Miroslav Benes Acked-by: Song Liu Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index cb26c1c..36753ee 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -353,6 +353,15 @@ static bool is_special_section_aux(struct section *sec) } =20 /* + * Symbols created by ___ADDRESSABLE() are only used to convince the toolc= hain + * not to optimize out the referenced symbol. + */ +static bool is_addressable_sym(struct symbol *sym) +{ + return !strcmp(sym->sec->name, ".discard.addressable"); +} + +/* * These symbols should never be correlated, so their local patched versio= ns * are used instead of linking to the originals. */ @@ -365,6 +374,7 @@ static bool dont_correlate(struct symbol *sym) is_uncorrelated_static_local(sym) || is_clang_tmp_label(sym) || is_string_sec(sym->sec) || + is_addressable_sym(sym) || is_special_section(sym->sec) || is_special_section_aux(sym->sec) || strstarts(sym->name, "__initcall__");