Re: Cannot build 5.2.0 with gold linker

From: Thomas Gleixner
Date: Mon Jul 08 2019 - 09:49:27 EST


On Mon, 8 Jul 2019, Liam Shepherd wrote:

> Hi,
>
> It results in this error:
>
> Invalid absolute R_X86_64_32S relocation: _etext
> make[2]: *** [arch/x86/boot/compressed/Makefile:130:
> arch/x86/boot/compressed/vmlinux.relocs] Error 1
> make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.relocs'
> make[2]: *** Waiting for unfinished jobs....
> CC arch/x86/boot/compressed/cpuflags.o
> make[1]: *** [arch/x86/boot/Makefile:112:
> arch/x86/boot/compressed/vmlinux] Error 2
> make: *** [arch/x86/Makefile:283: bzImage] Error 2
>
> This was introduced under this commit:
>
> 392bef709659abea614abfe53cf228e7a59876a4: x86/build: Move _etext to
> actual end of .text
>
> The commit was reverted on 5.18 by Greg...

Know issue and the fix is queued for mainline, but did not make it to 5.2
for an unrelated reason. Will show up soon and be backported.

Thanks,

tglx