Re: [PATCH] x86/mm: Fix RESERVE_BRK() for older binutils

From: Josh Poimboeuf
Date: Wed Jun 08 2022 - 18:57:41 EST


On Thu, Jun 09, 2022 at 01:12:09AM +0300, Joe Damato wrote:
> I applied the patch on top of commit 58f9d52ff689 ("Merge tag
> 'net-5.19-rc1' of
> git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net") and the kernel
> now builds successfully for me.
>
> The resulting kernel boots fine on the machine, as well.
>
> Tested-by: Joe Damato <jdamato@xxxxxxxxxx>

Thanks. Unfortunately, the LLVM linker doesn't like the patch...

>> ld.lld: warning: section type mismatch for .brk_reservation
>>> arch/x86/built-in.a(kernel/setup.o):(.brk_reservation): SHT_PROGBITS
>>> output section .brk: SHT_NOBITS
--
>> ld.lld: warning: section type mismatch for .brk_reservation
>>> arch/x86/built-in.a(mm/init.o):(.brk_reservation): SHT_PROGBITS
>>> output section .brk: SHT_NOBITS
>> ld.lld: warning: section type mismatch for .brk_reservation
>>> arch/x86/built-in.a(kernel/setup.o):(.brk_reservation): SHT_PROGBITS
>>> output section .brk: SHT_NOBITS
--
>> ld.lld: warning: section type mismatch for .brk_reservation
>>> arch/x86/built-in.a(mm/init.o):(.brk_reservation): SHT_PROGBITS
>>> output section .brk: SHT_NOBITS

--
Josh