Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1888482ybz; Thu, 23 Apr 2020 07:47:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKnKommDf7tUVNaCLe+30mwcCxIqP/orlxg6ioFSpefQjFqgIGevmZqZMPfnj8/Dx3BBrVO X-Received: by 2002:a50:d1c6:: with SMTP id i6mr2823363edg.241.1587653275861; Thu, 23 Apr 2020 07:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587653275; cv=none; d=google.com; s=arc-20160816; b=k3FqfxEydvDoT3W26FXHliYbSm9AxAaLea0QorBUfhobWWJqKiQBT80gJy4YnMSuV0 200bisXcVgV87b4bOMQczBT+MvIpCLA3g8tZs0IT5b+F9xa4zGXQFDKxV/w8rCD+bNtr 4tiXkHBJyeck6SDsi9YcWIuMrc3lgFiRv90DF4IT2LK+d3tUoAZAXdtEMO3EL2xHqq2q 0nb93f6d4NawsTWfS+O9fj/G8W8Se569eY2+4m7e7WKB/hkRv5leRCC5kdOcLsdZai3A /VJcLfBaPh+/XmlsJ216YJd9r7Jo/PPj0Sd0jgKqvRPskiIEXbjIbtb3pcOX8RlhdKjr hlFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=ZbrX8HgIq0QwRra2pCZbmne6rmEly6+QxtlCHSyKHGM=; b=ezoGb1MLdfpfL3cuEkIWaSDZ4kDTGDrjr+rCgoA7mTgZNbu/YzzIoGV+30vA6/hBAz YzVPxiM1rY5JjB65Jxph7PJV4G4DjRV1uApSVjh9IbLV4zVkjXg/nDA9a10JJ5QELFgW EQGqDXCZir5wPJUwbNH4ZqGrppDKO4+fRJb0ufljHQlEjIdfqWerjZB8IXuVIHIyu+54 PIODJRZo+0qAknqdRg5p4aef/ZRHc3w9ENRXg/XmjLB5QIpV4X/a9L8Hbzw85PHKOxqO SvV5RZPIVxzwBQx49JRjw++lsJj/jw2p71JwL7M9wyUdT3GJXnyW6TMpUmfTK83gOZwi L3sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=23X9GSV0; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si1239239edu.7.2020.04.23.07.47.31; Thu, 23 Apr 2020 07:47:55 -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=@nifty.com header.s=dec2015msa header.b=23X9GSV0; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728538AbgDWOmv (ORCPT + 99 others); Thu, 23 Apr 2020 10:42:51 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:35184 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726963AbgDWOmu (ORCPT ); Thu, 23 Apr 2020 10:42:50 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 03NEgXG8015496; Thu, 23 Apr 2020 23:42:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 03NEgXG8015496 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1587652954; bh=ZbrX8HgIq0QwRra2pCZbmne6rmEly6+QxtlCHSyKHGM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=23X9GSV0v29umhRrIZR0Xvdms/zTPnXPEHWQlfuP97fiFzR4OsLTLmVmJt7NdEK0u 2DUBkFskpTt1rY+FzwI9dsW12gQuftqeSP+oERyF/jQ8ULyRjEQABuArwRmCdpTUJ7 AYZwGGjBXZAPRti2Y94YcEeBHYVMh65eTHPw7gcqp/T6gE2+60xDA92iui/CCujRsK v1DfGsV9xBdZsiCsiFoSVHl/Ced1famCL+gCAvOLVxPqwxLijzOhFFFWzK7H16D97D ria/7IDQwuvqhytqVC1/rTEVHvVU+uuK3MFCQHhJi4btb9hAmLJvrgJP5f0BK/Y5RH wae1fmb2TH5UA== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id i5so5914326uaq.1; Thu, 23 Apr 2020 07:42:34 -0700 (PDT) X-Gm-Message-State: AGi0PuaqZiCtx0VNpVZ90km9DV4V2cc4KcRpKHnOXRbPNu3Q39sVICnj b8hf1dZIQ59GGCUtqkoSY9G4OMA+SntOLmeKyeo= X-Received: by 2002:a05:6102:240f:: with SMTP id j15mr3574415vsi.155.1587652953014; Thu, 23 Apr 2020 07:42:33 -0700 (PDT) MIME-Version: 1.0 References: <20200419180445.26722-1-natechancellor@gmail.com> <20200419202128.20571-1-natechancellor@gmail.com> <20200419202128.20571-2-natechancellor@gmail.com> <20200421024256.GA42179@ubuntu-s3-xlarge-x86> In-Reply-To: <20200421024256.GA42179@ubuntu-s3-xlarge-x86> From: Masahiro Yamada Date: Thu, 23 Apr 2020 23:41:56 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] MIPS: VDSO: Move disabling the VDSO logic to Kconfig To: Nathan Chancellor Cc: Sedat Dilek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Linux Kernel Mailing List , Clang-Built-Linux ML , Linux Kbuild mailing list , Nick Desaulniers , Sami Tolvanen , Dmitry Golovin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 11:43 AM Nathan Chancellor wrote: > > On Mon, Apr 20, 2020 at 11:53:55AM +0200, Sedat Dilek wrote: > > On Sun, Apr 19, 2020 at 10:21 PM Nathan Chancellor > > wrote: > > > > > > After commit 9553d16fa671 ("init/kconfig: Add LD_VERSION Kconfig"), we > > > have access to GNU ld's version at configuration time. As a result, we > > > can make it clearer under what configuration circumstances the MIPS VDSO > > > needs to be disabled. > > > > > > This is a prerequisite for getting rid of the MIPS VDSO binutils > > > warning and linking the VDSO when LD is ld.lld. Wrapping the call to > > > ld-ifversion with CONFIG_LD_IS_LLD does not work because the config > > > values are wiped away during 'make clean'. > > > > > > Signed-off-by: Nathan Chancellor > > > --- > > > > > > v1 -> v2: > > > > > > * New patch. > > > > > > arch/mips/Kconfig | 2 ++ > > > arch/mips/vdso/Kconfig | 18 ++++++++++++++++++ > > > arch/mips/vdso/Makefile | 30 ++---------------------------- > > > arch/mips/vdso/vdso.lds.S | 2 +- > > > 4 files changed, 23 insertions(+), 29 deletions(-) > > > create mode 100644 arch/mips/vdso/Kconfig > > > > > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > > > index 690718b3701a..45220e4b8a65 100644 > > > --- a/arch/mips/Kconfig > > > +++ b/arch/mips/Kconfig > > > @@ -3275,3 +3275,5 @@ endmenu > > > source "drivers/firmware/Kconfig" > > > > > > source "arch/mips/kvm/Kconfig" > > > + > > > +source "arch/mips/vdso/Kconfig" > > > diff --git a/arch/mips/vdso/Kconfig b/arch/mips/vdso/Kconfig > > ... > > > --- /dev/null > > > +++ b/arch/mips/vdso/Kconfig > > ... > > > +config MIPS_DISABLE_VDSO > > > + def_bool CPU_MICROMIPS || (!CPU_MIPSR6 && !MIPS_LD_CAN_LINK_VDSO) > > ... > > > diff --git a/arch/mips/vdso/vdso.lds.S b/arch/mips/vdso/vdso.lds.S > > ... > > > --- a/arch/mips/vdso/vdso.lds.S > > > +++ b/arch/mips/vdso/vdso.lds.S > > ... > > > -#ifndef DISABLE_MIPS_VDSO > > > +#ifndef CONFIG_DISABLE_MIPS_VDSO > > > > Should be s/CONFIG_DISABLE_MIPS_VDSO/CONFIG_MIPS_DISABLE_VDSO ? > > > > - Sedat - > > Ugh yes, thank you much for pointing it out. > > I'll send a v3 once I get further feedback on the series. I just wondered if we could raise the minimal binutils version from 2.23 to 2.25, but it might be too aggressive... I do not know. Other than what Sedat pointed out, this looks good me. -- Best Regards Masahiro Yamada