From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F3CEC433E2 for ; Mon, 7 Sep 2020 17:48:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBF08208C7 for ; Mon, 7 Sep 2020 17:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599500925; bh=dDKYDabIhNqj67RmZ64czee8AVbD6PMYzyd1HopAsSo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=CNSVmhw3AKLi/BkxAo4XSP/kOOPEy2B3hUjX8CaVJrgTgLOO4NEed3O1Oh7apuygD 2UO8bhei8eJw5bFWcnkG10g7La3xjVvbTeqSyG9nFj+Da9zXjDUWY29l4e6FCZ5q/F uC7/vSz225iNZ0Dfd1mTxgQ/b51+rGnHFTnxJ0Pw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729189AbgIGMrG (ORCPT ); Mon, 7 Sep 2020 08:47:06 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:64028 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729177AbgIGMqP (ORCPT ); Mon, 7 Sep 2020 08:46:15 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 087Cj10Q009377; Mon, 7 Sep 2020 21:45:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 087Cj10Q009377 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1599482701; bh=RgU8Sugxv4ASLW8GV3q9CaX17ZgN4c86hz8zqyhRkp4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KVLYrEKbu/VsRaCsN/TUIiCzxx76mAPNv3QUQxZReLYX0HRiqwHlLbpz0U9iuXkEJ fdtVDe5npq/lH8vsOIWBs8cxOAB6A3j6s+8o2bjKoHXejS0thSUaCwcUJWRJkDIWXJ 1HrAk/bV61kGxnfNgs0tH51KMDCIU4oAvEvL4T45VEZl83E3G36oR9Q4evY43FRl7+ gi8lPgxloRX47Nsu+MheWnDMICBemBYBdR1Hgv0gyT/4N/4rcoFQkIut4ynccP4avk //yvarxiA1PyAS9sR+j3Ro4Qc+0uh3V0EGBrgBXYf0tE4LO4pjV5noyi8ugrio4nXC rFdv9oV6ZtPlg== X-Nifty-SrcIP: [209.85.214.175] Received: by mail-pl1-f175.google.com with SMTP id c3so4176578plz.5; Mon, 07 Sep 2020 05:45:01 -0700 (PDT) X-Gm-Message-State: AOAM533qzY2ZbgoPPTeX3aWuLds+ycrmgvYduNPcuWvNlnPsJurSIg74 1zbw0tfp8YK91yuIaZMghmcEcKdBRX8jwoCUdjk= X-Google-Smtp-Source: ABdhPJw4UtF57UzI82pGuTgn7u0AI78jQLYV5p6rNVTR2t5OI2bMang+cdl+Y4cuAkIyNjGnFlsZKuD7wiB/ej4TtDg= X-Received: by 2002:a17:902:e901:: with SMTP id k1mr19763109pld.189.1599482700443; Mon, 07 Sep 2020 05:45:00 -0700 (PDT) MIME-Version: 1.0 References: <20200831182239.480317-1-masahiroy@kernel.org> In-Reply-To: <20200831182239.480317-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Mon, 7 Sep 2020 21:44:23 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arch: vdso: add vdso linker script to 'targets' instead of extra-y To: Linux Kbuild mailing list Cc: Benjamin Herrenschmidt , Catalin Marinas , Christian Borntraeger , Greentime Hu , Heiko Carstens , Michael Ellerman , Nick Hu , Paul Mackerras , Vasily Gorbik , Vincent Chen , Will Deacon , linux-arm-kernel , Linux Kernel Mailing List , linux-s390 , linuxppc-dev Content-Type: text/plain; charset="UTF-8" Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org On Tue, Sep 1, 2020 at 3:23 AM Masahiro Yamada wrote: > > The vdso linker script is preprocessed on demand. > Adding it to 'targets' is enough to include the .cmd file. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > arch/arm64/kernel/vdso/Makefile | 2 +- > arch/arm64/kernel/vdso32/Makefile | 2 +- > arch/nds32/kernel/vdso/Makefile | 2 +- > arch/powerpc/kernel/vdso32/Makefile | 2 +- > arch/powerpc/kernel/vdso64/Makefile | 2 +- > arch/s390/kernel/vdso64/Makefile | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile > index 45d5cfe46429..7cd8aafbe96e 100644 > --- a/arch/arm64/kernel/vdso/Makefile > +++ b/arch/arm64/kernel/vdso/Makefile > @@ -54,7 +54,7 @@ endif > GCOV_PROFILE := n > > obj-y += vdso.o > -extra-y += vdso.lds > +targets += vdso.lds > CPPFLAGS_vdso.lds += -P -C -U$(ARCH) > > # Force dependency (incbin is bad) > diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile > index d6adb4677c25..572475b7b7ed 100644 > --- a/arch/arm64/kernel/vdso32/Makefile > +++ b/arch/arm64/kernel/vdso32/Makefile > @@ -155,7 +155,7 @@ asm-obj-vdso := $(addprefix $(obj)/, $(asm-obj-vdso)) > obj-vdso := $(c-obj-vdso) $(c-obj-vdso-gettimeofday) $(asm-obj-vdso) > > obj-y += vdso.o > -extra-y += vdso.lds > +targets += vdso.lds > CPPFLAGS_vdso.lds += -P -C -U$(ARCH) > > # Force dependency (vdso.s includes vdso.so through incbin) > diff --git a/arch/nds32/kernel/vdso/Makefile b/arch/nds32/kernel/vdso/Makefile > index 7c3c1ccb196e..55df25ef0057 100644 > --- a/arch/nds32/kernel/vdso/Makefile > +++ b/arch/nds32/kernel/vdso/Makefile > @@ -20,7 +20,7 @@ GCOV_PROFILE := n > > > obj-y += vdso.o > -extra-y += vdso.lds > +targets += vdso.lds > CPPFLAGS_vdso.lds += -P -C -U$(ARCH) > > # Force dependency > diff --git a/arch/powerpc/kernel/vdso32/Makefile b/arch/powerpc/kernel/vdso32/Makefile > index 87ab1152d5ce..fd5072a4c73c 100644 > --- a/arch/powerpc/kernel/vdso32/Makefile > +++ b/arch/powerpc/kernel/vdso32/Makefile > @@ -29,7 +29,7 @@ ccflags-y := -shared -fno-common -fno-builtin -nostdlib \ > asflags-y := -D__VDSO32__ -s > > obj-y += vdso32_wrapper.o > -extra-y += vdso32.lds > +targets += vdso32.lds > CPPFLAGS_vdso32.lds += -P -C -Upowerpc > > # Force dependency (incbin is bad) > diff --git a/arch/powerpc/kernel/vdso64/Makefile b/arch/powerpc/kernel/vdso64/Makefile > index 38c317f25141..c737b3ea3207 100644 > --- a/arch/powerpc/kernel/vdso64/Makefile > +++ b/arch/powerpc/kernel/vdso64/Makefile > @@ -17,7 +17,7 @@ ccflags-y := -shared -fno-common -fno-builtin -nostdlib \ > asflags-y := -D__VDSO64__ -s > > obj-y += vdso64_wrapper.o > -extra-y += vdso64.lds > +targets += vdso64.lds > CPPFLAGS_vdso64.lds += -P -C -U$(ARCH) > > # Force dependency (incbin is bad) > diff --git a/arch/s390/kernel/vdso64/Makefile b/arch/s390/kernel/vdso64/Makefile > index 4a66a1cb919b..d0d406cfffa9 100644 > --- a/arch/s390/kernel/vdso64/Makefile > +++ b/arch/s390/kernel/vdso64/Makefile > @@ -25,7 +25,7 @@ $(targets:%=$(obj)/%.dbg): KBUILD_CFLAGS = $(KBUILD_CFLAGS_64) > $(targets:%=$(obj)/%.dbg): KBUILD_AFLAGS = $(KBUILD_AFLAGS_64) > > obj-y += vdso64_wrapper.o > -extra-y += vdso64.lds > +targets += vdso64.lds > CPPFLAGS_vdso64.lds += -P -C -U$(ARCH) > > # Disable gcov profiling, ubsan and kasan for VDSO code > -- > 2.25.1 > -- Best Regards Masahiro Yamada