From nobody Sat Jun 13 22:01:39 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 B66FB436342; Tue, 5 May 2026 10:56:13 +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=1777978575; cv=none; b=gq+vTV2wQchU7iOvx3BwpXVtWdXNSYlUqa9ywkvswUr1EfBzPbFkQ4QJ8J3SonA4zHUu+vpiCKZ31km5zgxEVY6cD0HJp7mZES84Sjq7jMPDsuicrShIbyq260fA1zb0eV1wS4C5zs41FkLDpqSOm3pRtuqBGLe7GcT3IY2KiJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777978575; c=relaxed/simple; bh=578/h1yFzDWRQOPOLcaFzFZjMJ8kJnDxLjdf8jo6UwI=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=l7a26bIonFuiykXr9cd4YDqV5OUkvzWJ8Datci/eoWvxWh0Xy0Re/yPvlrP8ZYj2kL2EH3CJeTavHQQ4H4XVGFJxgZKhWJafGOvyaau0vyof54UOBkYpjivSx1ztfy7EqPGDaHpRJHcjYiliYunVrDDjO6s7Niadx6gg3VCbbBA= 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=vFNBYmJc; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/fpbtXlR; 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="vFNBYmJc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/fpbtXlR" Date: Tue, 05 May 2026 10:56:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1777978572; 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=yeYlN7jfpqqz5+mw41XNLMftm3f5LDw/xWeNDt+VrvM=; b=vFNBYmJcV5lh+WNoG9gimxJwL1Wr/RsAYI/PIaGDiw/X265GMcB8iVPkGhNRTqnZX79K0z lcTDm1UaEWNtNBbvxs6SG91GVy9ayVYFx16WejnYmGlZBz8X/airjTzBpIlU/u2T3lAAKf UbpoM9BxMfBBTqWap3DipRZn3ne1j9QSn6GeYQZZRheUwY9cdMFblQxDkRqJ+DHzTxiBBz BVynYKfgrmKtyQm50L8PPWQsabsyIOBQySdi5hrcFlifeSdoo6penFWk+3QQEo9ExA2agK bkGVijtqR8sQoFUAYCYn5bjDNxWY5xiVJtuGvETIuEDSAevNMmhI3cgoW7CQlg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1777978572; 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=yeYlN7jfpqqz5+mw41XNLMftm3f5LDw/xWeNDt+VrvM=; b=/fpbtXlR/4vBEgBcAWxqcdlsIqbrYE92rUjWh9hTYas4UUbn/KofYftAqEBTBhwwjf3pQT ynoRLQDRwuJSZpCg== 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: Add is_alias_sym() helper Cc: "Peter Zijlstra (Intel)" , 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: <177797857086.424702.4036414094782374785.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: 8eebd573113362ef3a3c75f166a83ee060dae11b Gitweb: https://git.kernel.org/tip/8eebd573113362ef3a3c75f166a83ee06= 0dae11b Author: Josh Poimboeuf AuthorDate: Wed, 18 Mar 2026 15:42:30 -07:00 Committer: Josh Poimboeuf CommitterDate: Mon, 04 May 2026 21:16:05 -07:00 objtool: Add is_alias_sym() helper Improve readability with a new is_alias_sym() helper. No functional changes intended. Acked-by: Peter Zijlstra (Intel) Acked-by: Song Liu Signed-off-by: Josh Poimboeuf --- tools/objtool/check.c | 6 +++--- tools/objtool/include/objtool/elf.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index f020f21..6c94eb3 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -491,7 +491,7 @@ static int decode_instructions(struct objtool_file *fil= e) return -1; } =20 - if (func->embedded_insn || func->alias !=3D func) + if (func->embedded_insn || is_alias_sym(func)) continue; =20 if (!find_insn(file, sec, func->offset)) { @@ -2229,7 +2229,7 @@ static int add_jump_table_alts(struct objtool_file *f= ile) return 0; =20 for_each_sym(file->elf, func) { - if (!is_func_sym(func) || func->alias !=3D func) + if (!is_func_sym(func) || is_alias_sym(func)) continue; =20 mark_func_jump_tables(file, func); @@ -4523,7 +4523,7 @@ static int validate_symbol(struct objtool_file *file,= struct section *sec, return 1; } =20 - if (sym->pfunc !=3D sym || sym->alias !=3D sym) + if (sym->pfunc !=3D sym || is_alias_sym(sym)) return 0; =20 insn =3D find_insn(file, sec, sym->offset); diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/ob= jtool/elf.h index 8a543ce..ccc72a6 100644 --- a/tools/objtool/include/objtool/elf.h +++ b/tools/objtool/include/objtool/elf.h @@ -298,6 +298,11 @@ static inline bool is_local_sym(struct symbol *sym) return sym->bind =3D=3D STB_LOCAL; } =20 +static inline bool is_alias_sym(struct symbol *sym) +{ + return sym->alias !=3D sym; +} + static inline bool is_prefix_func(struct symbol *sym) { return sym->prefix;