diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-08-29 23:58:41 +0200 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-09-11 01:34:52 +0200 |
commit | 0d302c710bf04149b6de7cd9a7064d0ca6cd4bea (patch) | |
tree | cf868f1b512045b1f8b257618b82a41758f2a418 /arch/arm/boot/Makefile | |
parent | ARM: vmlinux.lds.S: replace open coded .data sections with generic macros (diff) | |
download | linux-0d302c710bf04149b6de7cd9a7064d0ca6cd4bea.tar.xz linux-0d302c710bf04149b6de7cd9a7064d0ca6cd4bea.zip |
ARM: vmlinux-xip.lds.S: fix multiple issues
The XIP linker script has several problems:
- PAGE_ALIGNED_DATA is missing and is likely to end up somewhere with
the wrong LMA.
- BUG_TABLE definitely has the wrong LMA, it is not copied to RAM, and
its VMA is unaccounted for and likely to clash with dynamic memory
usage.
- TCM usage is similarly broken.
- PERCPU_SECTION is left in ROM despite being written to.
Let's use generic macros for those things and locate them appropriately.
Incidentally, those macros are usable with a LMA != VMA already by
properly defining LOAD_OFFSET.
TCM is not fixed here. It never worked in a XIP configuration anyway, so
that can wait until another round of cleanups.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Chris Brandt <Chris.Brandt@renesas.com>
Diffstat (limited to 'arch/arm/boot/Makefile')
0 files changed, 0 insertions, 0 deletions