Message ID | 20210616152834.567533813@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp758489jae; Wed, 16 Jun 2021 08:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsNbCoSJ7hDbH6XAEwcPu9IOXSw+BXh72ZSplXeeJFzyhRCvPnI4sKyH2l727V+xa6VAzW X-Received: by 2002:a05:6602:2145:: with SMTP id y5mr50142ioy.46.1623857661585; Wed, 16 Jun 2021 08:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623857661; cv=none; d=google.com; s=arc-20160816; b=i/a2bdf5A7l5mKvzYWlBD8bBzICWQyIooFQ0SS8N2b81t1sFxPvsQP8Ck8ZER/mChc SnvWoMhn2k754o1BZog70aNB/o+5gyNSqlGTWszC/kxGFU79lr+F84yS2Sbbw8YVEuPQ gULAoFPwuVU4eV2Rgx6xvhWATH3oI768JOYUEglRy4BZJ/9iIW1VU6imsUqDy82PS4PI +2vF8BUlNVDUV8xnGBHzoBeYo5FV/9mItxn6RWIRN64t82UmxyjLxVM1TzZP4cI2/eJV XXCP4TPdn5ZsX54mm0hxZOOACyXubHoQq4baqVmmiN9tK7R3OhFFGyyThrSCzbuP3V+t c4bg== 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=NZi0nhwL8vcau73bIpoBjxnAK8ICTEc2YDzrzRVCLxE=; b=tpdmKsCWzSxXSxs3ugRbFkbYaOjOe2YbhbCKEasv3KW95OBxFkw6f7kCN3NNy4XL4W 8nmInr9sKR5xSL2vl5bHwsz8NUzhzMqn8A+fcNfSgluL5gNrhhxEUgJpsCbU2dLeUVQW 4J5YdEfU7X/jNio8L4Pzrq9NzsfqAFzKuF25Nb9Q6BVxoWbP3Dvw+l12NGr3P7CyqpQe G6wJwkGAnH5QMeshjv+R/djwzotjF8KwZk/dppMP+gD62Z1fFzHtQdUJsl7uVkMvqWfq GD76VH+8SbVpASidNIrcJKI+FRsEwbQkSpDItENJoYnmfA6VGJnu6Xnb9E+7g157kw5k 3nWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zKu2QUir; 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 d70si3174342iog.4.2021.06.16.08.34.21; Wed, 16 Jun 2021 08:34:21 -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=zKu2QUir; 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 S234640AbhFPPgZ (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Wed, 16 Jun 2021 11:36:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:49404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234662AbhFPPgY (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 16 Jun 2021 11:36:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A38C61076; Wed, 16 Jun 2021 15:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623857658; bh=JR1LwqcnZRsn5yGfC33MX1dYZ/aFmq2fPUHqT3SXwyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zKu2QUir34Xh1TStZ1qxHGis8w9QIFKQcRtSzQqXi9schfXdhfsp+eGbQuX1KOR70 J1aUcBkiPCYPcI8Zbh1UYPc0+2g+ELBTlpIHrlma7pocwC19QFFBOlsd44BvCxeRgj TuWiXv+GH2sWXm7H0cXW01d+FTM1r3XYyx7RfzKA= 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.4 13/28] riscv: Use -mno-relax when using lld linker Date: Wed, 16 Jun 2021 17:33:24 +0200 Message-Id: <20210616152834.567533813@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210616152834.149064097@linuxfoundation.org> References: <20210616152834.149064097@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 f5e914210245..1cbe0ad78b0f 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -34,6 +34,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