Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp321415pxt; Wed, 11 Aug 2021 22:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfGUB802oXQrXnRHx80t1Pa5z3JmBEc6KEW5rk801CWsD8LAo6o9rUPDWaxgEr6ZaKfeU9 X-Received: by 2002:a50:c092:: with SMTP id k18mr3239836edf.361.1628746166427; Wed, 11 Aug 2021 22:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628746166; cv=none; d=google.com; s=arc-20160816; b=tb1hwDtHlBUc59Nqm4+bNXeum8AASAxe6ewbsVKzEoeDYijwXkkBLDnPjgTNr0zF4O IFjK7mk7Od4yEpJzSsSjoBWE1b/oIu6ZhwRjR7d+Cs1vgDk6yylQk9r8WnpitOPWOrZ6 tl9/feWRhpdQBuFgeFgZyLFXvzgZ3gya7E3mjSqHo6EJyv9nyPgJx7Ikcht4z/2xrtZe ATufN2S9ggnQj3jaqvdmCzWUXtpWDian92r1da2yxfVdgjyAqsBfptcROrvqQ2sygxCo KtO2rKcbeQr4XtzBfoTmf1QB7KEcrXiiNI5jFM89NtfhjClBARQnCv3G4YnECy/PFoDc nPPg== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=qatbrqDegqmZ0+XHzQ+4gx0yhVxDkAp+fv5tGls4q3I=; b=FZpyFLQ3edVdeFEQHBzhopeDAoFkLwZeM2fBP1pLU8+i3PLm4k7B1N9pGAy56y5G93 MuCI06zWYWVCEBcOmu3CDmtzUEN6oFoORJbbfTgOOzBqlucpPGkGFR61vu6K6n6++R2J sTKMUBPhwqW35FyGfiyPEzvIoc+/6EFdcFKKA3P+ey8Qa8vvT+CL84vobs+HWKAKSmLl lMymghGrTI2G7+h89eU4fbPZapGnEVf6uFxupOTz4r8QIziWp3sHc4Ijf2xUfWWEWC19 udmM9IYG67rNvYEMNrScbfUA8/F8NAv0Oh1GJMcCTIZdgCEiHrdUgY+nKqHzTdVb6iPO 8m1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=aimghCwh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si1584916edo.454.2021.08.11.22.29.01; Wed, 11 Aug 2021 22:29:26 -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=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=aimghCwh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234276AbhHLFXt (ORCPT + 99 others); Thu, 12 Aug 2021 01:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233763AbhHLFXt (ORCPT ); Thu, 12 Aug 2021 01:23:49 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74F08C061765 for ; Wed, 11 Aug 2021 22:23:24 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id fa24-20020a17090af0d8b0290178bfa69d97so8948717pjb.0 for ; Wed, 11 Aug 2021 22:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=qatbrqDegqmZ0+XHzQ+4gx0yhVxDkAp+fv5tGls4q3I=; b=aimghCwh9vSL4Px6zMdUVf3mo1lXg/6Gd8Vw/3AKWsade5m36h3rThJDbDzsTIQbrV NXjzGIJB/YohR2b4TjkNOlnPcvm+wPdfaV5G09FPfhDJ/Os7Tc9co90VBQRNulvXA/va DmqKWzOPNY5uhMd/+8EuhISnJKpdPv433h8wzN95n06mxtO+R9QNPJeqMUe+e0aJpTnf sK+FSkBwpB5aLmot0IA8RbDWBdEAau2/S0PPUneUn2O2HO2hvAPamZlGWvy6JLy4eS5K iq4ARlrI7+5rfK3UJFIv5F3rFiPsoc4o4qUYO3/Y79opEdtoan+6yCb+WHURdelH0hp/ G15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=qatbrqDegqmZ0+XHzQ+4gx0yhVxDkAp+fv5tGls4q3I=; b=JDJ5Y1g+Z/bz+yOQnOBpTN0peUI9OAftyef0XEqbAGY6kG6/vbXNzJNNGiI98b8d0o ZKS3RdS/Du1Z0CEgYvBec8i7glHg037SPBNgeFRDoiAsX9SSiXJ/3ySzh4iq0fVlBkcC hoThO3DQPq3eRtGDQ77hmJO03uHvviKk1QI3eh3BEq6lSzOpJTiCmCX8n7QF4rbFLahK qi/owbPRiCKgN9iKIo3ekUIdWsBjiZRHku0mUSLPSfiFFbtRZ1PmGWuP1rMfBAM5ilIX KQ6ChNDj7kPjB2nFRuDINj6ZBOdyxxLyDChKhERpP/ff/9pXQwNukCVW5uHLv6Nw0n3Y OeSg== X-Gm-Message-State: AOAM532SaSTqd+20LhFqMKp1gE+yj0GJFU3B7bB8FKm98cDAp1f7Vldt kExJ7Bsssxyz2fjya1fcY6lwbA== X-Received: by 2002:aa7:800e:0:b029:3a9:e527:c13 with SMTP id j14-20020aa7800e0000b02903a9e5270c13mr2417512pfi.42.1628745803836; Wed, 11 Aug 2021 22:23:23 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id y9sm1631753pgr.10.2021.08.11.22.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 22:23:23 -0700 (PDT) Date: Wed, 11 Aug 2021 22:23:23 -0700 (PDT) X-Google-Original-Date: Wed, 11 Aug 2021 18:42:22 PDT (-0700) Subject: Re: [PATCH] riscv: kexec: do not add '-mno-relax' flag if compiler doesn't support it In-Reply-To: <20210722021715.127066-1-changbin.du@gmail.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, changbin.du@gmail.com From: Palmer Dabbelt To: changbin.du@gmail.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jul 2021 19:17:15 PDT (-0700), changbin.du@gmail.com wrote: > 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. I would not trust GCC 7 on RISC-V, that was a long time ago and there's been a lot fixed since then. > > 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 This is on fixes. Thanks!