mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: "A. Sverdlin" <alexander.sverdlin@siemens.com>,
	linuxppc-dev@lists.ozlabs.org
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Nicholas Piggin <npiggin@gmail.com>,
	linux-kernel@vger.kernel.org,
	Peter Marko <peter.marko@siemens.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] powerpc/Makefile: use $(objtree) for crtsavres.o
Date: Mon, 22 Sep 2025 15:08:26 +0200	[thread overview]
Message-ID: <2fa11e77-0844-4432-8514-0d1e1b2222c9@csgroup.eu> (raw)
In-Reply-To: <20250919121417.1601020-1-alexander.sverdlin@siemens.com>



Le 19/09/2025 à 14:14, A. Sverdlin a écrit :
> [Vous ne recevez pas souvent de courriers de alexander.sverdlin@siemens.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> 
> From: Alexander Sverdlin <alexander.sverdlin@siemens.com>
> 
> ... otherwise it could be problematic to build external modules:
> 
> make[2]: Entering directory '.../kernel-module-hello-world'
> |   CC [M]  hello-world.o
> |   MODPOST Module.symvers
> |   CC [M]  hello-world.mod.o
> |   CC [M]  .module-common.o
> |   LD [M]  hello-world.ko
> | powerpc-poky-linux-ld.bfd: cannot find arch/powerpc/lib/crtsavres.o: No such file or directory
> 
> Fixes: da3de6df33f5 ("[POWERPC] Fix -Os kernel builds with newer gcc versions")
> Cc: stable@vger.kernel.org
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>

This change is already done it seems, see 
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20250218-buildfix-extmod-powerpc-v2-1-1e78fcf12b56@efficios.com/

> ---
>   arch/powerpc/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
> index 9753fb87217c3..a58b1029592ce 100644
> --- a/arch/powerpc/Makefile
> +++ b/arch/powerpc/Makefile
> @@ -58,7 +58,7 @@ ifeq ($(CONFIG_PPC64)$(CONFIG_LD_IS_BFD),yy)
>   # There is a corresponding test in arch/powerpc/lib/Makefile
>   KBUILD_LDFLAGS_MODULE += --save-restore-funcs
>   else
> -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
> +KBUILD_LDFLAGS_MODULE += $(objtree)/arch/powerpc/lib/crtsavres.o
>   endif
> 
>   ifdef CONFIG_CPU_LITTLE_ENDIAN
> --
> 2.51.0
> 


  reply	other threads:[~2025-09-22 13:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-19 12:14 A. Sverdlin
2025-09-22 13:08 ` Christophe Leroy [this message]
2025-09-22 13:50   ` Sverdlin, Alexander

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=2fa11e77-0844-4432-8514-0d1e1b2222c9@csgroup.eu \
    --to=christophe.leroy@csgroup.eu \
    --cc=alexander.sverdlin@siemens.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=peter.marko@siemens.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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

all inboxes | Powered by JetHome®