diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-30 17:43:08 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-14 18:11:43 +0100 |
commit | 7eb90f2ff7e3ee814ff12f3cd909b965cdd4a869 (patch) | |
tree | ca5d8423312aaa8454972bee2e38a11a33b9ece0 /arch/arm64/kernel | |
parent | 546c8c44f092b2f23291fe499c221efc8cabbb67 (diff) | |
download | linux-7eb90f2ff7e3ee814ff12f3cd909b965cdd4a869.tar.gz linux-7eb90f2ff7e3ee814ff12f3cd909b965cdd4a869.tar.bz2 linux-7eb90f2ff7e3ee814ff12f3cd909b965cdd4a869.zip |
arm64: cover the .head.text section in the .text segment mapping
Keeping .head.text out of the .text mapping buys us very little: its actual
payload is only 4 KB, most of which is padding, but the page alignment may
add up to 2 MB (in case of CONFIG_DEBUG_ALIGN_RODATA=y) of additional
padding to the uncompressed kernel Image.
Also, on 4 KB granule kernels, the 4 KB misalignment of .text forces us to
map the adjacent 56 KB of code without the PTE_CONT attribute, and since
this region contains things like the vector table and the GIC interrupt
handling entry point, this region is likely to benefit from the reduced TLB
pressure that results from PTE_CONT mappings.
So remove the alignment between the .head.text and .text sections, and use
the [_text, _etext) rather than the [_stext, _etext) interval for mapping
the .text segment.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/vmlinux.lds.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index 5a1939a74ff3..61a1075b9c30 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -96,7 +96,6 @@ SECTIONS _text = .; HEAD_TEXT } - ALIGN_DEBUG_RO_MIN(PAGE_SIZE) .text : { /* Real text segment */ _stext = .; /* Text and read-only data */ __exception_text_start = .; |