Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513904
| From | Linus Torvalds <torvalds@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts |
| Date | 2016-11-02 16:10 +0100 |
| Message-ID | <sz5kS-7UD-13@gated-at.bofh.it> (permalink) |
| References | (7 earlier) <su02u-2rf-69@gated-at.bofh.it> <su02u-2rf-65@gated-at.bofh.it> <su0cb-2v4-79@gated-at.bofh.it> <sz2Gl-6dd-5@gated-at.bofh.it> <sz2Gm-6dd-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Nov 2, 2016 at 6:14 AM, Richard Biener <rguenther@suse.de> 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts Markus Trippelsdorf <markus@trippelsdorf.de> - 2016-11-02 13:20 +0100
Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts Richard Biener <rguenther@suse.de> - 2016-11-02 13:20 +0100
Re: [PATCH 01/12] extarray: define helpers for arrays defined in linker scripts Linus Torvalds <torvalds@linux-foundation.org> - 2016-11-02 16:10 +0100
csiph-web