Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1820668pxk; Sat, 19 Sep 2020 03:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHzL99T1/VyVVPX8oLbSCXiruTud1T3mLcyF1XIdGSHR5fCcQcdLhLfIMJsGaarp2GARoT X-Received: by 2002:aa7:da0f:: with SMTP id r15mr42091944eds.321.1600511267586; Sat, 19 Sep 2020 03:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600511267; cv=none; d=google.com; s=arc-20160816; b=ALAG9A5Fq2qfuWYcg0++epORyMBXqleZcgQxTFxqzSjmFHSYYLnjPIusD4OlkZBfKF tJx9GCHSaoSrUu+lbGJ4QO/a9R7Q4UkuGE2Ty2pokZ4lsPKPMmAijasRjcyqyeVTg00r 06cib9OO1/fuXl8B8eVQikBQVHab01uei57m6bGFAaWX5mZ4pgrVa4RZGn9sBEguodNq h3kDbFgOto56m6yU4E+hgikpWg/S0VsLGshXcBULpSiM1W6Ruetu73w0AvQa+PPA8y16 gzp5/BK0fOt1Q7xABKtEUtPiIbMI0DmPjV5+AcDpWmvNWqe9eia/ajODS5rWSmPkvLBk +mFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bdRdsWGxOfYV7/cvQrmfpVXIOgIgFCt4R472N3PT1oo=; b=Cxe6VQwRdU05cGiH+8RDAfc81rXrpPJoB6wl5nqFyN5ok0V6RkNekJoUIOKQDtBGhQ XdsBt125BPc0VBTIBPXZYk2YZQEEPjcuzX3Y29i3BzJnNyXDFibRAGsG5vv1mPNChfy/ M3qFCzD3h39B5qjWo0v4x7KLRUhpT5BDzqF6a7C7KqKjKPJvVb+0osWDD2jSbuIuYAdi Nlv9k2yqTIxoeqsvJ4b3jPp3FJt4uv2LR4SfKUGuwRHMK+8yWZQp/xuz5i50gWgg6a/s R5MeZ+grgrSz3+301uvoxTDODwPsg5Bbf2KAuAPZwDA1YmiGRngEeEDn8Q5S/fY04Sh6 wEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dhs4E9cC; 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 wq13si4048722ejb.722.2020.09.19.03.27.23; Sat, 19 Sep 2020 03:27:47 -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=@kernel.org header.s=default header.b=Dhs4E9cC; 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 S1726290AbgISK0P (ORCPT + 99 others); Sat, 19 Sep 2020 06:26:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:34152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgISK0P (ORCPT ); Sat, 19 Sep 2020 06:26:15 -0400 Received: from linux-8ccs (p57a236d4.dip0.t-ipconnect.de [87.162.54.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEFFF207FF; Sat, 19 Sep 2020 10:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600511174; bh=QS+/7ck8Ms+3NScVBhWMouEzmGA4XUAFNHh7y81UkaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dhs4E9cCPWR5U6/L6w+Ot0AP6OfHcv183sxqnUkXXz/AnXJDt0AXHHvcqCMVei5i6 GKnSZS2OKXzMu25vZ30nutYcHd1k1XhpuBjem46GWue0KNcO/LOyTnnK8hzbEj6OMj lh64cXJ94R44/ThRRJAbdzF0qE+FcmC0n0GycrxI= Date: Sat, 19 Sep 2020 12:26:01 +0200 From: Jessica Yu To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Will Deacon , Albert Ou , Anton Ivanov , Arnd Bergmann , Benjamin Herrenschmidt , Catalin Marinas , Fenghua Yu , Geert Uytterhoeven , Jeff Dike , Michael Ellerman , Michal Marek , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , Richard Weinberger , Russell King , Tony Luck , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-riscv@lists.infradead.org, linux-um@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2] kbuild: preprocess module linker script Message-ID: <20200919102601.GA22693@linux-8ccs> References: <20200908042708.2511528-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200908042708.2511528-1-masahiroy@kernel.org> X-OS: Linux linux-8ccs 4.12.14-lp150.12.61-default x86_64 User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Masahiro Yamada [08/09/20 13:27 +0900]: >There was a request to preprocess the module linker script like we >do for the vmlinux one. (https://lkml.org/lkml/2020/8/21/512) > >The difference between vmlinux.lds and module.lds is that the latter >is needed for external module builds, thus must be cleaned up by >'make mrproper' instead of 'make clean'. Also, it must be created >by 'make modules_prepare'. > >You cannot put it in arch/$(SRCARCH)/kernel/, which is cleaned up by >'make clean'. I moved arch/$(SRCARCH)/kernel/module.lds to >arch/$(SRCARCH)/include/asm/module.lds.h, which is included from >scripts/module.lds.S. > >scripts/module.lds is fine because 'make clean' keeps all the >build artifacts under scripts/. > >You can add arch-specific sections in . > >Signed-off-by: Masahiro Yamada >Tested-by: Jessica Yu >Acked-by: Will Deacon Acked-by: Jessica Yu Thanks for working on this!