Re: [PATCH] x86/tools/relocs: Add _etext and __end_of_kernel_reserve to S_REL
From: Borislav Petkov
Date: Mon Jan 13 2020 - 11:39:06 EST
On Mon, Jan 13, 2020 at 11:13:10AM -0500, Arvind Sankar wrote:
> I will note that the purpose of S_REL in relocs.c was originally to
> handle exactly this case of symbols defined outside output sections:
And we should try not to do hacks, if it can be fixed properly, as
binutils expects symbols to be usually relative to a section.
> How to reproduce is just "build with old binutils". I don't see it's
> reasonable to include a tutorial on how to build the kernel with a
> toolchain that's not installed in the default PATH, as part of the commit
> message.
The point is that it should be clear that it should state whether it is
something you trigger with some stock distro which has been shipping
this way or it is something you've customly created. Huge difference.
So pls make sure that is clear from the commit message.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette