From nobody Wed Dec 17 19:04:45 2025 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 6FA41204F93; Fri, 14 Mar 2025 20:04:02 +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=1741982644; cv=none; b=AupV+bzOKy2iSGRCLXVkbGWJseZcLS4IhoMiivDNOl9IFctpQBsYWOchxGfg0QySPQtRqX9S02zqOMaO1YLdcVYecx18ZF947PbxXzoP/Hbsvzwb5tDoVoriYOsOb+nq/ZpoZFsqhHDxbC27w0XjvQSq15BRyToAU478DzVCwlo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741982644; c=relaxed/simple; bh=6fl19qt8uRo7rVlCXhkBK8V5Sevp1OWU//aOfS+PLCU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=IRxJT4HqbStvEF1OgvoRL8MkosQKsmklr7Cs2RnfwIlj9LGAmEmPEiQVxIgfwaythXOOSEDL1yTeCbwwqBb577UYfpGwGkX0bpwlY2SqJ3x0KsAqnhQuuCBZgRrA1WMVhsW4/pMAjWPnwfs8e0JjzvYr+Vip2Z3lzjP9ooBrqcg= 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=QH8GqYVj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ezeCYSJi; 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="QH8GqYVj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ezeCYSJi" Date: Fri, 14 Mar 2025 20:03:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741982640; 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: in-reply-to:in-reply-to:references:references; bh=5zo1iE4mmcJfK6JAhDZYn2eC23iWPOwtDxs1bIqYZJ0=; b=QH8GqYVja7uYmQs6UFDkCmL3J46luuHokbygzwQqLF/InOuIh//GYDxSMEzki/2nWbId47 aL16qeH8DHFlEcSqCUxiAadhsIQUykIyV2/QBgge9OaUlKQed8JuJAdmHxQUo+fS1hEzw6 LywYRHIrWixnkbTFh7pxQTogxapYwLwxIpfsBESY/LkN6a084SY5XqrNSLniZuKXmpgSp3 TjpPcpdADfjXw761jb53+96D0vM22OtHinoH/bEQqqfW4HyvLSTj1hkNmN9bPBwRr/wj4s BChIbYWLOMtQxjvq0zRu7smd7XHuoYvCL8wzq8KnkIIYrJf8YBflTo1uQnTfRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741982640; 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: in-reply-to:in-reply-to:references:references; bh=5zo1iE4mmcJfK6JAhDZYn2eC23iWPOwtDxs1bIqYZJ0=; b=ezeCYSJiz1zU0eNjPcK341JDsQtAV9PZqZeuOXVz4b3QcFyQyXk61UX84wgjvjW7SUuZIO KvTpXz4hIapLo6DA== From: "tip-bot2 for Tiezhu Yang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] LoongArch: Enable jump table for objtool Cc: Tiezhu Yang , Huacai Chen , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20241217010905.13054-8-yangtiezhu@loongson.cn> References: <20241217010905.13054-8-yangtiezhu@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174198263615.14745.12782989496753781204.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: e20ab7d454ee8d1e0e8b9ff73a7c87e84c666b2f Gitweb: https://git.kernel.org/tip/e20ab7d454ee8d1e0e8b9ff73a7c87e84= c666b2f Author: Tiezhu Yang AuthorDate: Tue, 17 Dec 2024 09:09:03 +08:00 Committer: Josh Poimboeuf CommitterDate: Wed, 12 Mar 2025 15:43:39 -07:00 LoongArch: Enable jump table for objtool For now, it is time to remove -fno-jump-tables to enable jump table for objtool if the compiler has -mannotate-tablejump, otherwise it is better to remain -fno-jump-tables to keep compatibility with older compilers. Signed-off-by: Tiezhu Yang Link: https://lore.kernel.org/r/20241217010905.13054-8-yangtiezhu@loongson.= cn Acked-by: Huacai Chen Signed-off-by: Josh Poimboeuf --- arch/loongarch/Kconfig | 3 +++ arch/loongarch/Makefile | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 2b8bd27..15aaa2e 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -291,6 +291,9 @@ config AS_HAS_LBT_EXTENSION config AS_HAS_LVZ_EXTENSION def_bool $(as-instr,hvcl 0) =20 +config CC_HAS_ANNOTATE_TABLEJUMP + def_bool $(cc-option,-mannotate-tablejump) + menu "Kernel type and options" =20 source "kernel/Kconfig.hz" diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile index 567bd12..0304eab 100644 --- a/arch/loongarch/Makefile +++ b/arch/loongarch/Makefile @@ -101,7 +101,11 @@ KBUILD_AFLAGS +=3D $(call cc-option,-mthin-add-sub) = $(call cc-option,-Wa$(comma) KBUILD_CFLAGS +=3D $(call cc-option,-mthin-add-sub) $(call cc-option,-Wa= $(comma)-mthin-add-sub) =20 ifdef CONFIG_OBJTOOL -KBUILD_CFLAGS +=3D -fno-jump-tables +ifdef CONFIG_CC_HAS_ANNOTATE_TABLEJUMP +KBUILD_CFLAGS +=3D -mannotate-tablejump +else +KBUILD_CFLAGS +=3D -fno-jump-tables # keep compatibility with older comp= ilers +endif endif =20 KBUILD_RUSTFLAGS +=3D --target=3Dloongarch64-unknown-none-softfloat -Ccod= e-model=3Dsmall