From nobody Fri Apr 10 01:05:14 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D74452877E8; Thu, 5 Mar 2026 03:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772681517; cv=none; b=Xh8kSDQnDIIvcYAlWu3VupzHbe11H7USeVngoyYsvwYNvpucWtIPuQZqrejXHsFq4GJ2tYWvOSJenDaae88xKzCw/SBIq4zGt7pNFWmwexEIIb+HdGbH7asY6NAZo7MVxM3S/tdfjpiDxUIPNyREYfyws5qA9PNa4yfcvu7Hm4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772681517; c=relaxed/simple; bh=sna7ujIJJX2wXpTTTo8a2xChNhDmAoSGFIkZMWk8srk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tg5mf1dFqnrdL90s8syIa0D+GgIw8WNCW4taRPrioUcEi8daQZERKAUvXohBLt4+ZUs0mn5BFX5N3OEyXCYrhx108llaYpRAy2/lrO/ckCkKgIT/xl1wJeBDGv1FzK3durStKGMIMXIL1rTWqoTYauNc+9sVEsnlEY50tmLJr/c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AnH7Qa8k; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AnH7Qa8k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF595C2BCB2; Thu, 5 Mar 2026 03:31:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772681517; bh=sna7ujIJJX2wXpTTTo8a2xChNhDmAoSGFIkZMWk8srk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AnH7Qa8ksu5mf2Gv83mjE9ZsD2k9/WUi6+NShvNbex9IjWIn3FsbOpjntGVs94l6B QzuBnY9D8YVCERpjOgzHblVCNp+ffRlo4EHKVHDd/y2EUiau9BCvyJNRhBX0jdWBSf snR5BLCyVcjqKjLO9YwXX5pRM0MklJCyN6Lnh8rGep5d6GIoe6YXLG3dC1ENAu7t7j l6EN+ZGfOWwAb/dKcgfhy5vtvk7LJqcFSY34MDMHHAyx2PCBnpQWbGR8uITU4L/qgw myvTfGj0zoFTtH7Rln9KExt3KT9/T1v5EgK3ljf2qZSKx85bksHnQf0+ab4yKNfSpu VlaIyS01/c0Kw== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Song Liu , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Nathan Chancellor , Nicolas Schier , Herbert Xu Subject: [PATCH 11/14] objtool: Allow empty alternatives Date: Wed, 4 Mar 2026 19:31:30 -0800 Message-ID: <1af3deb308fd59086b63690c1e7b53586ba3c5e7.1772681234.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" arm64 can have empty alternatives, which are effectively no-ops. Ignore them. Signed-off-by: Josh Poimboeuf Acked-by: Song Liu --- tools/objtool/check.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 23cde2de66b9..036adbd67488 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -1994,10 +1994,8 @@ static int add_special_section_alts(struct objtool_f= ile *file) } =20 if (special_alt->group) { - if (!special_alt->orig_len) { - ERROR_INSN(orig_insn, "empty alternative entry"); + if (!special_alt->orig_len) continue; - } =20 if (handle_group_alt(file, special_alt, orig_insn, &new_insn)) return -1; --=20 2.53.0