Message ID | 20210616152835.972230726@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp760550jae; Wed, 16 Jun 2021 08:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxju2295AoARl1Tkx0TPijy5dYpoinC53A7U4l4hUxSEVj9jUDmKnOAxh8xi7RfWYfpne/ X-Received: by 2002:a92:dac3:: with SMTP id o3mr185950ilq.290.1623857798282; Wed, 16 Jun 2021 08:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623857798; cv=none; d=google.com; s=arc-20160816; b=hL7A6IeJvovIhN7gIbwcMEV/OVzFZrHkK4ulEmjfBOkx99EvF/rLONmj4hmgaDURCI oEZ9zXYwb92jNuYOF77vf4USOBhwJhfZYg4vAKJMhPiyY2kYfEPIG7iDssNVkub9m8nz dPweiJYqEgCLLGuIL3xEcZPg0zWXs68He1vvlWpwWmDyswswbXQGc0MsjYLeI7nwVeuV zxmtm02JYW4GdK5LC5fB+DTcabx89oeMq42day1n11M0v+csRX0hgArwt9EfDp2UiTEt T6a+LOfal/tGi9h2eYAEXKbRNWDqaCeElSFR8wkJcDj6098GcNHWjqgjG3L5VVHr0Rn/ FKNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iIqF9wR+vUQNIUJ/PlwUNEVuith41zR3rtGnKnUgvAo=; b=Azesdow8jX/YrDLXJXI+pOK5rmc9pQqoXJGPQFtVLCAUPYMBtHGnje1/yakzMNLNzO Jv1UNIp3oHeNaD/+9CYEQmXfRS+cRBiHBejJtpUUxbfrlCYlknti4kKPhAziSIXWkjuy fG9M+ATEBnPLK49IlUHGsco6hOkIbcO15praFAFwZj4I+rzBD7MNyfuNHW8VZWXkMFH/ e2SJeewoEJZk1B4GPxbFAlpbrhAgXN8IoSFA2o7u9BCZEoW28Te0dF/uu2Cr7Oh16B0T XVmtULbBnzTPw3OaSLz0ZJLw9PlPwYKenF2pTJrtfMD1tNHRwErOxEf6QQUQU2lHgaLl BXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vrmKt/e/"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si2120616ila.126.2021.06.16.08.36.38; Wed, 16 Jun 2021 08:36:38 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vrmKt/e/"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234956AbhFPPim (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Wed, 16 Jun 2021 11:38:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:51110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234959AbhFPPhj (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 16 Jun 2021 11:37:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6348361375; Wed, 16 Jun 2021 15:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623857732; bh=b5BGenhf/Ak7a40yAaF7XyNoqm56O3ussUahGFJTdJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vrmKt/e/dCMvJqasAbZwAnMzewvhpSPbNhHIkd/OFMoJTGfDOyNHmlujnnzbil+Vc wgU/lVyRJTMeOivnHlYrZQwkbV4YLCO/WGU6/BaI6Rg1+f0yL+OnHRiXSQjtmjP2ui GTDrrZ8rJumINTh6GoO/YCk96OQ5qlBKv8g+jJe4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Khem Raj <raj.khem@gmail.com>, Nathan Chancellor <nathan@kernel.org>, Palmer Dabbelt <palmerdabbelt@google.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.10 18/38] riscv: Use -mno-relax when using lld linker Date: Wed, 16 Jun 2021 17:33:27 +0200 Message-Id: <20210616152835.972230726@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210616152835.407925718@linuxfoundation.org> References: <20210616152835.407925718@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 0289a97325d1..e241e0e85ac8 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -36,6 +36,15 @@ else KBUILD_LDFLAGS += -melf32lriscv endif +ifeq ($(CONFIG_LD_IS_LLD),y) + KBUILD_CFLAGS += -mno-relax + KBUILD_AFLAGS += -mno-relax +ifneq ($(LLVM_IAS),1) + KBUILD_CFLAGS += -Wa,-mno-relax + KBUILD_AFLAGS += -Wa,-mno-relax +endif +endif + # ISA string setting riscv-march-$(CONFIG_ARCH_RV32I) := rv32ima riscv-march-$(CONFIG_ARCH_RV64I) := rv64ima