Re: [tip:x86/urgent] x86/boot: Prevent KASLR and memmap collision

From: Dave Jiang
Date: Tue Dec 20 2016 - 13:24:20 EST




On 12/20/2016 01:31 AM, Ingo Molnar wrote:
>
> * tip-bot for Dave Jiang <tipbot@xxxxxxxxx> wrote:
>
>> Commit-ID: d1a5058c063d9e0aaaf4d360d0f8074ee55ed096
>> Gitweb: http://git.kernel.org/tip/d1a5058c063d9e0aaaf4d360d0f8074ee55ed096
>> Author: Dave Jiang <dave.jiang@xxxxxxxxx>
>> AuthorDate: Tue, 29 Nov 2016 12:26:40 -0700
>> Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>> CommitDate: Mon, 19 Dec 2016 12:27:52 +0100
>>
>> x86/boot: Prevent KASLR and memmap collision
>
> This commit breaks the 32-bit build (allyesconfig32 and allmodconfig32):
>
> ld: -r and -shared may not be used together
> scripts/Makefile.build:293: recipe for target 'arch/x86/boot/compressed/kaslr.o' failed
> make[2]: *** [arch/x86/boot/compressed/kaslr.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
>
> Thanks,
>
> Ingo
>

Looks like including lib/cmdline.c causes the issue. I'll need to find a
way around it.