Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: Nathan Chancellor <nathan@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Nick Desaulniers <ndesaulniers@google.com>,
	list@opendingux.net, linux-mips@vger.kernel.org,
	linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH 1/3] MIPS: boot/compressed: Disable abicalls
Date: Tue, 14 Dec 2021 19:09:06 +0000	[thread overview]
Message-ID: <67D44R.5C6XHAZPCYVU3@crapouillou.net> (raw)
In-Reply-To: <YbjdQfrC+EjeJjRV@archlinux-ax161>

Hi Nathan,

Le mar., déc. 14 2021 at 11:06:57 -0700, Nathan Chancellor 
<nathan@kernel.org> a écrit :
> On Mon, Dec 13, 2021 at 10:49:12PM +0000, Paul Cercueil wrote:
>>  Avoid complaints from Clang/LLVM by building the decompress program 
>> with
>>  -mno-abicalls.
> 
> What is the message?

ld.lld: warning: lto.tmp: linking abicalls code with non-abicalls code 
arch/mips/kernel/head.o

Cheers,
-Paul

> 
>>  Signed-off-by: Paul Cercueil <paul@crapouillou.net>
>>  ---
>>   arch/mips/boot/compressed/Makefile | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>> 
>>  diff --git a/arch/mips/boot/compressed/Makefile 
>> b/arch/mips/boot/compressed/Makefile
>>  index f27cf31b4140..4c9ecfbb0ef4 100644
>>  --- a/arch/mips/boot/compressed/Makefile
>>  +++ b/arch/mips/boot/compressed/Makefile
>>  @@ -27,10 +27,10 @@ ifdef CONFIG_CPU_LOONGSON64
>>   KBUILD_CFLAGS := $(filter-out -march=loongson3a, $(KBUILD_CFLAGS)) 
>> -march=mips64r2
>>   endif
>> 
>>  -KBUILD_CFLAGS := $(KBUILD_CFLAGS) -D__KERNEL__ -D__DISABLE_EXPORTS 
>> \
>>  +KBUILD_CFLAGS := $(KBUILD_CFLAGS) -mno-abicalls -D__KERNEL__ 
>> -D__DISABLE_EXPORTS \
>>   	-DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) 
>> -D"VMLINUX_LOAD_ADDRESS_ULL=$(VMLINUX_LOAD_ADDRESS)ull"
>> 
>>  -KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
>>  +KBUILD_AFLAGS := $(KBUILD_AFLAGS) -mno-abicalls -D__ASSEMBLY__ \
>>   	-DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) \
>>   	-DKERNEL_ENTRY=$(VMLINUX_ENTRY_ADDRESS)
>> 
>>  --
>>  2.33.0
>> 
>> 



  reply	other threads:[~2021-12-14 19:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13 22:49 [PATCH 0/3] MIPS: Add support for LTO Paul Cercueil
2021-12-13 22:49 ` [PATCH 1/3] MIPS: boot/compressed: Disable abicalls Paul Cercueil
2021-12-14 18:06   ` Nathan Chancellor
2021-12-14 19:09     ` Paul Cercueil [this message]
2021-12-14 19:38       ` Nick Desaulniers
2021-12-13 22:49 ` [PATCH 2/3] MIPS: boot/compressed: Build without LTO Paul Cercueil
2021-12-14 18:07   ` Nathan Chancellor
2021-12-14 19:43   ` Nick Desaulniers
2021-12-13 22:49 ` [PATCH 3/3] MIPS: Add support for LTO Paul Cercueil
2021-12-14 18:09   ` Nathan Chancellor
2021-12-14 19:45   ` Nick Desaulniers
2021-12-14 18:11 ` [PATCH 0/3] " Nathan Chancellor
2021-12-14 19:34 ` Nick Desaulniers

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=67D44R.5C6XHAZPCYVU3@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=list@opendingux.net \
    --cc=llvm@lists.linux.dev \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=tsbogend@alpha.franken.de \
    /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