public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Jessica Yu <jeyu@kernel•org>
To: Masahiro Yamada <masahiroy@kernel•org>
Cc: linux-ia64@vger•kernel.org, Paul Mackerras <paulus@samba•org>,
	linux-riscv@lists•infradead.org, Will Deacon <will@kernel•org>,
	Anton Ivanov <anton.ivanov@cambridgegreys•com>,
	linux-arch@vger•kernel.org, Richard Weinberger <richard@nod•at>,
	Russell King <linux@armlinux•org.uk>,
	Geert Uytterhoeven <geert@linux-m68k•org>,
	Catalin Marinas <catalin.marinas@arm•com>,
	Fenghua Yu <fenghua.yu@intel•com>,
	Albert Ou <aou@eecs•berkeley.edu>, Arnd Bergmann <arnd@arndb•de>,
	linux-kbuild@vger•kernel.org, Jeff Dike <jdike@addtoit•com>,
	linux-um@lists•infradead.org, linux-m68k@lists•linux-m68k.org,
	Michal Marek <michal.lkml@markovi•net>,
	Paul Walmsley <paul.walmsley@sifive•com>,
	linux-arm-kernel@lists•infradead.org,
	Tony Luck <tony.luck@intel•com>,
	linux-kernel@vger•kernel.org, Palmer Dabbelt <palmer@dabbelt•com>,
	linuxppc-dev@lists•ozlabs.org
Subject: Re: [PATCH v2] kbuild: preprocess module linker script
Date: Sat, 19 Sep 2020 12:26:01 +0200	[thread overview]
Message-ID: <20200919102601.GA22693@linux-8ccs> (raw)
In-Reply-To: <20200908042708.2511528-1-masahiroy@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 <asm/module.lds.h>.
>
>Signed-off-by: Masahiro Yamada <masahiroy@kernel•org>
>Tested-by: Jessica Yu <jeyu@kernel•org>
>Acked-by: Will Deacon <will@kernel•org>

Acked-by: Jessica Yu <jeyu@kernel•org>

Thanks for working on this! 


      parent reply	other threads:[~2020-09-19 10:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  4:27 [PATCH v2] kbuild: preprocess module linker script Masahiro Yamada
2020-09-08  6:59 ` Geert Uytterhoeven
2020-09-09  4:27 ` Palmer Dabbelt
2020-09-19 10:26 ` Jessica Yu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200919102601.GA22693@linux-8ccs \
    --to=jeyu@kernel$(echo .)org \
    --cc=anton.ivanov@cambridgegreys$(echo .)com \
    --cc=aou@eecs$(echo .)berkeley.edu \
    --cc=arnd@arndb$(echo .)de \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=fenghua.yu@intel$(echo .)com \
    --cc=geert@linux-m68k$(echo .)org \
    --cc=jdike@addtoit$(echo .)com \
    --cc=linux-arch@vger$(echo .)kernel.org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-ia64@vger$(echo .)kernel.org \
    --cc=linux-kbuild@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-m68k@lists$(echo .)linux-m68k.org \
    --cc=linux-riscv@lists$(echo .)infradead.org \
    --cc=linux-um@lists$(echo .)infradead.org \
    --cc=linux@armlinux$(echo .)org.uk \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=masahiroy@kernel$(echo .)org \
    --cc=michal.lkml@markovi$(echo .)net \
    --cc=palmer@dabbelt$(echo .)com \
    --cc=paul.walmsley@sifive$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=richard@nod$(echo .)at \
    --cc=tony.luck@intel$(echo .)com \
    --cc=will@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox