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

From: Arvind Sankar
Date: Mon Jan 13 2020 - 23:29:42 EST


On Mon, Jan 13, 2020 at 07:08:26PM +0100, Borislav Petkov wrote:
> On Mon, Jan 13, 2020 at 12:59:38PM -0500, Arvind Sankar wrote:
> > How is "breaks with binutils before version 2.23" not clear enough? It
>
> Nevermind, I'll write it myself if/when I end up applying some version
> of it. I've wasted enough time trying to get my point across.
>

You're wasting time, because you're not _listening_ to the other guy.
There is nothing special about how to repro this bug. It can be repro'd
by building binutils-2.21.1 from source, it can be repro'd by building
with a distro that packaged 2.21 -- such as OpenSUSE 12.1 [1], it can be
repro'd by Mauro doing an Android build [2].

The common thread in all that, is that the kernel is being built with a
binutils prior to version 2.23, which is what is noted in the commit log
as it stands.

[1] https://lore.kernel.org/lkml/20200113233829.GB2000869@xxxxxxxxxxxxxxxxxx/
[2] https://lore.kernel.org/lkml/CAEQFVGbWKf2ksMrMmtymewArSF=ztNgeuieEQ3wvKrX1r759Aw@xxxxxxxxxxxxxx/