Message ID | 20240202-llvm-msym32-v1-1-52f0631057d6@flygoat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp617104dyc; Fri, 2 Feb 2024 10:23:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWPv2LLt1NfBbV+bAbp/xgSd9lPyNMRtybAJDoZG2+wKniX9nT/WHpjuPkhXcT1UWJMLXH X-Received: by 2002:a05:6a21:2d85:b0:19c:aaee:bb1b with SMTP id ty5-20020a056a212d8500b0019caaeebb1bmr3516949pzb.7.1706898235083; Fri, 02 Feb 2024 10:23:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706898235; cv=pass; d=google.com; s=arc-20160816; b=BUWevrlf4xwxG8TQ6h1eZkUoNtrLxxJXFzDMQf4E1fRMZEwin2b+uJSqgc++yOMsJz abu4TnoHU9E2PIN4+l9hab+pVNKwoDuMrcs3l5R7Pm4h1qTg9rk4SqcSQclBcxaDd5gX mx/PcyxDFLOlo1M1rNRp6kSZ3fD4XULhuhs45m+DeRYA/MRq54/sGQHZNhcthSCM5vvR oF4PkJlpL32v/q9QDT06T8Fbtvpv8sR6kEGpNkEDb2B4pFrZd4kCn3u/ZJoyYAny9lIt rOi/uq53k9unPIGt5N/zpXJz97eQhOaVxKuIQO5+CjieXu4RZhUUJtk2s0qrBya5UhDc F9Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=5CMEthdiIfkclr3TTuMp0s9GIA2qa1FQiAoY820EjG8=; fh=RzYPKWcexxuvMv1XjAFIh37QX/xpM3ArGNN15Do5bms=; b=wpNgBErQDSJq3ptE59I2c3TFv4yvylIgJ/NrR8L2HYo2dPjr0onkc6/t7rUe4wklW9 J5OPNxLYXuX6Ywydjtc8YQx0r0sSXqb/yPyI3uLGyBhJUh4u04uVj+peZDN9dxuBGTy/ ktrgP3tjEE9+26guE/g3j9ig17MSH15DCIj926gqLeK5Hwb6EoLsrED8BxaQ8lsjDEJC 3iGzU9IFU1m4f3xrVrfpAVfKcQIPlLHqpkp3DrGuoC6Q1lnFcN1APCDFGwzMI6+T7Tog DDCSSnXLRLvRX4yxGGCE6lTkof3O26PTWRojYjuZTiBvfsV2ETOsQZMzajhBqSQ9bwte UwLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=rPAK5d6z; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nn7eTDEs; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com X-Forwarded-Encrypted: i=1; AJvYcCXGx/HFFjSlFwrlidwWilnLXo12ETBVR345osZKi81XxMJtml1XRP5TD6nv4b8avr4EkqstYX6oRMZ+uUnfps1JFgQFFA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c19-20020a63da13000000b005d8e3a180cbsi1961803pgh.841.2024.02.02.10.23.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 10:23:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=rPAK5d6z; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Nn7eTDEs; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50308-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 36072290EF1 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 18:22:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02C82150993; Fri, 2 Feb 2024 18:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="rPAK5d6z"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Nn7eTDEs" Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 E22C414D447; Fri, 2 Feb 2024 18:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706898118; cv=none; b=fQe2ZK5vJj1AymDPTvm/nPZD1vqSj0TkmJDaOcEIMFL5thIQzVXIYMr/uM2fg4m9rf8yTHrBEAsdYfDnyNMU6UfvbOJZgaWxj2bAVY0IAPNeVEfiBlWDetbv8brPXmc8k5ibJ2nofC1Qxw8Wya+RGMkc6u/hlU09AuYF/baUcD0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706898118; c=relaxed/simple; bh=G7pEwmE2rBW0Y6l+YNkudDnlODmTUfzEzQVNoJ8fF9c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=n0bMJJlurBav+/iscBjfq9b5QDZER6XwAm2hDm6jU4ZWED56UYfsgKuYW2ZUEbJzg6MK2Nw6Xuw2sQhOwOAinGPyFk4eBfXUP4qJPJS+Vk1F5QE/syy6Ln7h+NGynwLhEKrQ7w7hCFkhIBm3gzOvPHfrV7qsaAJUlLk/+/qwenU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=rPAK5d6z; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Nn7eTDEs; arc=none smtp.client-ip=64.147.123.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 4B4583200AF4; Fri, 2 Feb 2024 13:21:55 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 02 Feb 2024 13:21:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1706898114; x=1706984514; bh=5CMEthdiIfkclr3TTuMp0s9GIA2qa1FQiAoY820EjG8=; b= rPAK5d6zq4uoNfX8tRxazchKVNcHaje4l0KNYEijXEdzUsimsq3cZNERaGeaMH/g FIyvsr45/vHzspx5cK485TewE5M02LNkUUDv/oq9asrrfaR4vsktV8s6izL4UROR KoIiQYLk/cn0/jE/hftPAqrJ1ytINVxorkV3/+PqxR250hhMPxraetC06ndlBYL9 Cs2NIOuM8CndQtj1BQIcjBVjUHg0/YvRsEIvlTi3+lCASc/OuVy8geW8wfZEDUIh 7DiFbOAbYVNCzpZ7ItEmhZu2Q0x3TnjfK0ENY+pkRP4dl1p2Pa9WakcV3HS5lZRF ZK4gRgAWDInSCTNl2YrStg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706898114; x= 1706984514; bh=5CMEthdiIfkclr3TTuMp0s9GIA2qa1FQiAoY820EjG8=; b=N n7eTDEskqTJPNfy9iMMA8jaefWuj/aC4vGh1OFPl16GSsunPNH73jk4VXZd8+DLx 2XKmEj2leFK9yCNSuUr7V7NtLbqxAOIzFov/SSqDaEiY/rTlD2X0PqpsUo/SJ7dc YPdeJnnbJk/vfih83Z/r8wMOhxoEyVA1ZpLsOJxGrkO64ulgub40SeetNiKbNOsl wbgrJa+R0EAp2NBRnR8gqFvXBaO149ZI2latqFm3rVC0xwOp6XauMFXByhslQwGf Y63iOCDlaVuh3q3NmSUA8BIuO7XlDLdHyhP6pCw9JEq8MSAOhMifM21e1IEZyq6s tUn/VldX1/z7zwHN7sG6Q== X-ME-Sender: <xms:wjK9ZVFiirlvdz8n3CMNGMIT5TC_KqawL6gud-zhrOXh-jftA5kofA> <xme:wjK9ZaW-4nxjLsOBnxhR9_jNJf7Md8fILMSP6aH-Dq0wMPhS7KHdaIW3F1BCoGnGg hzfjjVGq7OVk7n8nnQ> X-ME-Received: <xmr:wjK9ZXLCT7FSND8JEWRqcqCHYtRIbD0x2i_zs9S6L3OUmWXy_T1SPg-PACXNW7DlQQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedugedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhi rgiguhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqe enucggtffrrghtthgvrhhnpefgleegfeekgeeggeeifeethfejjefhuddvleelheetveek tdehgeeghefhffegteenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhirgiguhhnrdihrghn ghesfhhlhihgohgrthdrtghomh X-ME-Proxy: <xmx:wjK9ZbGio4khyBSqbJTWInAgp6WGrsxWDi5P1XYM0j7HYV3R8NWRyw> <xmx:wjK9ZbUPR1RH_AfErwn9HzyBpu2XwJmkbNq0KMSFoOqtHTsg45G9HQ> <xmx:wjK9ZWPqIKzTdnsqbJ0ClFI-o4x-u7zvbLzCpgde7wOR1YfJf9nY3Q> <xmx:wjK9ZSE8PbDeoYb-c7jsobtxqKwJtm3eSuJwOtI6rtNVyMTZwrhjAw> Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Feb 2024 13:21:53 -0500 (EST) From: Jiaxun Yang <jiaxun.yang@flygoat.com> Date: Fri, 02 Feb 2024 18:21:40 +0000 Subject: [PATCH 1/8] MIPS: Probe toolchain support of -msym32 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240202-llvm-msym32-v1-1-52f0631057d6@flygoat.com> References: <20240202-llvm-msym32-v1-0-52f0631057d6@flygoat.com> In-Reply-To: <20240202-llvm-msym32-v1-0-52f0631057d6@flygoat.com> To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Bill Wendling <morbo@google.com>, Justin Stitt <justinstitt@google.com> Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Jiaxun Yang <jiaxun.yang@flygoat.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=753; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=G7pEwmE2rBW0Y6l+YNkudDnlODmTUfzEzQVNoJ8fF9c=; b=owGbwMvMwCXmXMhTe71c8zDjabUkhtS9RrsNmDc1yE7SXiVesZxhCmt20av+NeUXthrxHjZcN /+9vqpFRwkLgxgXg6yYIkuIgFLfhsaLC64/yPoDM4eVCWQIAxenAEyE8ycjw3O32RMmsbVfTb5w YmXt838fOa5zb1xxRdlUfKW72wHnLfMZflxrcFzIkqgYr8a0PvDEvDWyu2zzfyg8Fbp3WnJtN58 nHwA= X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789812523604916681 X-GMAIL-MSGID: 1789812523604916681 |
Series |
MIPS: Aggregate build fixes
|
|
Commit Message
Jiaxun Yang
Feb. 2, 2024, 6:21 p.m. UTC
msym32 is not supported by LLVM toolchain.
Workaround by probe toolchain support of msym32 for KBUILD_SYM32
feature.
Link: https://github.com/ClangBuiltLinux/linux/issues/1544
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
arch/mips/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index f49807e1f19b..0888074f4dfe 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -299,7 +299,7 @@ drivers-$(CONFIG_PCI) += arch/mips/pci/ ifdef CONFIG_64BIT ifndef KBUILD_SYM32 ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0) - KBUILD_SYM32 = y + KBUILD_SYM32 = $(call cc-option-yn, -msym32) endif endif