Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp178066pxv; Wed, 21 Jul 2021 19:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDnnL9E/5I/CM1MeVstpVRC+iGPgH71I+nF75WQKM/IX4AwR3jJzL5yvxiVNu28tnJ1NB/ X-Received: by 2002:a05:6402:1347:: with SMTP id y7mr52166315edw.87.1626920392891; Wed, 21 Jul 2021 19:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626920392; cv=none; d=google.com; s=arc-20160816; b=uZ+9ptu1qL4c85L+l8n0XaXwJJDlrpOphmotEJwcYGOYhbZ4NlrNXy3UMCHhc5axQe dlxl+Gfo3mAykTOm2ktCAkX9AQe7I+9P2upO0I4RtVd0sFZbYskDc9SxEfhvpOm4LOmx C5sLd34Wy7ePTwmUyc9k7dhUYk36o/MW6l0mqTIVehOAD4ZslXtS6b19q/bfAREBk0Qm KGj/GmBQIc/puEgPZlXtAOda/KKBM92ZOcVPA3oGf62nHvT+wql/+xsZ5p1d4OL8v40U InEgws2lAk3Or5CUlS0u4fVmorgBuCHm05NMwO8VcCI+TRD2PjbTkiMJWCPE2uUQef3x NV8w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=07mq1tbTyL2EUpcAXYfDuJ/atzwMHIawr2ISlNOgil0=; b=M/RR20LwluWbeaoTUkA5EYVm2p5ANpgQrQq7v9Y+gE1RCaiYUt1zRILpu34KabbXC+ rXSgu02/vHzOivFPQkfMNDbQJtX6YcoTe67+KDDFVpfF+dVlHGDXLCFrTDO7fViI28yF 62MsjqTxmlN179JKk+lPz4mlQmTSbrYfljeGouzItpKfBuk8RMmPaDcyd8syZX6ILwjl c6FeHVTr8g54zlpwC2eAHZ+AO1JcDv+OcC5wk99BT/5YX5Rn28k5fBaAvAsP81YuV7nV dmlew6O/9hvBEs/LEpSOHzIUSSuKiyToGbGugPSlCiTetJdG/VLgyDFFogsIRpC3+c5/ GpMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fll3GwPr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si4931915edj.380.2021.07.21.19.19.28; Wed, 21 Jul 2021 19:19:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=fll3GwPr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhGVBgq (ORCPT + 99 others); Wed, 21 Jul 2021 21:36:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbhGVBgq (ORCPT ); Wed, 21 Jul 2021 21:36:46 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0036CC061575 for ; Wed, 21 Jul 2021 19:17:21 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id bt15so4083300pjb.2 for ; Wed, 21 Jul 2021 19:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=07mq1tbTyL2EUpcAXYfDuJ/atzwMHIawr2ISlNOgil0=; b=fll3GwPr5G609VlObfTF3PBHdPewGkU5Y7oNH+VWKn/lzjN7EbWyM3Uf3+iyN2r4gj hgHYCiBbMCoZZOoPs2FhLDGRR1sJH7epGaZDjalcFdw8uqCd3g+/fe7sgf1+HB/1UYVB eHF6m8xxUGRHfhZW5GmOClGyh2JMJCnEbWSVP5qTnYQtQovVSTCUltkfNWHmkc7KHz6N rH+/xfr/inpgCniZt5DeTeNCKFrkWB9gJ1+G9A49LL/e4/OqqI38/ZMIXosYJGY2G4TL xiRDr87bZqYXe9b33xjiZcxRBgTspxxcsFZI2CJsPIs30D0FLfNW8I9mJ1u2pPjsZF+c L/xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=07mq1tbTyL2EUpcAXYfDuJ/atzwMHIawr2ISlNOgil0=; b=AlmVhIrCpFs/dj+JVYzSpI+bzkevd2qJc6lcM8J53USRv6M47ym/i/qhVWgI3cWSYO eJQznPLQ1DqWpls2kTMSArImXz9mlEt/fqRiSKVntOYSrrVluP1vvpqjAx3RbTqmXF8n icRFxcW4uIklau8xT8JpE9i5g7keN09+/nXPTiSN6FBusH6BmdfABcKDVOiLrzfXKw+p imuQ+LqM6hWPyqMzdcccwwNHr6ih9vOkdXzdSNDbNjX4u5Kmb1mjLl3B/GWdkMHT6k7n iGq1rR2iO8R8LQmYHrNVt5hdAQl1Q1bAAhuX6srpuyniGhWA/VO0a1ItPclLucLrmr7w ZE0g== X-Gm-Message-State: AOAM531Cdh4sdXxcfQ4igfpWyNmV3Prtk4eeQtQRZsvKl+o543QnGr95 //vo8T+5wnGr9g0ODLwHzPQ= X-Received: by 2002:a62:be18:0:b029:318:df2e:c17c with SMTP id l24-20020a62be180000b0290318df2ec17cmr40104107pff.30.1626920241309; Wed, 21 Jul 2021 19:17:21 -0700 (PDT) Received: from vultr.guest ([141.164.41.4]) by smtp.gmail.com with ESMTPSA id b3sm1245448pju.47.2021.07.21.19.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 19:17:20 -0700 (PDT) From: Changbin Du To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH] riscv: kexec: do not add '-mno-relax' flag if compiler doesn't support it Date: Thu, 22 Jul 2021 10:17:15 +0800 Message-Id: <20210722021715.127066-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RISC-V special option '-mno-relax' which to disable linker relaxations is supported by GCC8+. For GCC7 and lower versions do not support this option. Fixes: fba8a8674f ("RISC-V: Add kexec support") Signed-off-by: Changbin Du --- arch/riscv/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index d3081e4d9600..3397ddac1a30 100644 --- a/arch/riscv/kernel/Makefile +++ b/arch/riscv/kernel/Makefile @@ -11,7 +11,7 @@ endif CFLAGS_syscall_table.o += $(call cc-option,-Wno-override-init,) ifdef CONFIG_KEXEC -AFLAGS_kexec_relocate.o := -mcmodel=medany -mno-relax +AFLAGS_kexec_relocate.o := -mcmodel=medany $(call cc-option,-mno-relax) endif extra-y += head.o -- 2.26.2