Re: [PATCH] x86/tools/relocs: Add _etext and __end_of_kernel_reserve to S_REL

Arvind Sankar
2020-01-10T20:50:33Z

On Fri, Jan 10, 2020 at 09:38:28PM +0100, Borislav Petkov wrote:
> On Fri, Jan 10, 2020 at 03:23:49PM -0500, Arvind Sankar wrote:
> > Pre-2.23 binutils makes symbols defined outside sections absolute, so
> > these two symbols break the build on old linkers.
>
> -ENOTENOUGHINFO
>
> Which old linkers, how exactly do they break the build, etc etc?
>
> Please give exact reproduction steps.
>
> Thx.
>

binutils-2.21 and -2.22. An x86-64 defconfig will fail with
Invalid absolute R_X86_64_32S relocation: _etext
and after fixing that one, with
Invalid absolute R_X86_64_32S relocation: __end_of_kernel_reserve

Similar errors with 32-bit defconfig.

Should I resend with that added to the commit message?