Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts

From: Linus Torvalds
Date: Wed Nov 02 2016 - 11:02:37 EST


On Wed, Nov 2, 2016 at 6:14 AM, Richard Biener <rguenther@xxxxxxx> wrote:
>
> Note while this change restored the old behavior this change was _not_
> intended to fix this particular fallout (it was to fix an inconsistency
> with respect to comparing addresses of symbols that can be interposed).
> It just happens that your externs can be interposed with ELF.

I think it should in general work for the kernel too, since as far as
I can tell, it fundamentally fixes the issue that linker scripts will
set symbol addresses to possibly alias other symbols.

So from a compiler standpoint, I think our "begin/end" linker script
symbols can be seen as interposing a larger array and give bounds for
it. No>

Linus